1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Up-to-date as of 2013-04-09.
var miscElements = {
// "The root element" section
html: {
// Obsolete
version: "string",
},
// "Scripting" section
script: {
src: "url",
type: "string",
charset: "string",
// TODO: async attribute (complicated).
defer: "boolean",
crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
},
noscript: {},
// "Edits" section
ins: {
cite: "url",
dateTime: "string",
},
del: {
cite: "url",
dateTime: "string",
},
// "Interactive elements" section
details: {
open: "boolean",
},
summary: {},
menu: {
// Conforming
//TODO: check that missing value default is popup if parent's type is popup
type: {type: "enum", keywords:["popup", "toolbar"], defaultVal: "toolbar"},
label: "string",
// Obsolete
compact: "boolean",
},
menuitem: {
type: {type: "enum", keywords: ["command", "checkbox", "radio"], defaultVal: "command"},
label: "string",
icon: "url",
disabled: "boolean",
checked: "boolean",
radiogroup: "string",
"default": "boolean",
},
dialog: {
open: "boolean",
},
// Global attributes should exist even on unknown elements
undefinedelement: {},
};
mergeElements(miscElements);
|