@@ -70,147 +70,147 @@ const VALID_PAIR_VALUES = new Map([
70
70
* @type {Set<string> }
71
71
*/
72
72
const HTML_ELEMENTS = new Set ( [
73
- 'html' ,
74
- 'base' ,
75
- 'head' ,
76
- 'link' ,
77
- 'meta' ,
78
- 'style' ,
79
- 'title' ,
80
- 'body' ,
73
+ 'a' ,
74
+ 'abbr' ,
75
+ 'acronym' ,
81
76
'address' ,
77
+ 'applet' ,
78
+ 'area' ,
82
79
'article' ,
83
80
'aside' ,
84
- 'footer' ,
85
- 'header' ,
86
- 'h1' ,
87
- 'h2' ,
88
- 'h3' ,
89
- 'h4' ,
90
- 'h5' ,
91
- 'h6' ,
92
- 'main' ,
93
- 'nav' ,
94
- 'section' ,
95
- 'blockquote' ,
96
- 'dd' ,
97
- 'div' ,
98
- 'dl' ,
99
- 'dt' ,
100
- 'figcaption' ,
101
- 'figure' ,
102
- 'hr' ,
103
- 'li' ,
104
- 'ol' ,
105
- 'p' ,
106
- 'pre' ,
107
- 'ul' ,
108
- 'a' ,
109
- 'abbr' ,
81
+ 'audio' ,
110
82
'b' ,
83
+ 'base' ,
84
+ 'basefont' ,
111
85
'bdi' ,
112
86
'bdo' ,
87
+ 'bgsound' ,
88
+ 'big' ,
89
+ 'blink' ,
90
+ 'blockquote' ,
91
+ 'body' ,
113
92
'br' ,
93
+ 'button' ,
94
+ 'canvas' ,
95
+ 'caption' ,
96
+ 'center' ,
114
97
'cite' ,
115
98
'code' ,
99
+ 'col' ,
100
+ 'colgroup' ,
101
+ 'content' ,
116
102
'data' ,
103
+ 'datalist' ,
104
+ 'dd' ,
105
+ 'del' ,
106
+ 'details' ,
117
107
'dfn' ,
108
+ 'dialog' ,
109
+ 'dir' ,
110
+ 'div' ,
111
+ 'dl' ,
112
+ 'dt' ,
118
113
'em' ,
114
+ 'embed' ,
115
+ 'fieldset' ,
116
+ 'figcaption' ,
117
+ 'figure' ,
118
+ 'font' ,
119
+ 'footer' ,
120
+ 'form' ,
121
+ 'frame' ,
122
+ 'frameset' ,
123
+ 'h1' ,
124
+ 'h2' ,
125
+ 'h3' ,
126
+ 'h4' ,
127
+ 'h5' ,
128
+ 'h6' ,
129
+ 'head' ,
130
+ 'header' ,
131
+ 'hgroup' ,
132
+ 'hr' ,
133
+ 'html' ,
119
134
'i' ,
135
+ 'iframe' ,
136
+ 'image' ,
137
+ 'img' ,
138
+ 'input' ,
139
+ 'ins' ,
120
140
'kbd' ,
141
+ 'keygen' ,
142
+ 'label' ,
143
+ 'legend' ,
144
+ 'li' ,
145
+ 'link' ,
146
+ 'main' ,
147
+ 'map' ,
121
148
'mark' ,
149
+ 'marquee' ,
150
+ 'math' ,
151
+ 'menu' ,
152
+ 'menuitem' ,
153
+ 'meta' ,
154
+ 'meter' ,
155
+ 'nav' ,
156
+ 'nobr' ,
157
+ 'noembed' ,
158
+ 'noframes' ,
159
+ 'noscript' ,
160
+ 'object' ,
161
+ 'ol' ,
162
+ 'optgroup' ,
163
+ 'option' ,
164
+ 'output' ,
165
+ 'p' ,
166
+ 'param' ,
167
+ 'picture' ,
168
+ 'plaintext' ,
169
+ 'portal' ,
170
+ 'pre' ,
171
+ 'progress' ,
122
172
'q' ,
173
+ 'rb' ,
123
174
'rp' ,
124
175
'rt' ,
176
+ 'rtc' ,
125
177
'ruby' ,
126
178
's' ,
127
179
'samp' ,
180
+ 'script' ,
181
+ 'section' ,
182
+ 'select' ,
183
+ 'shadow' ,
184
+ 'slot' ,
128
185
'small' ,
186
+ 'source' ,
187
+ 'spacer' ,
129
188
'span' ,
189
+ 'strike' ,
130
190
'strong' ,
191
+ 'style' ,
131
192
'sub' ,
193
+ 'summary' ,
132
194
'sup' ,
133
- 'time' ,
134
- 'u' ,
135
- 'var' ,
136
- 'wbr' ,
137
- 'area' ,
138
- 'audio' ,
139
- 'img' ,
140
- 'map' ,
141
- 'track' ,
142
- 'video' ,
143
- 'embed' ,
144
- 'iframe' ,
145
- 'object' ,
146
- 'param' ,
147
- 'picture' ,
148
- 'portal' ,
149
- 'source' ,
150
195
'svg' ,
151
- 'math' ,
152
- 'canvas' ,
153
- 'noscript' ,
154
- 'script' ,
155
- 'del' ,
156
- 'ins' ,
157
- 'caption' ,
158
- 'col' ,
159
- 'colgroup' ,
160
196
'table' ,
161
197
'tbody' ,
162
198
'td' ,
199
+ 'template' ,
200
+ 'textarea' ,
163
201
'tfoot' ,
164
202
'th' ,
165
203
'thead' ,
204
+ 'time' ,
205
+ 'title' ,
166
206
'tr' ,
167
- 'button' ,
168
- 'datalist' ,
169
- 'fieldset' ,
170
- 'form' ,
171
- 'input' ,
172
- 'label' ,
173
- 'legend' ,
174
- 'meter' ,
175
- 'optgroup' ,
176
- 'option' ,
177
- 'output' ,
178
- 'progress' ,
179
- 'select' ,
180
- 'textarea' ,
181
- 'details' ,
182
- 'dialog' ,
183
- 'menu' ,
184
- 'summary' ,
185
- 'slot' ,
186
- 'template' ,
187
- 'acronym' ,
188
- 'applet' ,
189
- 'basefont' ,
190
- 'bgsound' ,
191
- 'big' ,
192
- 'blink' ,
193
- 'center' ,
194
- 'content' ,
195
- 'dir' ,
196
- 'font' ,
197
- 'frame' ,
198
- 'frameset' ,
199
- 'hgroup' ,
200
- 'image' ,
201
- 'keygen' ,
202
- 'marquee' ,
203
- 'menuitem' ,
204
- 'nobr' ,
205
- 'noembed' ,
206
- 'noframes' ,
207
- 'plaintext' ,
208
- 'rb' ,
209
- 'rtc' ,
210
- 'shadow' ,
211
- 'spacer' ,
212
- 'strike' ,
207
+ 'track' ,
213
208
'tt' ,
209
+ 'u' ,
210
+ 'ul' ,
211
+ 'var' ,
212
+ 'video' ,
213
+ 'wbr' ,
214
214
'xmp' ,
215
215
] ) ;
216
216
@@ -222,16 +222,16 @@ const COMPONENT_ATTRIBUTE_MAP = new Map();
222
222
COMPONENT_ATTRIBUTE_MAP . set ( 'rel' , new Set ( [ 'link' , 'a' , 'area' , 'form' ] ) ) ;
223
223
224
224
const messages = {
225
- onlyStrings : '“{{attributeName}}” attribute only supports strings.' ,
226
- noEmpty : 'An empty “{{attributeName}}” attribute is meaningless.' ,
225
+ emptyIsMeaningless : 'An empty “{{attributeName}}” attribute is meaningless.' ,
227
226
neverValid : '“{{reportingValue}}” is never a valid “{{attributeName}}” attribute value.' ,
228
- notValidFor : '“{{reportingValue}}” is not a valid “{{attributeName}}” attribute value for <{{elementName}}>.' ,
229
- spaceDelimited : '”{{attributeName}}“ attribute values should be space delimited.' ,
227
+ noEmpty : 'An empty “{{attributeName}}” attribute is meaningless.' ,
230
228
noMethod : 'The ”{{attributeName}}“ attribute cannot be a method.' ,
231
- onlyMeaningfulFor : 'The ”{{attributeName}}“ attribute only has meaning on the tags: {{tagNames}}' ,
232
- emptyIsMeaningless : 'An empty “{{attributeName}}” attribute is meaningless.' ,
233
229
notAlone : '“{{reportingValue}}” must be directly followed by “{{missingValue}}”.' ,
234
230
notPaired : '“{{reportingValue}}” can not be directly followed by “{{secondValue}}” without “{{missingValue}}”.' ,
231
+ notValidFor : '“{{reportingValue}}” is not a valid “{{attributeName}}” attribute value for <{{elementName}}>.' ,
232
+ onlyMeaningfulFor : 'The ”{{attributeName}}“ attribute only has meaning on the tags: {{tagNames}}' ,
233
+ onlyStrings : '“{{attributeName}}” attribute only supports strings.' ,
234
+ spaceDelimited : '”{{attributeName}}“ attribute values should be space delimited.' ,
235
235
} ;
236
236
237
237
function splitIntoRangedParts ( node , regex ) {
0 commit comments