File: elements-embedded.js

package info (click to toggle)
iceweasel 38.8.0esr-1~deb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,578,008 kB
  • sloc: cpp: 4,134,345; ansic: 1,765,754; python: 324,651; java: 233,700; asm: 138,937; xml: 98,298; sh: 82,895; makefile: 21,621; perl: 17,235; objc: 4,014; yacc: 1,968; lex: 1,179; exp: 499; pascal: 479; lisp: 228; awk: 152; ruby: 82; sed: 43; csh: 31; ada: 16; php: 1
file content (152 lines) | stat: -rw-r--r-- 3,532 bytes parent folder | download | duplicates (2)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Up-to-date as of 2013-04-06.
var embeddedElements = {
	img: {
		// Conforming
		alt: "string",
		src: "url",
		srcset: "string",
		crossOrigin: {type: "enum", keywords: ["", "anonymous", "use-credentials"]},
		useMap: "string",
		isMap: "boolean",
		width: {type: "unsigned long", customGetter: true},
		height: {type: "unsigned long", customGetter: true},

		// Obsolete
		name: "string",
		lowsrc: {type: "url"},
		align: "string",
		hspace: "unsigned long",
		vspace: "unsigned long",
		longDesc: "url",
		border: {type: "string", treatNullAsEmptyString: true},
	},
	iframe: {
		// Conforming
		src: "url",
		srcdoc: "string",
		name: "string",
		sandbox: "settable tokenlist",
		seamless: "boolean",
		allowFullscreen: "boolean",
		width: "string",
		height: "string",

		// Obsolete
		align: "string",
		scrolling: "string",
		frameBorder: "string",
		longDesc: "url",
		marginHeight: {type: "string", treatNullAsEmptyString: true},
		marginWidth: {type: "string", treatNullAsEmptyString: true}
	},
	embed: {
		// Conforming
		src: "url",
		type: "string",
		width: "string",
		height: "string",

		// Obsolete
		align: "string",
		name: "string"
	},
	object: {
		// Conforming
		data: "url",
		type: "string",
		typeMustMatch: "boolean",
		name: "string",
		useMap: "string",
		width: "string",
		height: "string",

		// Obsolete
		align: "string",
		archive: "string",
		code: "string",
		declare: "boolean",
		hspace: "unsigned long",
		standby: "string",
		vspace: "unsigned long",
		codeBase: "url",
		codeType: "string",
		border: {type: "string", treatNullAsEmptyString: true}
	},
	param: {
		// Conforming
		name: "string",
		value: "string",

		// Obsolete
		type: "string",
		valueType: "string"
	},
	video: {
		// HTMLMediaElement
		src: "url",
		crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
		// As with "keytype", we have no missing value default defined here.
		preload: {type: "enum", keywords: ["none", "metadata", "auto"], nonCanon: {"": "auto"}, defaultVal: null},
		autoplay: "boolean",
		loop: "boolean",
		mediaGroup: "string",
		controls: "boolean",
		defaultMuted: {type: "boolean", domAttrName: "muted"},

		width: "unsigned long",
		height: "unsigned long",
		poster: "url"
	},
	audio: {
		// HTMLMediaElement
		src: "url",
		crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
		// As with "keytype", we have no missing value default defined here.
		preload: {type: "enum", keywords: ["none", "metadata", "auto"], nonCanon: {"": "auto"}, defaultVal: null},
		autoplay: "boolean",
		loop: "boolean",
		mediaGroup: "string",
		controls: "boolean",
		defaultMuted: {type: "boolean", domAttrName: "muted"}
	},
	source: {
		src: "url",
		type: "string",
		media: "string"
	},
	track: {
		kind: {type: "enum", keywords: ["subtitles", "captions", "descriptions", "chapters", "metadata"], defaultVal: "captions"},
		src: "url",
		srclang: "string",
		label: "string",
		"default": "boolean"
	},
	canvas: {
		width: {type: "unsigned long", defaultVal: 300},
		height: {type: "unsigned long", defaultVal: 150}
	},
	map: {
		name: "string"
	},
	area: {
		// Conforming
		alt: "string",
		coords: "string",
		shape: "string",
		target: "string",
		download: "string",
		ping: "urls",
		rel: "string",
		relList: {type: "tokenlist", domAttrName: "rel"},
		hreflang: "string",
		type: "string",

	        //URLUtils
		href: "url",

		// Obsolete
		noHref: "boolean"
	},
};

mergeElements(embeddedElements);