Skip to content
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 AMP spec to 757 (v1811091519050) #1588

Merged
merged 7 commits into from
Nov 15, 2018
Merged

Conversation

kienstra
Copy link
Contributor

@kienstra kienstra commented Nov 4, 2018

Bumps $spec_file_revision from 734 to 751
Adds support for <amp-script> and <picture>,
and more attributes for existing elements.
…html>

In the ammphtml repo's validator-main.protoascii,
the attrs object for html was removed.
@see ampproject/amphtml@ee9ef44#diff-695a0119f06368dee3ab53e1395ef725L77
It looks like the amphtml repo's validator has
a different way of validating the <html> tag now:
ampproject/amphtml@ee9ef44#diff-52a1cb778626c52da13d91b4849462d6R4746
So this adds an exclusion for <html amp> or <html ⚡>
in is_amp_allowed_attribute().
Before, this had returned false for those attributes,
and this resulted in the' am'pan ⚡' being removed.
@westonruter westonruter added this to the v1.0 milestone Nov 4, 2018
When running the AMP_Tag_And_Attribute_Sanitizer,
it should accept the <amp-script>
This isn't accurate anymore,
as the generated Tag_And_Attribute_Sanitizer
doesn't have require <html> to have amp.
This is probably from changes in the amphtml repo's validator:
ampproject/amphtml@ee9ef44#diff-52a1cb778626c52da13d91b4849462d6R4746
@see commit b420a90 in this repo.
@kienstra kienstra changed the title [WIP] Update AMP spec to 751 via amphtml-update.sh Update AMP spec to 751 via amphtml-update.sh Nov 5, 2018
@westonruter
Copy link
Member

I suppose it depends on the release date for the next version. If it goes live tomorrow then I'd say wait. Otherwise we'll go ahead with this now and update again.

@kienstra
Copy link
Contributor Author

kienstra commented Nov 5, 2018

Thanks, @westonruter. Still planning on releasing 1.0-RC2 tomorrow if that's alright, so we could wait on this PR if that sounds good.

@westonruter
Copy link
Member

AMP has been updated in production to support @page and also to relax the viewport requirements, so we can update the core theme sanitizer to remove those allowed errors: https://github.com/ampproject/amphtml/releases/tag/1811091519050

@westonruter westonruter changed the title Update AMP spec to 751 via amphtml-update.sh Update AMP spec to 757 (v1811091519050) Nov 15, 2018
@westonruter westonruter merged commit 3ab2884 into 1.0 Nov 15, 2018
@swissspidy swissspidy deleted the update/amp-spec-751 branch June 18, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants