-
Notifications
You must be signed in to change notification settings - Fork 383
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 amphtml spec to ed0504b #6436
Conversation
aa779f4
to
e99b8de
Compare
Plugin builds for d05beb7 are ready 🛎️!
|
'attr_spec_list' => array( | ||
'data-src' => array( | ||
'mandatory' => true, | ||
'value_regex' => '\\d', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird regex but OK...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You found a bug!
Check out how what is supposed to be valid is invalid in the AMP Playground.
Nevertheless, the component initializes properly. To make it valid, I have to reduce the data-src
to one single digit. See example.
Clearly this is wrong, as then the component fails to initialize.
I've opened ampproject/amphtml#35329 to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew something was up! But I was pondering on how such a bug could slip through, as I thought that the tests would've caught something like that.
When is the next spec + plugin update planned after this? ampproject/amphtml#35436 just got fixed in AMP and I'd love to include that in the Web Stories plugin in a month or so. |
@swissspidy It's currently blocked by ampproject/amphtml#35329. Once that is merged we can do a 2.1.4 release next week. |
So any chance ampproject/amphtml#35436 could be included in that update as well? |
Yes, I'll make sure I update to the latest spec before merging. |
f8e0a3e
to
d05beb7
Compare
QA Passed I added the following to a Custom HTML block: <amp-tiktok layout="responsive" height="575" width="325" data-src="https://www.tiktok.com/@scout2015/video/6718335390845095173">
<blockquote class="tiktok-embed" cite="https://www.tiktok.com/@scout2015/video/6718335390845095173" data-video-id="6718335390845095173" placeholder>
<section> <a target="_blank" title="@scout2015" href="https://www.tiktok.com/@scout2015">@scout2015</a>
<p>Scramble up ur name & I’ll try to guess it😍❤️ <a title="foryoupage" target="_blank" href="https://www.tiktok.com/tag/foryoupage">#foryoupage</a> <a title="PetsOfTikTok" target="_blank" href="https://www.tiktok.com/tag/PetsOfTikTok">#petsoftiktok</a> <a title="aesthetic" target="_blank" href="https://www.tiktok.com/tag/aesthetic">#aesthetic</a></p>
<p> <a target="_blank" title="♬ original sound - tiff" href="https://www.tiktok.com/music/original-sound-6689804660171082501">♬ original sound – tiff</a> </p></section>
</blockquote>
</amp-tiktok> It appeared on a post without any validation error: |
Previously #6425.
./bin/amphtml-update.sh
(lando ssh -c 'bash ./bin/amphtml-update.sh vendor/amphtml'
).Update spec generator as needed based on spec format changes.Modify validating sanitizer based on changes to spec, if needed.Changelog
amp-tiktok
component. This is a dependency for Update the TikTok embed handler to useamp-tiktok
component #6060.Blocked by 🐛 Fixvalue_regex
foramp-tiktok@data-src
to allow repeating digits and a TikTok URL amphtml#35329.amp-wordpress-embed
component. See Intent to Implement: <amp-wordpress-embed> Embedding WordPress Posts amphtml#18378 and ✨Bentoamp-wordpress-embed
amphtml#34948. This was a long-standing dependency for Improve handling of WordPress post embeds #809. 🎉amp-google-assistant-*
components.amp-soundcloud
1.0 as a valid version (Bento).amp-embedly-card
1.0 as a valid version (Bento).amp-facebook-like
.amp-lightbox-gallery
1.0 as valid version (Bento).amp-story-interactive-img-quiz
,amp-story-interactive-img-poll
.feblend
SVG element.a
tags amphtml#35067.capture
attribute toinput
element.Details