-
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 allowed tags/attributes from spec in amphtml 2004142326360 #4548
Changes from 1 commit
1e83fde
fac2a76
2c9c68e
b5b2978
48a8a55
3b3bfb9
d156e34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,7 +13,7 @@ | |||||
*/ | ||||||
class AMP_Allowed_Tags_Generated { | ||||||
|
||||||
private static $spec_file_revision = 1012; | ||||||
private static $spec_file_revision = 1027; | ||||||
private static $minimum_validator_revision_required = 375; | ||||||
|
||||||
private static $descendant_tag_lists = array( | ||||||
|
@@ -566,6 +566,7 @@ class AMP_Allowed_Tags_Generated { | |||||
'bbmi', | ||||||
'chrome', | ||||||
'itms-services', | ||||||
'facetime', | ||||||
'fb-me', | ||||||
'fb-messenger', | ||||||
'feed', | ||||||
|
@@ -4070,6 +4071,7 @@ class AMP_Allowed_Tags_Generated { | |||||
'allow_relative' => true, | ||||||
'protocol' => array( | ||||||
'https', | ||||||
'amp-state', | ||||||
), | ||||||
), | ||||||
), | ||||||
|
@@ -4079,6 +4081,7 @@ class AMP_Allowed_Tags_Generated { | |||||
'tag_spec' => array( | ||||||
'amp_layout' => array( | ||||||
'supported_layouts' => array( | ||||||
5, | ||||||
6, | ||||||
2, | ||||||
3, | ||||||
|
@@ -5151,6 +5154,12 @@ class AMP_Allowed_Tags_Generated { | |||||
'amp-script' => array( | ||||||
array( | ||||||
'attr_spec_list' => array( | ||||||
'data-ampdevmode' => array( | ||||||
'blacklisted_value_regex' => 'false', | ||||||
'value' => array( | ||||||
'false', | ||||||
), | ||||||
), | ||||||
'max-age' => array( | ||||||
'value_regex' => '[0-9]+', | ||||||
), | ||||||
|
@@ -5784,6 +5793,9 @@ class AMP_Allowed_Tags_Generated { | |||||
'amp-story-grid-layer' => array( | ||||||
array( | ||||||
'attr_spec_list' => array( | ||||||
'aspect-ratio' => array( | ||||||
'value_regex' => '\\d+:\\d+', | ||||||
), | ||||||
'position' => array( | ||||||
'value' => array( | ||||||
'landscape-half-left', | ||||||
|
@@ -8973,7 +8985,14 @@ class AMP_Allowed_Tags_Generated { | |||||
), | ||||||
'html' => array( | ||||||
array( | ||||||
'attr_spec_list' => array(), | ||||||
'attr_spec_list' => array( | ||||||
'data-amp-autocomplete-opt-in' => array( | ||||||
'blacklisted_value_regex' => 'false', | ||||||
'value' => array( | ||||||
'false', | ||||||
pierlon marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
), | ||||||
), | ||||||
), | ||||||
'tag_spec' => array( | ||||||
'mandatory' => true, | ||||||
'mandatory_parent' => '!doctype', | ||||||
|
@@ -15507,6 +15526,7 @@ class AMP_Allowed_Tags_Generated { | |||||
), | ||||||
array( | ||||||
'attr_spec_list' => array( | ||||||
'nonce' => array(), | ||||||
'type' => array( | ||||||
'dispatch_key' => 3, | ||||||
'mandatory' => true, | ||||||
|
@@ -16606,8 +16626,8 @@ class AMP_Allowed_Tags_Generated { | |||||
), | ||||||
'cdata' => array( | ||||||
'blacklisted_cdata_regex' => array( | ||||||
'error_message' => 'CSS !important', | ||||||
'regex' => '!\\s*important', | ||||||
Comment on lines
-16609
to
-16610
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has moved from the This was introduced in ampproject/amphtml#27412. The |
||||||
'error_message' => 'CSS i-amphtml- name prefix', | ||||||
'regex' => '(^|\\W)i-amphtml-', | ||||||
westonruter marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
), | ||||||
'css_spec' => array( | ||||||
'allowed_at_rules' => array( | ||||||
|
@@ -18238,6 +18258,7 @@ class AMP_Allowed_Tags_Generated { | |||||
private static $layout_allowed_attrs = array( | ||||||
'data-amp-bind-height' => array(), | ||||||
'data-amp-bind-width' => array(), | ||||||
'disable-inline-width' => array(), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is new. Docs: https://amp.dev/documentation/guides-and-tutorials/learn/amp-html-layout/#disable-inline-width I wonder, does this mean that the amp-wp/includes/sanitizers/class-amp-img-sanitizer.php Lines 333 to 334 in 014bbbb
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Asked here: ampproject/amphtml#27083 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Answer is yes! ampproject/amphtml#27083 (comment) So in a subsequent PR we should eliminate the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this being tracked in a new issue? Nevermind I see #4606 has been created. |
||||||
'height' => array(), | ||||||
'heights' => array(), | ||||||
'layout' => 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.
@schlessera Here's where the
container
layout is being added foramp-list
. I'm not sure if it would change #4541, but FYI.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.
Removed in b5b2978 after updating to updating to v2004142326360.