mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-08 18:28:17 +08:00
32 lines
637 B
JavaScript
32 lines
637 B
JavaScript
/**
|
|
* HTML URL properties.
|
|
*
|
|
* Each key is a property name and each value is a list of tag names it applies
|
|
* to or `null` if it applies to all elements.
|
|
*
|
|
* @type {Record<string, Array<string> | null>}
|
|
*/
|
|
export const urlAttributes = {
|
|
action: ['form'],
|
|
cite: ['blockquote', 'del', 'ins', 'q'],
|
|
data: ['object'],
|
|
formAction: ['button', 'input'],
|
|
href: ['a', 'area', 'base', 'link'],
|
|
icon: ['menuitem'],
|
|
itemId: null,
|
|
manifest: ['html'],
|
|
ping: ['a', 'area'],
|
|
poster: ['video'],
|
|
src: [
|
|
'audio',
|
|
'embed',
|
|
'iframe',
|
|
'img',
|
|
'input',
|
|
'script',
|
|
'source',
|
|
'track',
|
|
'video'
|
|
]
|
|
}
|