/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/testdata/feature_tests/amp-action-macro.out
44 строки
2 KB
honeybadgerdontcare
Validator rollup 20210819 (#35748)
20 авг 2021, 21:08
Не верифицирован
20 авг 2021, 21:08
15f658d
Код
Авторство
О чём код?
FAIL | <!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 custom-element="amp-action-macro" src="https://cdn.ampproject.org/v0/amp-action-macro-0.1.js"></script> | <script async src="https://cdn.ampproject.org/v0.js"></script> | <style amp-custom> | .red { | color: red; | } | .green { | color: green; | } | </style> | </head> | <body> | | <!-- Valid --> | <amp-action-macro id="action-macro-id" execute="amp-component.doSomething()"> | </amp-action-macro> | | <!-- Valid, optional arguments --> | <amp-action-macro id="action-macro-id" execute="amp-component.doSomething(foo=x,bar=y)" | arguments="x,y"> | </amp-action-macro> | | <!-- Invalid, requires ID --> | <amp-action-macro execute="amp-component.doSomething()"> >> ^~~~~~~~~ feature_tests/amp-action-macro.html:31:2 The mandatory attribute 'id' is missing in tag 'amp-action-macro'. (see https://amp.dev/documentation/components/amp-action-macro/) | </amp-action-macro> | | <!-- Invalid, requires execute --> | <amp-action-macro id="action-macro-id"> >> ^~~~~~~~~ feature_tests/amp-action-macro.html:35:2 The mandatory attribute 'execute' is missing in tag 'amp-action-macro'. (see https://amp.dev/documentation/components/amp-action-macro/) | </amp-action-macro> | | </body> | </html>