| OLD | NEW |
| (Empty) |
| 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 }, | |
| 8 | |
| 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"], nonC
anon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymo
us"}, | |
| 17 }, | |
| 18 noscript: {}, | |
| 19 | |
| 20 // "Edits" section | |
| 21 ins: { | |
| 22 cite: "url", | |
| 23 dateTime: "string", | |
| 24 }, | |
| 25 del: { | |
| 26 cite: "url", | |
| 27 dateTime: "string", | |
| 28 }, | |
| 29 | |
| 30 // "Interactive elements" section | |
| 31 details: { | |
| 32 open: "boolean", | |
| 33 }, | |
| 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", | |
| 40 | |
| 41 // Obsolete | |
| 42 compact: "boolean", | |
| 43 }, | |
| 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", | |
| 52 }, | |
| 53 dialog: { | |
| 54 open: "boolean", | |
| 55 }, | |
| 56 | |
| 57 // Global attributes should exist even on unknown elements | |
| 58 undefinedelement: {}, | |
| 59 }; | |
| 60 | |
| 61 mergeElements(miscElements); | |
| OLD | NEW |