/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/testdata/feature_tests/unprintable_chars.out.cpponly
45 строк
4 KB
Michael Rybak
Validator rollup (#35882)
31 авг 2021, 23:05
Не верифицирован
31 авг 2021, 23:05
733b0b8
Код
Авторство
О чём код?
FAIL | <!-- >> ^~~~~~~~~ feature_tests/unprintable_chars.html:1:0 The parent tag of tag 'html' is '$root', but it can only be '!doctype'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) >> ^~~~~~~~~ feature_tests/unprintable_chars.html:1:0 Tag or text which is only allowed inside the body section found outside of the body section. | Test Description: | The first few bytes in this document are \xef\xbb\xbf\xef\xbb\xbf, which is | also known as a byte-order-mark (BOM). These are not renderable bytes and | many text viewers will not display them. However, they are also not | whitespace. | | An HTML5 compliant parser will open the <body> section immediately upon | encountering non-whitespace text outside of the body section. This causes | tags which appear to be in the document head to actually be placed in the | document body. This creates very confusing errors which are hard to debug for | most developers. | --> | <!doctype html> | <html ⚡> | <head> | <meta charset="utf-8"> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:17:2 The parent tag of tag 'meta charset=utf-8' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | <link rel="canonical" href="./regular-html-version.html"> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:18:2 The parent tag of tag 'link rel=canonical' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | <meta name="viewport" content="width=device-width,minimum-scale=1"> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:19:2 The parent tag of tag 'meta name=viewport' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup) | <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> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:20:2 The parent tag of tag 'style amp-custom' is 'body', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets) >> ^~~~~~~~~ feature_tests/unprintable_chars.html:20:641 The tag 'noscript > style[amp-boilerplate]' may only appear as a descendant of tag 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amp-boilerplate/?format=websites) | <script async src="https://cdn.ampproject.org/v0.js"></script> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:21: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) | </head> | <body data-foo> | Hello, world. | </body> | </html> >> ^~~~~~~~~ feature_tests/unprintable_chars.html:26:6 The mandatory tag 'html !doctype' is missing or incorrect. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup)