summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/elements-metadata.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/dom/elements-metadata.js')
-rw-r--r--testing/web-platform/tests/html/dom/elements-metadata.js40
1 files changed, 40 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 000000000..05d61a74d
--- /dev/null
+++ b/testing/web-platform/tests/html/dom/elements-metadata.js
@@ -0,0 +1,40 @@
+// Up-to-date as of 2013-04-08.
+var metadataElements = {
+ head: {},
+ title: {},
+ base: {
+ // XXX href is weird. href: "url",
+ target: "string",
+ },
+ link: {
+ // Conforming
+ href: "url",
+ crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
+ rel: "string",
+ relList: {type: "tokenlist", domAttrName: "rel"},
+ media: "string",
+ hreflang: "string",
+ type: "string",
+ sizes: "settable tokenlist",
+
+ // Obsolete
+ charset: "string",
+ rev: "string",
+ target: "string",
+ },
+ meta: {
+ // Conforming
+ name: "string",
+ httpEquiv: {type: "string", domAttrName: "http-equiv"},
+ content: "string",
+
+ // Obsolete
+ scheme: "string",
+ },
+ style: {
+ media: "string",
+ type: "string",
+ },
+};
+
+mergeElements(metadataElements);