/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/testdata/feature_tests/several_errors.out
45 строк
3 KB
Allan Banaag
Validator rollup (#38750)
14 апр 2023, 00:33
Не верифицирован
14 апр 2023, 00:33
4532230
Код
Авторство
О чём код?
FAIL | <!-- | Test Description: | This example has several problems - see the .out file. | --> | <!doctype html> | <html ⚡> | <head> | <meta charset='pick-a-key'> >> ^~~~~~~~~ feature_tests/several_errors.html:8:2 The attribute 'charset' in tag 'meta charset=utf-8' is set to the invalid value 'pick-a-key'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | <link rel='canonical' href='./regular-html-version.html'> | <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 type='javascript'> >> ^~~~~~~~~ feature_tests/several_errors.html:11:2 The attribute 'type' in tag 'amphtml engine script' is set to the invalid value 'javascript'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | // Let's go crazy. Uhm, no, hahaha. | </script> | </head> | <body> | <table><tr><td>Tables are allowed</td></tr></table> | <amp-img src=dimensions_are_missing.jpg layout="fixed"/> >> ^~~~~~~~~ feature_tests/several_errors.html:17:2 The mandatory attribute 'height' is missing in tag 'amp-img'. (see https://amp.dev/documentation/components/amp-img/) | <!-- We don't allow percent as a size unit either. --> | <amp-ad width=100% height=300> >> ^~~~~~~~~ feature_tests/several_errors.html:19:2 The attribute 'width' in tag 'amp-ad' is set to the invalid value '100%'. (see https://amp.dev/documentation/components/amp-ad/) | <!-- <script>document.write(…)</script> --> | </amp-ad> | <amp-ad width="42" height="42" made_up_attribute="oh hi"></amp-ad> >> ^~~~~~~~~ feature_tests/several_errors.html:22:2 The attribute 'made_up_attribute' may not appear in tag 'amp-ad'. (see https://amp.dev/documentation/components/amp-ad/) | <!-- When rendering errors for attribute values, we collapse whitespace - | even whitespace that is originally encoded.--> | <amp-ad width="42" height="foo bar baz"> >> ^~~~~~~~~ feature_tests/several_errors.html:25:2 The attribute 'height' in tag 'amp-ad' is set to the invalid value 'foo bar baz'. (see https://amp.dev/documentation/components/amp-ad/) | </amp-ad> | </body> | </html> >> ^~~~~~~~~ feature_tests/several_errors.html:28:6 The mandatory tag 'meta name=viewport' is missing or incorrect. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) >> ^~~~~~~~~ feature_tests/several_errors.html:28:6 The tag 'amp-ad extension script' is missing or incorrect, but required by 'amp-ad'. This will soon be an error. (see https://amp.dev/documentation/components/amp-ad/)