-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Validate amp-base-carousel
and friends to enable loop
on empty value
#35568
Validate amp-base-carousel
and friends to enable loop
on empty value
#35568
Conversation
Hey @ampproject/wg-caching! These files were changed:
|
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.
approved for validation related changes
@@ -32,7 +32,6 @@ | |||
<section> | |||
<!-- Valid: true --> | |||
<amp-stream-gallery width="4" height="3" loop="true"> | |||
</amp-stream-gallery> |
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.
is this removal intentional?
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.
no. fixed, thanks!
For all components, this PR validates
loop
attribute with no value. Feature-wise, usingloop
with no attribute should be logically equivalent to enabling the feature. For 1.0 this involves no changes, but for 0.1 this involves updating the default behavior to allow for empty strings. This should not be a breaking change given that, prior to this PR, using the attribute without a value would be invalid AMP.Fixes #35555