@@ -22,186 +22,51 @@ var HAS_OVERLOADED_BOOLEAN_VALUE =
22
22
DOMProperty . injection . HAS_OVERLOADED_BOOLEAN_VALUE ;
23
23
24
24
var HTMLDOMPropertyConfig = {
25
- isCustomAttribute : RegExp . prototype . test . bind (
26
- new RegExp ( '^(data|aria)-[' + DOMProperty . ATTRIBUTE_NAME_CHAR + ']*$' )
27
- ) ,
28
25
Properties : {
29
26
/**
30
27
* Standard Properties
31
28
*/
32
- accept : 0 ,
33
- acceptCharset : 0 ,
34
- accessKey : 0 ,
35
- action : 0 ,
36
29
allowFullScreen : HAS_BOOLEAN_VALUE ,
37
- allowTransparency : 0 ,
38
- alt : 0 ,
39
- // specifies target context for links with `preload` type
40
- as : 0 ,
41
30
async : HAS_BOOLEAN_VALUE ,
42
- autoComplete : 0 ,
43
31
// autoFocus is polyfilled/normalized by AutoFocusUtils
44
32
// autoFocus: HAS_BOOLEAN_VALUE,
45
33
autoPlay : HAS_BOOLEAN_VALUE ,
46
34
capture : HAS_BOOLEAN_VALUE ,
47
- cellPadding : 0 ,
48
- cellSpacing : 0 ,
49
- charSet : 0 ,
50
- challenge : 0 ,
51
35
checked : MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE ,
52
- cite : 0 ,
53
- classID : 0 ,
54
- className : 0 ,
55
36
cols : HAS_POSITIVE_NUMERIC_VALUE ,
56
- colSpan : 0 ,
57
- content : 0 ,
58
- contentEditable : 0 ,
59
- contextMenu : 0 ,
60
37
controls : HAS_BOOLEAN_VALUE ,
61
- coords : 0 ,
62
- crossOrigin : 0 ,
63
- data : 0 , // For `<object />` acts as `src`.
64
- dateTime : 0 ,
65
38
default : HAS_BOOLEAN_VALUE ,
66
39
defer : HAS_BOOLEAN_VALUE ,
67
- dir : 0 ,
68
40
disabled : HAS_BOOLEAN_VALUE ,
69
41
download : HAS_OVERLOADED_BOOLEAN_VALUE ,
70
- draggable : 0 ,
71
- encType : 0 ,
72
- form : 0 ,
73
- formAction : 0 ,
74
- formEncType : 0 ,
75
- formMethod : 0 ,
76
42
formNoValidate : HAS_BOOLEAN_VALUE ,
77
- formTarget : 0 ,
78
- frameBorder : 0 ,
79
- headers : 0 ,
80
- height : 0 ,
81
43
hidden : HAS_BOOLEAN_VALUE ,
82
- high : 0 ,
83
- href : 0 ,
84
- hrefLang : 0 ,
85
- htmlFor : 0 ,
86
- httpEquiv : 0 ,
87
- id : 0 ,
88
- inputMode : 0 ,
89
- integrity : 0 ,
90
- is : 0 ,
91
- keyParams : 0 ,
92
- keyType : 0 ,
93
- kind : 0 ,
94
- label : 0 ,
95
- lang : 0 ,
96
- list : 0 ,
97
44
loop : HAS_BOOLEAN_VALUE ,
98
- low : 0 ,
99
- manifest : 0 ,
100
- marginHeight : 0 ,
101
- marginWidth : 0 ,
102
- max : 0 ,
103
- maxLength : 0 ,
104
- media : 0 ,
105
- mediaGroup : 0 ,
106
- method : 0 ,
107
- min : 0 ,
108
- minLength : 0 ,
109
45
// Caution; `option.selected` is not updated if `select.multiple` is
110
46
// disabled with `removeAttribute`.
111
47
multiple : MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE ,
112
48
muted : MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE ,
113
- name : 0 ,
114
- nonce : 0 ,
115
49
noValidate : HAS_BOOLEAN_VALUE ,
116
50
open : HAS_BOOLEAN_VALUE ,
117
- optimum : 0 ,
118
- pattern : 0 ,
119
- placeholder : 0 ,
120
- playsInline : HAS_BOOLEAN_VALUE ,
121
- poster : 0 ,
122
- preload : 0 ,
123
- profile : 0 ,
124
- radioGroup : 0 ,
125
51
readOnly : HAS_BOOLEAN_VALUE ,
126
- referrerPolicy : 0 ,
127
- rel : 0 ,
128
52
required : HAS_BOOLEAN_VALUE ,
129
53
reversed : HAS_BOOLEAN_VALUE ,
130
- role : 0 ,
131
54
rows : HAS_POSITIVE_NUMERIC_VALUE ,
132
55
rowSpan : HAS_NUMERIC_VALUE ,
133
- sandbox : 0 ,
134
- scope : 0 ,
135
56
scoped : HAS_BOOLEAN_VALUE ,
136
- scrolling : 0 ,
137
57
seamless : HAS_BOOLEAN_VALUE ,
138
58
selected : MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE ,
139
- shape : 0 ,
140
59
size : HAS_POSITIVE_NUMERIC_VALUE ,
141
- sizes : 0 ,
142
60
span : HAS_POSITIVE_NUMERIC_VALUE ,
143
- spellCheck : 0 ,
144
- src : 0 ,
145
- srcDoc : 0 ,
146
- srcLang : 0 ,
147
- srcSet : 0 ,
148
61
start : HAS_NUMERIC_VALUE ,
149
- step : 0 ,
150
- style : 0 ,
151
- summary : 0 ,
152
- tabIndex : 0 ,
153
- target : 0 ,
154
- title : 0 ,
155
- // Setting .type throws on non-<input> tags
156
- type : 0 ,
157
- useMap : 0 ,
158
- value : 0 ,
159
- width : 0 ,
160
- wmode : 0 ,
161
- wrap : 0 ,
162
-
163
- /**
164
- * RDFa Properties
165
- */
166
- about : 0 ,
167
- datatype : 0 ,
168
- inlist : 0 ,
169
- prefix : 0 ,
170
- // property is also supported for OpenGraph in meta tags.
171
- property : 0 ,
172
- resource : 0 ,
173
- typeof : 0 ,
174
- vocab : 0 ,
175
-
176
- /**
177
- * Non-standard Properties
178
- */
179
- // autoCapitalize and autoCorrect are supported in Mobile Safari for
180
- // keyboard hints.
181
- autoCapitalize : 0 ,
182
- autoCorrect : 0 ,
183
- // autoSave allows WebKit/Blink to persist values of input fields on page reloads
184
- autoSave : 0 ,
185
- // color is for Safari mask-icon link
186
- color : 0 ,
187
- // itemProp, itemScope, itemType are for
188
- // Microdata support. See http://schema.org/docs/gs.html
189
- itemProp : 0 ,
190
62
itemScope : HAS_BOOLEAN_VALUE ,
191
- itemType : 0 ,
192
- // itemID and itemRef are for Microdata support as well but
193
- // only specified in the WHATWG spec document. See
194
- // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
195
- itemID : 0 ,
196
- itemRef : 0 ,
197
- // results show looking glass icon and recent searches on input
198
- // search fields in WebKit/Blink
199
- results : 0 ,
200
- // IE-only attribute that specifies security restrictions on an iframe
201
- // as an alternative to the sandbox attribute on IE<10
202
- security : 0 ,
203
- // IE-only attribute that controls focus behavior
204
- unselectable : 0 ,
63
+
64
+ // These properties are necessary as exceptions for names.
65
+ // They should match DOMAttributeNames
66
+ acceptCharset : 0 ,
67
+ className : 0 ,
68
+ htmlFor : 0 ,
69
+ httpEquiv : 0 ,
205
70
} ,
206
71
DOMAttributeNames : {
207
72
acceptCharset : 'accept-charset' ,
0 commit comments