-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update spec to include fetchpriority support #7601
Comments
This has landed in ampproject/amphtml@49ee0db as part of https://github.com/ampproject/amphtml/releases/tag/2309011827000 |
Thanks, for the update @westonruter, I will start working on it. |
Looks like the spec update is live, but note it is only for
This makes sense because Lastly, it also works in the So what we need to do is this:
|
I can see that the first todo item is completed with the spec update in #7615, but it's not yet merged. |
Workaround plugin code to suppress the error: add_filter(
'amp_validation_error_sanitized',
static function ( $sanitized, $error ) {
if (
'DISALLOWED_ATTR' === $error['code'] &&
'fetchpriority' === $error['node_name']
) {
$sanitized = true;
}
return $sanitized;
},
10,
2
); |
@thelovekesh Just added this todo:
This can be done as part of the PR that makes sure that |
Yes, only one change is required in |
QA Passed ✅ The FetchPriority attribute is visible within the image and remains present when the native HTML image tag is enabled. Task 1: The fetchpriority is added inside the image tag - Task 2: Cross-checked it and it is working fine. It is not supported now. Task 3: With the native HTML image tag enabled: With the amp-img tag: Task 4: The amp-toolbox-php is updated to dev-mode: |
Feature Description
fetchpriority
support has landed: AMP Validator: Allow attribute 'fetchpriority' for link tag amphtml#38715 This is done with Update amphtml spec to 2309011827000 #7615.siblings_disallowed
from spec #7597 (comment)fetchpriority
.Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: