diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/html/dom/elements-metadata.js | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/html/dom/elements-metadata.js')
-rw-r--r-- | testing/web-platform/tests/html/dom/elements-metadata.js | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/elements-metadata.js b/testing/web-platform/tests/html/dom/elements-metadata.js new file mode 100644 index 0000000000..49d7bb25ad --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements-metadata.js @@ -0,0 +1,50 @@ +var metadataElements = { + head: {}, + title: {}, + base: { + href: {type: "url", customGetter: true}, + target: "string", + }, + link: { + // Conforming + href: "url", + crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"}, + rel: "string", + as: { + type: "enum", + keywords: ["fetch", "audio", "document", "embed", "font", "image", "manifest", "object", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt"], + defaultVal: "", + invalidVal: "" + }, + relList: {type: "tokenlist", domAttrName: "rel"}, + media: "string", + nonce: "string", + integrity: "string", + hreflang: "string", + type: "string", + sizes: "settable tokenlist", + referrerPolicy: {type: "enum", keywords: ["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"]}, + + // Obsolete + charset: "string", + rev: "string", + target: "string", + }, + meta: { + // Conforming + name: "string", + httpEquiv: {type: "string", domAttrName: "http-equiv"}, + content: "string", + media: "string", + + // Obsolete + scheme: "string", + }, + style: { + media: "string", + nonce: "string", + type: "string", + }, +}; + +mergeElements(metadataElements); |