Skip to content

Commit

Permalink
Validator rollup (#38750)
Browse files Browse the repository at this point in the history
* cl/488761256 github commit msg missing or malformed

* cl/489206825 Allow other cdn domain to host amp runtime.

* cl/491380213 n/a

* cl/491410969 n/a

* cl/491961998 n/a

* cl/492000476 github commit msg missing or malformed

* cl/494063555 n/a

* cl/508406092 Fix AMP for Email spec URLs

---------

Co-authored-by: Amaltas Bohra <[email protected]>
  • Loading branch information
banaag and amaltas authored Apr 13, 2023
1 parent aa18782 commit 4532230
Show file tree
Hide file tree
Showing 39 changed files with 482 additions and 17,758 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ FAIL
amp-experiment/0.1/test/validator-amp-experiment.html:31:0 The tag 'amp-experiment' appears more than once in the document. (see https://amp.dev/documentation/components/amp-experiment/)
| <script type="invalidtype"></script>
>> ^~~~~~~~~
amp-experiment/0.1/test/validator-amp-experiment.html:32:4 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-experiment/0.1/test/validator-amp-experiment.html:32:4 The parent tag of tag 'amphtml engine script' is 'amp-experiment', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| </amp-experiment>
| </body>
| </html>
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ FAIL
amp-experiment/1.0/test/validator-amp-experiment.html:51:0 The tag 'amp-experiment' appears more than once in the document. (see https://amp.dev/documentation/components/amp-experiment/)
| <script type="invalidtype"></script>
>> ^~~~~~~~~
amp-experiment/1.0/test/validator-amp-experiment.html:52:4 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-experiment/1.0/test/validator-amp-experiment.html:52:4 The parent tag of tag 'amphtml engine script' is 'amp-experiment', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| </amp-experiment>
|
| <!-- Too large of JSON -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ amp-live-list/0.1/test/validator-amp-live-list.html:66:2 The mandatory reference
amp-live-list/0.1/test/validator-amp-live-list.html:67:4 The tag 'foo' is disallowed.
| <script items>
>> ^~~~~~~~~
amp-live-list/0.1/test/validator-amp-live-list.html:68:4 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-live-list/0.1/test/validator-amp-live-list.html:68:4 The parent tag of tag 'amphtml engine script' is 'foo', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| document.writeln('1, 2, 3');
| </script>
| </amp-live-list>
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-mraid/0.1/test/validator-amp-mraid.out
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FAIL
| <!-- Invalid: amp-mraid not allowed in AMP; only allowed in AMP ADS -->
| <script async host-service="amp-mraid" src="https://cdn.ampproject.org/v0/amp-mraid-0.1.js"></script>
>> ^~~~~~~~~
amp-mraid/0.1/test/validator-amp-mraid.html:14:2 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-mraid/0.1/test/validator-amp-mraid.html:14:2 The attribute 'host-service' may not appear in tag 'amphtml engine script'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| <script async src="https://cdn.ampproject.org/v0.js"></script>
| </head>
| <body>
Expand Down
6 changes: 3 additions & 3 deletions extensions/amp-script/0.1/test/validator-amp-script.out
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ amp-script/0.1/test/validator-amp-script.html:83:2 The attribute 'data-ampdevmod
| <!-- Invalid: Local script without 'target' or 'id' attributes. -->
| <script type=text/plain>
>> ^~~~~~~~~
amp-script/0.1/test/validator-amp-script.html:86:2 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-script/0.1/test/validator-amp-script.html:86:2 The parent tag of tag 'amphtml engine script' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| document.body.textContent = "Hello World!";
| </script>
|
Expand All @@ -124,14 +124,14 @@ amp-script/0.1/test/validator-amp-script.html:91:2 The attribute 'type' in tag '
| <!-- Invalid: Local script with invalid 'target'. -->
| <script type=text/plain target=amp-js id=hello>
>> ^~~~~~~~~
amp-script/0.1/test/validator-amp-script.html:96:2 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-script/0.1/test/validator-amp-script.html:96:2 The parent tag of tag 'amphtml engine script' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| document.body.textContent = "Hello World!";
| </script>
|
| <!-- Invalid: Local script without 'target' attribute. -->
| <script type=text/plain id=hello>
>> ^~~~~~~~~
amp-script/0.1/test/validator-amp-script.html:101:2 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-script/0.1/test/validator-amp-script.html:101:2 The parent tag of tag 'amphtml engine script' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| document.body.textContent = "Hello World!";
| </script>
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ FAIL
| <!-- Invalid: bare script not allowed as a child of amp-story-grid-layer -->
| <script type="application/json">
>> ^~~~~~~~~
amp-story/1.0/test/validator-amp-story-amp-experiment-error.html:36:8 Custom JavaScript is not allowed. (see https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/#custom-javascript-is-not-allowed)
amp-story/1.0/test/validator-amp-story-amp-experiment-error.html:36:8 The parent tag of tag 'amphtml engine script' is 'amp-story-grid-layer', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)
| {
| "background-color-test": {
| "variants": {
Expand Down
136 changes: 0 additions & 136 deletions validator/js/engine/amp4ads-parse-css.js

This file was deleted.

Loading

0 comments on commit 4532230

Please sign in to comment.