Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / imported / web-platform-tests / html / dom / elements-misc.js
blob77cc4cd729a1edba949380af449e675fbde1cc25
1 // Up-to-date as of 2013-04-09.
2 var miscElements = {
3 // "The root element" section
4 html: {
5 // Obsolete
6 version: "string",
7 },
9 // "Scripting" section
10 script: {
11 src: "url",
12 type: "string",
13 charset: "string",
14 // TODO: async attribute (complicated).
15 defer: "boolean",
16 crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
18 noscript: {},
20 // "Edits" section
21 ins: {
22 cite: "url",
23 dateTime: "string",
25 del: {
26 cite: "url",
27 dateTime: "string",
30 // "Interactive elements" section
31 details: {
32 open: "boolean",
34 summary: {},
35 menu: {
36 // Conforming
37 //TODO: check that missing value default is popup if parent's type is popup
38 type: {type: "enum", keywords:["popup", "toolbar"], defaultVal: "toolbar"},
39 label: "string",
41 // Obsolete
42 compact: "boolean",
44 menuitem: {
45 type: {type: "enum", keywords: ["command", "checkbox", "radio"], defaultVal: "command"},
46 label: "string",
47 icon: "url",
48 disabled: "boolean",
49 checked: "boolean",
50 radiogroup: "string",
51 "default": "boolean",
53 dialog: {
54 open: "boolean",
57 // Global attributes should exist even on unknown elements
58 undefinedelement: {},
61 mergeElements(miscElements);