index.js 637 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * HTML URL properties.
  3. *
  4. * Each key is a property name and each value is a list of tag names it applies
  5. * to or `null` if it applies to all elements.
  6. *
  7. * @type {Record<string, Array<string> | null>}
  8. */
  9. export const urlAttributes = {
  10. action: ['form'],
  11. cite: ['blockquote', 'del', 'ins', 'q'],
  12. data: ['object'],
  13. formAction: ['button', 'input'],
  14. href: ['a', 'area', 'base', 'link'],
  15. icon: ['menuitem'],
  16. itemId: null,
  17. manifest: ['html'],
  18. ping: ['a', 'area'],
  19. poster: ['video'],
  20. src: [
  21. 'audio',
  22. 'embed',
  23. 'iframe',
  24. 'img',
  25. 'input',
  26. 'script',
  27. 'source',
  28. 'track',
  29. 'video'
  30. ]
  31. }