diff --git a/README.md b/README.md index 09ec322bac3b..bbde599a2b77 100644 --- a/README.md +++ b/README.md @@ -86,14 +86,14 @@ These components can: such as [amp-img](builtins/amp-img.md) and [amp-video](builtins/amp-video.md). * Implement embedded third-party content, such as [amp-ad](builtins/amp-ad.md), -[amp-pinterest](extensions/amp-pinterest/amp-pinterest.md), -[amp-twitter](extensions/amp-twitter/amp-twitter.md), -and [amp-youtube](extensions/amp-youtube/amp-youtube.md). +[amp-pinterest](extensions/amp-pinterest/README.md), +[amp-twitter](extensions/amp-twitter/README.md), +and [amp-youtube](extensions/amp-youtube/README.md). * Provide for common patterns in web pages, -such as [amp-lightbox](extensions/amp-lightbox/amp-lightbox.md) -and [amp-carousel](extensions/amp-carousel/amp-carousel.md). +such as [amp-lightbox](extensions/amp-lightbox/README.md) +and [amp-carousel](extensions/amp-carousel/README.md). * Make advanced performance techniques easy, -such as [amp-anim](extensions/amp-anim/amp-anim.md), +such as [amp-anim](extensions/amp-anim/README.md), which allows web developers to dynamically serve animated images as either image files (GIF) or video files (WebM or MP4) based on browser compatibility. diff --git a/builtins/amp-ad.md b/builtins/amp-ad.md index 0f387daa9a02..75e8e8ceca08 100644 --- a/builtins/amp-ad.md +++ b/builtins/amp-ad.md @@ -64,7 +64,7 @@ Optional attribute to pass configuration to the ad as an arbitrarily complex JSO ##### data-consent-notification-id -Optional attribute. If provided will require confirming the [amp-user-notification](../extensions/amp-user-notification/amp-user-notification.md) with the given HTML-id until the "AMP client id" for the user (similar to a cookie) is passed to the ad. The means ad rendering is delayed until the user confirmed the notification. +Optional attribute. If provided will require confirming the [amp-user-notification](../extensions/amp-user-notification/README.md) with the given HTML-id until the "AMP client id" for the user (similar to a cookie) is passed to the ad. The means ad rendering is delayed until the user confirmed the notification. #### Placeholder diff --git a/docs/include_features.md b/docs/include_features.md index bf37b65bccf6..ec77424f3db6 100644 --- a/docs/include_features.md +++ b/docs/include_features.md @@ -10,7 +10,7 @@ Make sure to review the documentation for each component individually as a refer # Display an iframe Display an iframe in your page using the -[`amp-iframe`](../extensions/amp-iframe/amp-iframe.md) element. +[`amp-iframe`](../extensions/amp-iframe/README.md) element. `amp-iframe` requirements: @@ -100,7 +100,7 @@ amp-img { ## Include an animated image Include an animated image in your page -using the [`amp-anim`](../extensions/amp-anim/amp-anim.md) element. +using the [`amp-anim`](../extensions/amp-anim/README.md) element. The `amp-anim` element is very similar to the `amp-img` element, and provides additional functionality to manage loading and playing @@ -125,7 +125,7 @@ The placeholder is specified via the `placeholder` attribute: ## Embed a Tweet Embed a Twitter Tweet in your page -using the [`amp-twitter`](../extensions/amp-twitter/amp-twitter.md) element. +using the [`amp-twitter`](../extensions/amp-twitter/README.md) element. To include a tweet in your page, first include the following script to the ``: @@ -194,7 +194,7 @@ if the browser doesn't support HTML5 video, for example: ## Include a youtube video Include a youtube video in your page -using the [`amp-youtube`](../extensions/amp-youtube/amp-youtube.md) element. +using the [`amp-youtube`](../extensions/amp-youtube/README.md) element. You must include the following script in the ``: @@ -217,7 +217,7 @@ Use `layout="responsive"` to yield correct layouts for 16:9 aspect ratio videos: ## Include an audio resource Include an audio resource in your page, -using the [`amp-audio`](../extensions/amp-audio/amp-audio.md) element. +using the [`amp-audio`](../extensions/amp-audio/README.md) element. You must include the following script in the ``: diff --git a/extensions/amp-access/amp-access.md b/extensions/amp-access/README.md similarity index 100% rename from extensions/amp-access/amp-access.md rename to extensions/amp-access/README.md diff --git a/extensions/amp-analytics/amp-analytics.md b/extensions/amp-analytics/README.md similarity index 98% rename from extensions/amp-analytics/amp-analytics.md rename to extensions/amp-analytics/README.md index 2f153d24c52a..b296009edbac 100644 --- a/extensions/amp-analytics/amp-analytics.md +++ b/extensions/amp-analytics/README.md @@ -73,7 +73,7 @@ when the document is first loaded, and each time an `` tag is clicked: ``` - `data-consent-notification-id` Optional attribute. If provided will stop - processing the analytics request until a [amp-user-notification](../../extensions/amp-user-notification/amp-user-notification.md) with + processing the analytics request until a [amp-user-notification](../../extensions/amp-user-notification/README.md) with the given HTML-id was confirmed by the user. ## Configuration diff --git a/extensions/amp-anim/amp-anim.md b/extensions/amp-anim/README.md similarity index 100% rename from extensions/amp-anim/amp-anim.md rename to extensions/amp-anim/README.md diff --git a/extensions/amp-audio/amp-audio.md b/extensions/amp-audio/README.md similarity index 100% rename from extensions/amp-audio/amp-audio.md rename to extensions/amp-audio/README.md diff --git a/extensions/amp-brightcove/amp-brightcove.md b/extensions/amp-brightcove/README.md similarity index 100% rename from extensions/amp-brightcove/amp-brightcove.md rename to extensions/amp-brightcove/README.md diff --git a/extensions/amp-carousel/amp-carousel.md b/extensions/amp-carousel/README.md similarity index 100% rename from extensions/amp-carousel/amp-carousel.md rename to extensions/amp-carousel/README.md diff --git a/extensions/amp-dynamic-css-classes/amp-dynamic-css-classes.md b/extensions/amp-dynamic-css-classes/README.md similarity index 100% rename from extensions/amp-dynamic-css-classes/amp-dynamic-css-classes.md rename to extensions/amp-dynamic-css-classes/README.md diff --git a/extensions/amp-facebook/amp-facebook.md b/extensions/amp-facebook/README.md similarity index 100% rename from extensions/amp-facebook/amp-facebook.md rename to extensions/amp-facebook/README.md diff --git a/extensions/amp-fit-text/amp-fit-text.md b/extensions/amp-fit-text/README.md similarity index 100% rename from extensions/amp-fit-text/amp-fit-text.md rename to extensions/amp-fit-text/README.md diff --git a/extensions/amp-font/amp-font.md b/extensions/amp-font/README.md similarity index 100% rename from extensions/amp-font/amp-font.md rename to extensions/amp-font/README.md diff --git a/extensions/amp-iframe/amp-iframe.md b/extensions/amp-iframe/README.md similarity index 100% rename from extensions/amp-iframe/amp-iframe.md rename to extensions/amp-iframe/README.md diff --git a/extensions/amp-image-lightbox/amp-image-lightbox.md b/extensions/amp-image-lightbox/README.md similarity index 100% rename from extensions/amp-image-lightbox/amp-image-lightbox.md rename to extensions/amp-image-lightbox/README.md diff --git a/extensions/amp-instagram/amp-instagram.md b/extensions/amp-instagram/README.md similarity index 100% rename from extensions/amp-instagram/amp-instagram.md rename to extensions/amp-instagram/README.md diff --git a/extensions/amp-install-serviceworker/amp-install-serviceworker.md b/extensions/amp-install-serviceworker/README.md similarity index 100% rename from extensions/amp-install-serviceworker/amp-install-serviceworker.md rename to extensions/amp-install-serviceworker/README.md diff --git a/extensions/amp-lightbox/amp-lightbox.md b/extensions/amp-lightbox/README.md similarity index 100% rename from extensions/amp-lightbox/amp-lightbox.md rename to extensions/amp-lightbox/README.md diff --git a/extensions/amp-list/amp-list.md b/extensions/amp-list/README.md similarity index 100% rename from extensions/amp-list/amp-list.md rename to extensions/amp-list/README.md diff --git a/extensions/amp-mustache/amp-mustache.md b/extensions/amp-mustache/README.md similarity index 100% rename from extensions/amp-mustache/amp-mustache.md rename to extensions/amp-mustache/README.md diff --git a/extensions/amp-pinterest/amp-pinterest.md b/extensions/amp-pinterest/README.md similarity index 100% rename from extensions/amp-pinterest/amp-pinterest.md rename to extensions/amp-pinterest/README.md diff --git a/extensions/amp-slides/amp-slides.md b/extensions/amp-slides/README.md similarity index 100% rename from extensions/amp-slides/amp-slides.md rename to extensions/amp-slides/README.md diff --git a/extensions/amp-twitter/amp-twitter.md b/extensions/amp-twitter/README.md similarity index 100% rename from extensions/amp-twitter/amp-twitter.md rename to extensions/amp-twitter/README.md diff --git a/extensions/amp-user-notification/amp-user-notification.md b/extensions/amp-user-notification/README.md similarity index 100% rename from extensions/amp-user-notification/amp-user-notification.md rename to extensions/amp-user-notification/README.md diff --git a/extensions/amp-vine/amp-vine.md b/extensions/amp-vine/README.md similarity index 100% rename from extensions/amp-vine/amp-vine.md rename to extensions/amp-vine/README.md diff --git a/extensions/amp-youtube/amp-youtube.md b/extensions/amp-youtube/README.md similarity index 100% rename from extensions/amp-youtube/amp-youtube.md rename to extensions/amp-youtube/README.md diff --git a/spec/amp-html-components.md b/spec/amp-html-components.md index fa429882e2be..e00cf2f77e2e 100644 --- a/spec/amp-html-components.md +++ b/spec/amp-html-components.md @@ -173,17 +173,17 @@ In these cases, services may set up endpoints that produce data that conforms to ## Components - [amp-img](../builtins/amp-img.md) -- [amp-audio](../extensions/amp-audio/amp-audio.md) -- [amp-anim](../extensions/amp-anim/amp-anim.md) +- [amp-audio](../extensions/amp-audio/README.md) +- [amp-anim](../extensions/amp-anim/README.md) - [amp-ad](../builtins/amp-ad.md) - [amp-pixel](../builtins/amp-pixel.md) - [amp-video](../builtins/amp-video.md) -- [amp-brightcove](../extensions/amp-brightcove/amp-brightcove.md) -- [amp-carousel](../extensions/amp-carousel/amp-carousel.md) -- [amp-font](../extensions/amp-font/amp-font.md) -- [amp-lightbox](../extensions/amp-lightbox/amp-lightbox.md) -- [amp-iframe](../extensions/amp-iframe/amp-iframe.md) -- [amp-instagram](../extensions/amp-instagram/amp-instagram.md) -- [amp-twitter](../extensions/amp-twitter/amp-twitter.md) -- [amp-vine](../extensions/amp-vine/amp-vine.md) -- [amp-youtube](../extensions/amp-youtube/amp-youtube.md) +- [amp-brightcove](../extensions/amp-brightcove/README.md) +- [amp-carousel](../extensions/amp-carousel/README.md) +- [amp-font](../extensions/amp-font/README.md) +- [amp-lightbox](../extensions/amp-lightbox/README.md) +- [amp-iframe](../extensions/amp-iframe/README.md) +- [amp-instagram](../extensions/amp-instagram/README.md) +- [amp-twitter](../extensions/amp-twitter/README.md) +- [amp-vine](../extensions/amp-vine/README.md) +- [amp-youtube](../extensions/amp-youtube/README.md) diff --git a/spec/amp-iframe-origin-policy.md b/spec/amp-iframe-origin-policy.md index 4bf49d45ba06..b2dec6d42a8e 100644 --- a/spec/amp-iframe-origin-policy.md +++ b/spec/amp-iframe-origin-policy.md @@ -1,6 +1,6 @@ # Iframe origin policy -Various AMP features allow loading iframes from arbitrary origins into AMP pages. Examples are the [`amp-iframe`](../extensions/amp-iframe/amp-iframe.md) element and [the custom domain feature of `amp-ad`](../builtins/amp-ad.md#running-ads-from-a-custom-domain). The origin of a URL such as `https://example.com/some/path` is `https://example.com`. See [the HTML5 spec](https://www.w3.org/TR/2011/WD-html5-20110525/origin-0.html#origin) for details. +Various AMP features allow loading iframes from arbitrary origins into AMP pages. Examples are the [`amp-iframe`](../extensions/amp-iframe/README.md) element and [the custom domain feature of `amp-ad`](../builtins/amp-ad.md#running-ads-from-a-custom-domain). The origin of a URL such as `https://example.com/some/path` is `https://example.com`. See [the HTML5 spec](https://www.w3.org/TR/2011/WD-html5-20110525/origin-0.html#origin) for details. These iframes are typically allowed to execute arbitrary JavaScript, but for security reasons they are never allowed to access the AMP document itself using any method besides sending messages via postMessage. diff --git a/spec/amp-var-substitutions.md b/spec/amp-var-substitutions.md index 062d226351d1..88ba081d5d5e 100644 --- a/spec/amp-var-substitutions.md +++ b/spec/amp-var-substitutions.md @@ -19,7 +19,7 @@ limitations under the License. ## Overview Some components such as [`amp-pixel`](../builtins/amp-pixel.md) and -[`amp-list`](../extensions/amp-list/amp-list.md) allow variables to be substituted +[`amp-list`](../extensions/amp-list/README.md) allow variables to be substituted in the relevant URLs. AMP provides a number of standard variable substitutions and allows each component to add their own. The rest of this document talks about the variables supported by the platform. diff --git a/validator/testdata/feature_tests/amp_brightcove.html b/validator/testdata/feature_tests/amp_brightcove.html index b0a7aa406aa5..02e9489d4479 100644 --- a/validator/testdata/feature_tests/amp_brightcove.html +++ b/validator/testdata/feature_tests/amp_brightcove.html @@ -16,7 +16,7 @@ diff --git a/validator/testdata/feature_tests/amp_brightcove.out b/validator/testdata/feature_tests/amp_brightcove.out index 4eee8f345fb5..525b56ad990e 100644 --- a/validator/testdata/feature_tests/amp_brightcove.out +++ b/validator/testdata/feature_tests/amp_brightcove.out @@ -1,3 +1,3 @@ FAIL -feature_tests/amp_brightcove.html:46:2 The mandatory attribute 'data-account' is missing in tag 'amp-brightcove'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/amp-brightcove.md) -feature_tests/amp_brightcove.html:50:7 The 'amp-brightcove extension .js script' tag is missing or incorrect, but required by 'amp-brightcove'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/amp-brightcove.md) +feature_tests/amp_brightcove.html:46:2 The mandatory attribute 'data-account' is missing in tag 'amp-brightcove'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/README.md) +feature_tests/amp_brightcove.html:50:7 The 'amp-brightcove extension .js script' tag is missing or incorrect, but required by 'amp-brightcove'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/README.md) diff --git a/validator/testdata/feature_tests/amp_facebook.html b/validator/testdata/feature_tests/amp_facebook.html index 348dabdd042a..7edb33afe87e 100644 --- a/validator/testdata/feature_tests/amp_facebook.html +++ b/validator/testdata/feature_tests/amp_facebook.html @@ -16,7 +16,7 @@ diff --git a/validator/testdata/feature_tests/amp_font.html b/validator/testdata/feature_tests/amp_font.html index 758120c0214f..c68cd1ecfed8 100644 --- a/validator/testdata/feature_tests/amp_font.html +++ b/validator/testdata/feature_tests/amp_font.html @@ -27,7 +27,7 @@ diff --git a/validator/testdata/feature_tests/amp_user_notification.out b/validator/testdata/feature_tests/amp_user_notification.out index ef5e2dc27307..9dcab080185d 100644 --- a/validator/testdata/feature_tests/amp_user_notification.out +++ b/validator/testdata/feature_tests/amp_user_notification.out @@ -1,7 +1,7 @@ FAIL -feature_tests/amp_user_notification.html:41:2 The mandatory attribute 'data-show-if-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) -feature_tests/amp_user_notification.html:50:2 The mandatory attribute 'data-dismiss-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) -feature_tests/amp_user_notification.html:59:2 The mandatory attribute 'data-show-if-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) -feature_tests/amp_user_notification.html:59:2 The mandatory attribute 'data-dismiss-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) -feature_tests/amp_user_notification.html:67:2 The specified layout 'CONTAINER' is not supported by tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) -feature_tests/amp_user_notification.html:77:7 The 'amp-user-notification extension .js script' tag is missing or incorrect, but required by 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md) +feature_tests/amp_user_notification.html:41:2 The mandatory attribute 'data-show-if-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) +feature_tests/amp_user_notification.html:50:2 The mandatory attribute 'data-dismiss-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) +feature_tests/amp_user_notification.html:59:2 The mandatory attribute 'data-show-if-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) +feature_tests/amp_user_notification.html:59:2 The mandatory attribute 'data-dismiss-href' is missing in tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) +feature_tests/amp_user_notification.html:67:2 The specified layout 'CONTAINER' is not supported by tag 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) +feature_tests/amp_user_notification.html:77:7 The 'amp-user-notification extension .js script' tag is missing or incorrect, but required by 'amp-user-notification'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md) diff --git a/validator/testdata/feature_tests/mandatory_dimensions.out b/validator/testdata/feature_tests/mandatory_dimensions.out index fe2e34e6aa4f..0c595156db57 100644 --- a/validator/testdata/feature_tests/mandatory_dimensions.out +++ b/validator/testdata/feature_tests/mandatory_dimensions.out @@ -10,24 +10,24 @@ feature_tests/mandatory_dimensions.html:118:4 The attribute 'height' in tag 'amp feature_tests/mandatory_dimensions.html:119:4 The attribute 'width' in tag 'amp-img' is set to the invalid value 'auto'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) feature_tests/mandatory_dimensions.html:122:4 Inconsistent units for width and height in tag 'amp-img' - width is specified in 'px' whereas height is specified in 'rem'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) feature_tests/mandatory_dimensions.html:125:4 The mandatory attribute 'src' is missing in tag 'amp-img'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) -feature_tests/mandatory_dimensions.html:126:4 The mandatory attribute 'src' is missing in tag 'amp-anim'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/amp-anim.md) -feature_tests/mandatory_dimensions.html:129:4 The attribute 'srcset' may not appear in tag 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/mandatory_dimensions.html:126:4 The mandatory attribute 'src' is missing in tag 'amp-anim'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/README.md) +feature_tests/mandatory_dimensions.html:129:4 The attribute 'srcset' may not appear in tag 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) feature_tests/mandatory_dimensions.html:130:4 The attribute 'srcset' may not appear in tag 'amp-ad'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-ad.md) -feature_tests/mandatory_dimensions.html:133:4 The tag 'amp-iframe' is missing a mandatory attribute - pick one of ['src', 'srcdoc']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md) +feature_tests/mandatory_dimensions.html:133:4 The tag 'amp-iframe' is missing a mandatory attribute - pick one of ['src', 'srcdoc']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/README.md) feature_tests/mandatory_dimensions.html:134:4 The mandatory attribute 'src' is missing in tag 'amp-pixel'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-pixel.md) -feature_tests/mandatory_dimensions.html:137:4 The attribute 'src' may not appear in tag 'amp-fit-text'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/amp-fit-text.md) -feature_tests/mandatory_dimensions.html:138:4 The attribute 'src' may not appear in tag 'amp-carousel'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md) -feature_tests/mandatory_dimensions.html:139:4 The attribute 'srcset' may not appear in tag 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/mandatory_dimensions.html:140:4 The attribute 'srcset' may not appear in tag 'amp-twitter'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/amp-twitter.md) -feature_tests/mandatory_dimensions.html:141:4 The attribute 'srcset' may not appear in tag 'amp-instagram'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/amp-instagram.md) -feature_tests/mandatory_dimensions.html:142:4 The attribute 'src' may not appear in tag 'amp-lightbox'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/amp-lightbox.md) +feature_tests/mandatory_dimensions.html:137:4 The attribute 'src' may not appear in tag 'amp-fit-text'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/README.md) +feature_tests/mandatory_dimensions.html:138:4 The attribute 'src' may not appear in tag 'amp-carousel'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/README.md) +feature_tests/mandatory_dimensions.html:139:4 The attribute 'srcset' may not appear in tag 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/mandatory_dimensions.html:140:4 The attribute 'srcset' may not appear in tag 'amp-twitter'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/README.md) +feature_tests/mandatory_dimensions.html:141:4 The attribute 'srcset' may not appear in tag 'amp-instagram'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/README.md) +feature_tests/mandatory_dimensions.html:142:4 The attribute 'src' may not appear in tag 'amp-lightbox'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/README.md) feature_tests/mandatory_dimensions.html:145:4 The attribute 'foo' may not appear in tag 'amp-img'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-fit-text extension .js script' tag is missing or incorrect, but required by 'amp-fit-text'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/amp-fit-text.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-carousel extension .js script' tag is missing or incorrect, but required by 'amp-carousel'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-anim extension .js script' tag is missing or incorrect, but required by 'amp-anim'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/amp-anim.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-youtube extension .js script' tag is missing or incorrect, but required by 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-twitter extension .js script' tag is missing or incorrect, but required by 'amp-twitter'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/amp-twitter.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-instagram extension .js script' tag is missing or incorrect, but required by 'amp-instagram'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/amp-instagram.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-iframe extension .js script' tag is missing or incorrect, but required by 'amp-iframe'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) -feature_tests/mandatory_dimensions.html:149:7 The 'amp-lightbox extension .js script' tag is missing or incorrect, but required by 'amp-lightbox'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/amp-lightbox.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-fit-text extension .js script' tag is missing or incorrect, but required by 'amp-fit-text'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-carousel extension .js script' tag is missing or incorrect, but required by 'amp-carousel'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-anim extension .js script' tag is missing or incorrect, but required by 'amp-anim'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-youtube extension .js script' tag is missing or incorrect, but required by 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-twitter extension .js script' tag is missing or incorrect, but required by 'amp-twitter'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-instagram extension .js script' tag is missing or incorrect, but required by 'amp-instagram'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-iframe extension .js script' tag is missing or incorrect, but required by 'amp-iframe'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) +feature_tests/mandatory_dimensions.html:149:7 The 'amp-lightbox extension .js script' tag is missing or incorrect, but required by 'amp-lightbox'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/README.md) diff --git a/validator/testdata/feature_tests/no_custom_js.out b/validator/testdata/feature_tests/no_custom_js.out index b2fe26471236..7a3670b4248c 100644 --- a/validator/testdata/feature_tests/no_custom_js.out +++ b/validator/testdata/feature_tests/no_custom_js.out @@ -1,3 +1,3 @@ FAIL feature_tests/no_custom_js.html:28:3 The attribute 'src' in tag 'amphtml engine v0.js script' is set to the invalid value 'https://example.com/v0-not-allowed.js'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#scrpt) -feature_tests/no_custom_js.html:29:3 The attribute 'custom-element' in tag 'amp-access extension .js script' is set to the invalid value 'amp-foo'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-access/amp-access.md) +feature_tests/no_custom_js.html:29:3 The attribute 'custom-element' in tag 'amp-access extension .js script' is set to the invalid value 'amp-foo'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-access/README.md) diff --git a/validator/testdata/feature_tests/noscript.out b/validator/testdata/feature_tests/noscript.out index 85fbd148a5e3..50dbfe8d6417 100644 --- a/validator/testdata/feature_tests/noscript.out +++ b/validator/testdata/feature_tests/noscript.out @@ -2,6 +2,6 @@ FAIL feature_tests/noscript.html:43:6 The mandatory attribute 'src' is missing in tag 'audio > source'. feature_tests/noscript.html:43:6 The mandatory attribute 'type' is missing in tag 'audio > source'. feature_tests/noscript.html:48:4 The mandatory attribute 'src' is missing in tag 'img'. (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) -feature_tests/noscript.html:51:2 The tag 'audio' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-audio'? (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/noscript.html:51:2 The tag 'audio' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-audio'? (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) feature_tests/noscript.html:55:2 The tag 'img' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-img'? (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-img.md) feature_tests/noscript.html:57:2 The tag 'video' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-video'? (see https://github.com/ampproject/amphtml/blob/master/builtins/amp-video.md) diff --git a/validator/testdata/feature_tests/regexps.out b/validator/testdata/feature_tests/regexps.out index a5c006cb5341..f521711af879 100644 --- a/validator/testdata/feature_tests/regexps.out +++ b/validator/testdata/feature_tests/regexps.out @@ -6,9 +6,9 @@ feature_tests/regexps.html:48:2 The attribute 'rel' in tag 'link rel=' is set to feature_tests/regexps.html:49:2 The attribute 'rel' in tag 'link rel=' is set to the invalid value 'foo accessibility'. feature_tests/regexps.html:57:2 The attribute 'name' in tag 'meta name=viewport' is set to the invalid value 'content-disposition'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#vprt) feature_tests/regexps.html:58:2 The attribute 'name' in tag 'meta name=viewport' is set to the invalid value 'invalid content-disposition'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#vprt) -feature_tests/regexps.html:69:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'invalid'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) -feature_tests/regexps.html:70:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'desktopfoo'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) -feature_tests/regexps.html:71:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'foodesktop'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/regexps.html:69:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'invalid'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) +feature_tests/regexps.html:70:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'desktopfoo'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) +feature_tests/regexps.html:71:2 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value 'foodesktop'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) feature_tests/regexps.html:78:2 The attribute 'href' in tag 'a' is set to the invalid value 'javascript:alert'. feature_tests/regexps.html:79:2 The attribute 'href' in tag 'a' is set to the invalid value ' javascript:alert'. -feature_tests/regexps.html:81:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/regexps.html:81:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) diff --git a/validator/testdata/feature_tests/template.out b/validator/testdata/feature_tests/template.out index cd5a27dcc98a..f5a9530898bb 100644 --- a/validator/testdata/feature_tests/template.out +++ b/validator/testdata/feature_tests/template.out @@ -33,6 +33,6 @@ feature_tests/template.html:68:2 The attribute 'title' in tag 'p' is set to '{{> feature_tests/template.html:69:2 The attribute 'title' in tag 'p' is set to '{{ & notallowed }}', which contains unescaped Mustache template syntax. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-templates.md) feature_tests/template.html:70:2 The attribute 'title' in tag 'p' is set to '{{ > notallowed }}', which contains a Mustache template partial. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-templates.md) feature_tests/template.html:95:4 The tag 'template' may not appear as a descendant of tag 'template'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-templates.md) -feature_tests/template.html:107:0 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value '{{invalid}}'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/template.html:107:0 The attribute 'autoplay' in tag 'amp-audio' is set to the invalid value '{{invalid}}'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) feature_tests/template.html:112:7 The 'amp-mustache extension .js script' tag is missing or incorrect, but required by 'template'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-templates.md) -feature_tests/template.html:112:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md) +feature_tests/template.html:112:7 The 'amp-audio extension .js script' tag is missing or incorrect, but required by 'amp-audio'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md) diff --git a/validator/testdata/feature_tests/youtube.html b/validator/testdata/feature_tests/youtube.html index 455df39056e4..090dc595a221 100644 --- a/validator/testdata/feature_tests/youtube.html +++ b/validator/testdata/feature_tests/youtube.html @@ -32,7 +32,7 @@ video-id="https://www.youtube.com/watch?v=9bZkp7q19f0"> +https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md --> diff --git a/validator/testdata/feature_tests/youtube.out b/validator/testdata/feature_tests/youtube.out index d748f7cdd950..0ca3e078f985 100644 --- a/validator/testdata/feature_tests/youtube.out +++ b/validator/testdata/feature_tests/youtube.out @@ -1,7 +1,7 @@ FAIL -feature_tests/youtube.html:31:2 The attribute 'video-id' in tag 'amp-youtube' is deprecated - use 'data-videoid' instead. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/youtube.html:40:2 The tag 'amp-youtube' is missing a mandatory attribute - pick one of ['src', 'data-videoid']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/youtube.html:42:2 The implied layout 'CONTAINER' is not supported by tag 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/youtube.html:45:2 The attribute 'video-id' in tag 'amp-youtube' is deprecated - use 'data-videoid' instead. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/youtube.html:45:2 Mutually exclusive attributes encountered in tag 'amp-youtube' - pick one of ['src', 'data-videoid']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) -feature_tests/youtube.html:50:7 The 'amp-youtube extension .js script' tag is missing or incorrect, but required by 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md) +feature_tests/youtube.html:31:2 The attribute 'video-id' in tag 'amp-youtube' is deprecated - use 'data-videoid' instead. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/youtube.html:40:2 The tag 'amp-youtube' is missing a mandatory attribute - pick one of ['src', 'data-videoid']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/youtube.html:42:2 The implied layout 'CONTAINER' is not supported by tag 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/youtube.html:45:2 The attribute 'video-id' in tag 'amp-youtube' is deprecated - use 'data-videoid' instead. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/youtube.html:45:2 Mutually exclusive attributes encountered in tag 'amp-youtube' - pick one of ['src', 'data-videoid']. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) +feature_tests/youtube.html:50:7 The 'amp-youtube extension .js script' tag is missing or incorrect, but required by 'amp-youtube'. (see https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md) diff --git a/validator/validator.protoascii b/validator/validator.protoascii index bf46b973ff81..d9a8b6bc1a19 100644 --- a/validator/validator.protoascii +++ b/validator/validator.protoascii @@ -972,7 +972,7 @@ tags: { mandatory_ancestor: "noscript" mandatory_ancestor_suggested_alternative: "amp-audio" attrs: { name: "controls" } - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md" } # 4.7.8 The source element attr_lists: { @@ -985,7 +985,7 @@ attr_lists: { tags: { name: "source" detail: "amp-audio > source" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md" mandatory_parent: "amp-audio" attrs: { name: "src" } attrs: { name: "type" } @@ -1649,7 +1649,7 @@ tags: { # amp-access name: "script" detail: "amp-access extension .js script" mandatory_parent: "head" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-access/amp-access.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-access/README.md" attrs: { name: "custom-element" value: "amp-access" @@ -1667,7 +1667,7 @@ tags: { # amp-analytics name: "script" mandatory_parent: "head" detail: "amp-analytics extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-analytics.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/README.md" attrs: { name: "custom-element" value: "amp-analytics" @@ -1685,7 +1685,7 @@ tags: { # amp-anim name: "script" mandatory_parent: "head" detail: "amp-anim extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/amp-anim.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/README.md" attrs: { name: "custom-element" value: "amp-anim" @@ -1703,7 +1703,7 @@ tags: { # amp-audio name: "script" mandatory_parent: "head" detail: "amp-audio extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md" attrs: { name: "custom-element" value: "amp-audio" @@ -1721,7 +1721,7 @@ tags: { # amp-brightcove name: "script" mandatory_parent: "head" detail: "amp-brightcove extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/amp-brightcove.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/README.md" attrs: { name: "custom-element" value: "amp-brightcove" @@ -1739,7 +1739,7 @@ tags: { # amp-carousel name: "script" mandatory_parent: "head" detail: "amp-carousel extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/README.md" attrs: { name: "custom-element" value: "amp-carousel" @@ -1757,7 +1757,7 @@ tags: { # amp-dynamic-css-classes name: "script" mandatory_parent: "head" detail: "amp-dynamic-css-classes extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-dynamic-css-classes/amp-dynamic-css-classes.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-dynamic-css-classes/README.md" attrs: { name: "custom-element" value: "amp-dynamic-css-classes" @@ -1775,7 +1775,7 @@ tags: { # amp-facebook name: "script" mandatory_parent: "head" detail: "amp-facebook extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-facebook/amp-facebook.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-facebook/README.md" attrs: { name: "custom-element" value: "amp-facebook" @@ -1793,7 +1793,7 @@ tags: { # amp-fit-text name: "script" mandatory_parent: "head" detail: "amp-fit-text extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/amp-fit-text.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/README.md" attrs: { name: "custom-element" value: "amp-fit-text" @@ -1811,7 +1811,7 @@ tags: { # amp-font name: "script" mandatory_parent: "head" detail: "amp-font extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-font/amp-font.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-font/README.md" attrs: { name: "custom-element" value: "amp-font" @@ -1829,7 +1829,7 @@ tags: { # amp-iframe name: "script" mandatory_parent: "head" detail: "amp-iframe extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/README.md" attrs: { name: "custom-element" value: "amp-iframe" @@ -1847,7 +1847,7 @@ tags: { # amp-image-lightbox name: "script" mandatory_parent: "head" detail: "amp-image-lightbox extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-image-lightbox/amp-image-lightbox.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-image-lightbox/README.md" attrs: { name: "custom-element" value: "amp-image-lightbox" @@ -1865,7 +1865,7 @@ tags: { # amp-instagram name: "script" mandatory_parent: "head" detail: "amp-instagram extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/amp-instagram.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/README.md" attrs: { name: "custom-element" value: "amp-instagram" @@ -1883,7 +1883,7 @@ tags: { # amp-install-serviceworker name: "script" mandatory_parent: "head" detail: "amp-install-serviceworker extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-install-serviceworker/amp-install-serviceworker.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-install-serviceworker/README.md" attrs: { name: "custom-element" value: "amp-install-serviceworker" @@ -1901,7 +1901,7 @@ tags: { # amp-lightbox name: "script" mandatory_parent: "head" detail: "amp-lightbox extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/amp-lightbox.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/README.md" attrs: { name: "custom-element" value: "amp-lightbox" @@ -1919,7 +1919,7 @@ tags: { # amp-mustache name: "script" mandatory_parent: "head" detail: "amp-mustache extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-mustache/amp-mustache.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-mustache/README.md" attrs: { name: "custom-template" value: "amp-mustache" @@ -1937,7 +1937,7 @@ tags: { # amp-list name: "script" mandatory_parent: "head" detail: "amp-list extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-list/amp-list.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-list/README.md" attrs: { name: "custom-element" value: "amp-list" @@ -1955,7 +1955,7 @@ tags: { # amp-pinterest name: "script" mandatory_parent: "head" detail: "amp-pinterest extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/amp-pinterest.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/README.md" attrs: { name: "custom-element" value: "amp-pinterest" @@ -1973,7 +1973,7 @@ tags: { # amp-slides name: "script" mandatory_parent: "head" detail: "amp-slides extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-slides/amp-slides.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-slides/README.md" attrs: { name: "custom-element" value: "amp-slides" @@ -1991,7 +1991,7 @@ tags: { # amp-twitter name: "script" mandatory_parent: "head" detail: "amp-twitter extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/amp-twitter.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/README.md" attrs: { name: "custom-element" value: "amp-twitter" @@ -2009,7 +2009,7 @@ tags: { # amp-user-notification name: "script" mandatory_parent: "head" detail: "amp-user-notification extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md" attrs: { name: "custom-element" value: "amp-user-notification" @@ -2027,7 +2027,7 @@ tags: { # amp-vine name: "script" mandatory_parent: "head" detail: "amp-vine extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-vine/amp-vine.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-vine/README.md" attrs: { name: "custom-element" value: "amp-vine" @@ -2045,7 +2045,7 @@ tags: { # amp-youtube name: "script" mandatory_parent: "head" detail: "amp-youtube extension .js script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md" attrs: { name: "custom-element" value: "amp-youtube" @@ -2064,7 +2064,7 @@ tags: { name: "script" mandatory_parent: "amp-analytics" detail: "amp-analytics json script" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-analytics.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/README.md" attrs: { name: "type" mandatory: true @@ -2187,7 +2187,7 @@ attr_lists: { # tags: { name: "amp-brightcove" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/amp-brightcove.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-brightcove/README.md" also_requires: "amp-brightcove extension .js script" attr_lists: "extended-amp-global" attrs: { name: "data-account" mandatory: true } @@ -2210,7 +2210,7 @@ tags: { # tags: { name: "amp-font" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-font/amp-font.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-font/README.md" also_requires: "amp-font extension .js script" attr_lists: "extended-amp-global" attrs: { @@ -2312,7 +2312,7 @@ tags: { # tags: { name: "amp-facebook" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-facebook/amp-facebook.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-facebook/README.md" also_requires: "amp-facebook extension .js script" attr_lists: "extended-amp-global" # data-* is generally allowed, but it's not generally mandatory. @@ -2330,7 +2330,7 @@ tags: { # out now that the spec is available. tags: { name: "amp-fit-text" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/amp-fit-text.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-fit-text/README.md" also_requires: "amp-fit-text extension .js script" attr_lists: "extended-amp-global" attrs: { name: "min-font-size" } @@ -2346,7 +2346,7 @@ tags: { # tags: { name: "amp-carousel" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/README.md" also_requires: "amp-carousel extension .js script" attr_lists: "extended-amp-global" attrs: { name: "autoplay" value: "" } @@ -2366,7 +2366,7 @@ tags: { # tags: { name: "amp-anim" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/amp-anim.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-anim/README.md" also_requires: "amp-anim extension .js script" attr_lists: "extended-amp-global" attr_lists: "mandatory-src-or-srcset" @@ -2385,7 +2385,7 @@ tags: { # tags: { name: "amp-analytics" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-analytics.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/README.md" also_requires: "amp-analytics extension .js script" attrs: { name: "type" value: "googleanalytics" } # TODO(gregable): This should require a valid https URL as the attr value. @@ -2394,7 +2394,7 @@ tags: { # tags: { name: "amp-user-notification" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/amp-user-notification.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-user-notification/README.md" also_requires: "amp-user-notification extension .js script" attr_lists: "extended-amp-global" attrs: { name: "data-show-if-href" mandatory: true } @@ -2409,7 +2409,7 @@ tags: { tags: { name: "amp-youtube" attr_lists: "extended-amp-global" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md" also_requires: "amp-youtube extension .js script" attrs: { name: "src" @@ -2422,7 +2422,7 @@ tags: { attrs: { name: "video-id" deprecation: "data-videoid" - deprecation_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md" + deprecation_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/README.md" mandatory_oneof: "['src', 'data-videoid']" } amp_layout: { @@ -2436,7 +2436,7 @@ tags: { # tags: { name: "amp-vine" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-vine/amp-vine.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-vine/README.md" also_requires: "amp-vine extension .js script" attr_lists: "extended-amp-global" # data-* is generally allowed, but it's not generally mandatory. @@ -2450,13 +2450,13 @@ tags: { } } # -# https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/amp-pinterest.md +# https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/README.md # TODO: Enforce mandatory attributes depending on the value of another # attribute. In this case, depending on the value of data-do, data-media and # data-description may or may not be mandatory. tags: { name: "amp-pinterest" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/amp-pinterest.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-pinterest/README.md" also_requires: "amp-pinterest extension .js script" attr_lists: "extended-amp-global" # data-* is generally allowed, but it's not generally mandatory. @@ -2472,7 +2472,7 @@ tags: { # tags: { name: "amp-twitter" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/amp-twitter.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-twitter/README.md" also_requires: "amp-twitter extension .js script" attr_lists: "extended-amp-global" attrs: { name: "data-tweetid" mandatory_oneof: "['data-tweetid', 'src']" } @@ -2488,7 +2488,7 @@ tags: { # tags: { name: "amp-instagram" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/amp-instagram.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/README.md" also_requires: "amp-instagram extension .js script" attr_lists: "extended-amp-global" attrs: { @@ -2502,7 +2502,7 @@ tags: { attrs: { name: "shortcode" deprecation: "data-shortcode" - deprecation_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/amp-instagram.md" + deprecation_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-instagram/README.md" mandatory_oneof: "['data-shortcode', 'src']" } amp_layout: { @@ -2516,7 +2516,7 @@ tags: { # tags: { name: "amp-iframe" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/README.md" also_requires: "amp-iframe extension .js script" attr_lists: "extended-amp-global" attrs: { name: "sandbox" } @@ -2554,7 +2554,7 @@ tags: { # tags: { name: "amp-audio" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/amp-audio.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-audio/README.md" also_requires: "amp-audio extension .js script" attr_lists: "extended-amp-global" attrs: { name: "src" } @@ -2581,7 +2581,7 @@ tags: { tags: { name: "amp-lightbox" attr_lists: "extended-amp-global" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/amp-lightbox.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-lightbox/README.md" also_requires: "amp-lightbox extension .js script" attrs: { name: "from" } attrs: { name: "controls" } @@ -2592,7 +2592,7 @@ tags: { # tags: { name: "amp-image-lightbox" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-image-lightbox/amp-image-lightbox.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-image-lightbox/README.md" also_requires: "amp-image-lightbox extension .js script" # Support dimensions / sizes / etc. like an amp-lightbox. attr_lists: "extended-amp-global" @@ -2604,7 +2604,7 @@ tags: { # tags: { name: "amp-list" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-list/amp-list.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-list/README.md" also_requires: "amp-list extension .js script" attr_lists: "extended-amp-global" attrs: { name: "src" mandatory: true } @@ -2620,7 +2620,7 @@ tags: { # tags: { name: "amp-install-serviceworker" - spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-install-serviceworker/amp-install-serviceworker.md" + spec_url: "https://github.com/ampproject/amphtml/blob/master/extensions/amp-install-serviceworker/README.md" also_requires: "amp-install-serviceworker extension .js script" attrs: { name: "src" } }