-
Notifications
You must be signed in to change notification settings - Fork 384
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 allowed tags/attributes from spec in amphtml 2003031842100 #4390
Conversation
), | ||
'tag_spec' => array( | ||
'mandatory_ancestor' => 'body', | ||
'mandatory_parent' => 'subscriptions-section content swg_amp_cache_nonce', |
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.
This looks like it is going to be problematic.
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.
Yes, it is. We can't currently add <script ciphertext type="application/octet-stream">...</script>
inside of a section[subscriptions-section]
. Will need to be addressed as part of #3817
'spec_name' => 'AMP-MEGA-MENU item-content', | ||
), | ||
), | ||
'AMP-MEGA-MENU item-heading' => array( |
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.
Problem: there is no item-heading
element.
'spec_name' => 'AMP-MEGA-MENU NAV > UL/OL > LI', | ||
), | ||
), | ||
'AMP-MEGA-MENU item-content' => array( |
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.
Problem: there is no item-content
element.
'spec_name' => 'AMP-MEGA-MENU NAV > UL/OL', | ||
), | ||
), | ||
'AMP-MEGA-MENU NAV > UL/OL > LI' => array( |
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.
The UL/OL
will be a problem here.
'spec_name' => 'AMP-MEGA-MENU > NAV', | ||
), | ||
), | ||
'AMP-MEGA-MENU NAV > UL/OL' => array( |
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.
The UL/OL
will be a problem here.
…on amp-brid-player, link protocol/type
535dddd
to
da10be2
Compare
This reverts commit 7550879.
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.
Ship it.
Previously #3619.
./bin/amphtml-update.sh
(lando ssh -c 'bash ./bin/amphtml-update.sh vendor/amphtml'
)Changelog
amp-inline-gallery
, includingamp-inline-gallery-pagination
andamp-inline-gallery-thumbnails
.amp-mega-menu
.amp-nested-menu
. Addedamp-nested-submenu-close
andamp-nested-submenu-open
attributes to nestedbutton
elements, as well as adding attributes todiv
,span
, and each level of heading elements (h2
–h6
).chrome
andfeed
. Allowing type ofapplication/rss+xml
.amp-story-page-attachment
andamp-story-grid-layer
.amp-autocomplete
, allowinginline
andquery
attributes, and makingfilter
mandatory.dock
support toamp-brid-player
.hide-keyboard-shortcuts-panel
toamp-date-picker
.amp-list
, removing[state]
attribute and addingxssi-prefix
.amp-next-page
, adding attributes fordeep-parsing
andmax-pages
, and adding reference points.amp-redbull-player
.intrinsic
layout toamp-script
.amp-story-access
component.next-page-no-ad
attribute toamp-story-page
.amp-user-location
component.input[type=button]
element.script[type=text/plain][template=amp-mustache]
to accept anid
attribute.subscriptions script ciphertext
andcryptokeys .json script
.time
to allowpubdate
attribute.next-page-hide
andnext-page-replace
.visible-when-invalid
global attribute to addtooShort
value.crossorigin=anonymous
attribute toscript
andlink
elements. Will become the default with Add support for release channel(s) and crossorigin=anonymous scripts and links #4403.amp-mega-menu
— note these do not currently enforce validation, as can be seen in the failing and now-reverted commit 7550879. Work will need to be done later to improve validation for reference points. The most important thing is that valid AMP is not being treated as invalid.AMP-MEGA-MENU > AMP-LIST
AMP-MEGA-MENU > AMP-LIST > TEMPLATE
AMP-MEGA-MENU > NAV
AMP-MEGA-MENU NAV > UL/OL
AMP-MEGA-MENU NAV > UL/OL > LI
AMP-MEGA-MENU item-content
AMP-MEGA-MENU item-heading
AMP-NEXT-PAGE > [footer]
AMP-NEXT-PAGE > [recommendation-box]
Details
Compare 1910161528000..2003031842100