elements-misc.js (1307B)
1 var miscElements = { 2 // "The root element" section 3 html: { 4 // Obsolete 5 version: "string", 6 }, 7 8 // "Scripting" section 9 script: { 10 src: "url", 11 type: "string", 12 noModule: "boolean", 13 charset: "string", 14 // TODO: async attribute (complicated). 15 defer: "boolean", 16 crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"}, 17 integrity: "string", 18 19 // Obsolete 20 event: "string", 21 htmlFor: {type: "string", domAttrName: "for"}, 22 }, 23 noscript: {}, 24 25 template: {}, 26 slot: { 27 name: "string", 28 }, 29 30 // "Edits" section 31 ins: { 32 cite: "url", 33 dateTime: "string", 34 }, 35 del: { 36 cite: "url", 37 dateTime: "string", 38 }, 39 40 // "Interactive elements" section 41 details: { 42 open: "boolean", 43 }, 44 summary: {}, 45 menu: { 46 // Obsolete 47 compact: "boolean", 48 }, 49 dialog: { 50 open: "boolean", 51 }, 52 53 // Global attributes should exist even on unknown elements 54 undefinedelement: { 55 enterKeyHint: {type: "enum", keywords: ["enter", "done", "go", "next", "previous", "search", "send"]}, 56 inputMode: {type: "enum", keywords: ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"]}, 57 }, 58 }; 59 60 mergeElements(miscElements);