Skip to content

Commit e6555ee

Browse files
authored
Validator rollup (#40223)
* cl/610820873 Fix validation for unexpected attribute name starting with = * cl/614818595 Fix validation for duplicate attribute names * cl/713373388 Two-way sync for PR #40094. No-op, or fixes merge conflicts, if any. * Update some files that failed validator test * Update some files that failed validator test
1 parent c4dbb0a commit e6555ee

File tree

4 files changed

+91
-74
lines changed

4 files changed

+91
-74
lines changed

validator/testdata/feature_tests/duplicate_attribute.out.cpponly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ feature_tests/duplicate_attribute.html:27:3 The tag 'script' contains the attrib
4646
feature_tests/duplicate_attribute.html:27:3 The attribute 'type' in tag 'script type=application/ld+json' is set to the invalid value 'text/javascript'.
4747
|
4848
| </body>
49-
| </html>
49+
| </html>

validator/testdata/feature_tests/leaks.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
-->
3636
<meta http-equiv="refresh" content="10; url=http://leaking.via/meta-refresh">
3737

38+
<!--
39+
%Redirects (empty attribute)
40+
-->
41+
<meta = http-equiv="refresh" content="10; url=http://leaking.via/meta-refresh">
42+
3843
<!--
3944
%CSP
4045
-->

validator/testdata/feature_tests/leaks.out

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ feature_tests/leaks.html:30:4 CSS syntax error in tag 'style amp-custom' - saw i
5353
feature_tests/leaks.html:36:0 The attribute 'http-equiv' may not appear in tag 'meta'.
5454
|
5555
| <!--
56+
| %Redirects (empty attribute)
57+
| -->
58+
| <meta = http-equiv="refresh" content="10; url=http://leaking.via/meta-refresh">
59+
>> ^~~~~~~~~
60+
feature_tests/leaks.html:41:0 The attribute 'http-equiv' may not appear in tag 'meta'.
61+
|
62+
| <!--
5663
| %CSP
5764
| -->
5865
| <meta http-equiv="Content-Security-Policy" content="script-src 'self'; report-uri http://leaking.via/meta-csp-report-uri">
@@ -364,4 +371,4 @@ feature_tests/leaks.html:203:0 The tag 'vmlframe' is disallowed.
364371
| </vmlframe>
365372
|
366373
| </body>
367-
| </html>
374+
| </html>

0 commit comments

Comments
 (0)