/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/testdata/feature_tests/no_custom_js.out
28 строк
2 KB
Allan Banaag
Validator rollup (#38750)
14 апр 2023, 00:33
Не верифицирован
14 апр 2023, 00:33
4532230
Код
Авторство
О чём код?
FAIL | <!-- | Test Description: | Custom Javascript (other than allowlisted script locations) is rejected. | --> | <!doctype html> | <html ⚡> | <head> | <meta charset="utf-8"> | <link rel=canonical href=http://output.jsbin.com/mumifuyewi/hello-world.html> | <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"><meta name="robots" content="noindex"> | <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> | <script async src="https://cdn.ampproject.org/v0.js"></script> | <script async src="https://example.com/v0-not-allowed.js"></script> >> ^~~~~~~~~ feature_tests/no_custom_js.html:13:3 The attribute 'src' in tag 'amphtml engine script' is set to the invalid value 'https://example.com/v0-not-allowed.js'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | <script async custom-element="amp-foo" src="https://example.com/v0/not-allowed.js"></script> >> ^~~~~~~~~ feature_tests/no_custom_js.html:14:3 The attribute 'custom-element' may not appear in tag 'amphtml engine script'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) >> ^~~~~~~~~ feature_tests/no_custom_js.html:14:3 The script version for 'amphtml engine script' is a unknown version which mismatches with the first script on the page using the standard version. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml#required-markup) | </head> | <body> | <script>alert('Hello World!')</script> >> ^~~~~~~~~ feature_tests/no_custom_js.html:17: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) | </body> | </html>