/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
extensions/amp-bind/0.1/test/validator-amp-bind.html
64 строки
3 KB
honeybadgerdontcare
Validator rollup 20210819 (#35748)
20 авг 2021, 21:08
Не верифицирован
20 авг 2021, 21:08
15f658d
Код
Авторство
О чём код?
<!-- Test Description: Basic test for amp-bind. --> <!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>amp-bind: Basic</title> <link rel="canonical" href="amps.html"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-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> <script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> <script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script> </head> <body> <!-- VALID BINDINGS ON NON-AMP ELEMENTS --> <p [text]="foo" [class]="foo">p</p> <textarea [defaultText]="foo" [text]="foo">textarea</textarea> <a [href]="foo">a</a> <amp-img src="http://example.com/image.jpg" width=10 height=10 [src]="foo" [alt]="foo" [width]="foo" [height]="foo"></amp-img> <button [disabled]="foo" [type]="foo" [value]="foo">button</button> <form method="post" action-xhr="https://example.com/subscribe"> <input type="password" [type]="foo"> </form> <!-- AMP-BIND-MACRO --> <amp-bind-macro id="macroWithArgs" arguments="x, y" expression="x + y"></amp-bind-macro> <amp-bind-macro id="macroWithoutArgs" expression="foo + bar"></amp-bind-macro> <!-- AMP-STATE --> <!-- amp-state with child script --> <amp-state id="withChildScript"> <script type="application/json"> { "foo": "bar" } </script> </amp-state> <!-- amp-state with `src` attr --> <amp-state id="withSrc" src="https://www.foo.com/data.json"> </amp-state> <!-- amp-state with `src` and `credentials` attrs --> <amp-state id="withSrcPlusCredentials" src="https://www.foo.com/data.json" credentials="omit"> </amp-state> <!-- amp-state with child script and `src` attr --> <amp-state id="withChildScriptAndSrc" src="https://www.foo.com/data.json"> <script type="application/json"> { "foo": "bar" } </script> </amp-state> <!-- amp-state with child script and `src` and `credentials` attrs --> <amp-state id="withChildScriptAndSrcPlusCredentials" src="https://www.foo.com/data.json" credentials="include"> <script type="application/json"> { "foo": "bar" } </script> </amp-state> </body> </html>