/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/testdata/feature_tests/noscript.out
67 строк
4 KB
Devin Mullins
Validator rollup (#37147)
08 дек 2021, 05:31
Не верифицирован
08 дек 2021, 05:31
6d03180
Код
Авторство
О чём код?
FAIL | <!-- | Test Description: | This tests the logic for <noscript> tags and it's child tags. | --> | <!doctype html> | <html ⚡> | <head> | <meta charset="utf-8"> | <link rel="canonical" href="./regular-html-version.html"> | <meta name="viewport" content="width=device-width,minimum-scale=1"> | <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> | </head> | <body> | <!-- Example of a valid noscript --> | <noscript> | <audio controls> | <source src="https://example.com/howl-of-the-lemur.mp3" type="audio/mpeg"> | </audio> | <img alt="Iconic Lemurs" decoding="auto" height="200" src="https://example.com/lemurs.png" width="80"> | <video controls height="480" width="640"> | <source src="https://example.com/island-of-lemurs.mp4" type="video/mp4"> | </video> | </noscript> | <!-- Valid: noscript with picture element --> | <noscript> | <picture> | <source type="image/webp" srcset="images/lemur.webp"> | <source type="image/jpeg" srcset="images/lemur.jpg"> | <img alt="Lemur sleeping" width=1200 height=800 src="images/lemur.jpg"> | </picture> | </noscript> | <!-- Invalid: audio's source must have src and type; controls are optional --> | <noscript> | <audio> | <source> >> ^~~~~~~~~ feature_tests/noscript.html:36:6 The mandatory attribute 'src' is missing in tag 'source'. (see https://amp.dev/documentation/components/amp-audio/) >> ^~~~~~~~~ feature_tests/noscript.html:36:6 The mandatory attribute 'type' is missing in tag 'source'. (see https://amp.dev/documentation/components/amp-audio/) | </audio> | </noscript> | <!-- Invalid: img must have src; alt, height and width are optional --> | <noscript> | <img alt="Iconic Lemurs"> >> ^~~~~~~~~ feature_tests/noscript.html:41:4 The mandatory attribute 'src' is missing in tag 'img'. | </noscript> | <!-- Invalid: audio must be in a noscript tag --> | <audio controls> >> ^~~~~~~~~ feature_tests/noscript.html:44:2 The tag 'audio' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-audio'? (see https://amp.dev/documentation/components/amp-audio/) | <source src="https://example.com/howl-of-the-lemur.mp3" type="audio/mpeg"> | </audio> | <!-- Invalid: video must be in a noscript tag --> | <video controls height="480" width="640"> >> ^~~~~~~~~ feature_tests/noscript.html:48:2 The tag 'video' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-video'? (see https://amp.dev/documentation/components/amp-video/) | <source src="https://example.com/island-of-lemurs.mp4" type="video/mp4"> | </video> | <!-- Invalid: nested noscript tags don't correctly parse. --> | <noscript> <noscript> </noscript> </noscript> >> ^~~~~~~~~ feature_tests/noscript.html:52:13 The parent tag of tag 'noscript' is 'noscript', but it can only be 'head'. (see https://amp.dev/documentation/guides-and-tutorials/learn/spec/amp-boilerplate/?format=websites) | </body> | </html>