-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Description
Description
This is a new addition (https://html.spec.whatwg.org/multipage/links.html#link-type-expect) only supported by Chrome at the moment.
Including it in the markup fails AMP validation. It's not clear if this actually prevents the page from being indexed by the AMP cache or if it's just a validation error we can ignore for now.
Reproduction Steps
Validate
<!DOCTYPE html>
<html lang="en-US" amp i-amphtml-layout i-amphtml-no-boilerplate transformed="self;v=1">
<head>
<meta charset="utf-8" data-next-head>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-runtime i-amphtml-version="012504091801000"></style>
<script async src="https://cdn.ampproject.org/v0.mjs" type="module" crossorigin="anonymous"></script>
<script async nomodule src="https://cdn.ampproject.org/v0.js" crossorigin="anonymous"></script>
<link rel="expect" href="#«R»" blocking="render">
<link rel="canonical" href="/amp/amp-first">
<style amp-custom></style>
</head>
<body>
<p id="another">another page</p>
<template id="«R»"></template>
</body>
</html>
Relevant Logs
The attribute 'blocking' may not appear in tag 'link'.
https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
amphtml-validator@1.0.38