Skip to content

Commit

Permalink
Merge pull request #5998 from ampproject/update/amphtml-1bbd5505985
Browse files Browse the repository at this point in the history
Update amphtml spec to 1bbd5505
  • Loading branch information
westonruter authored Mar 20, 2021
2 parents a97651d + bca8eb7 commit 92387aa
Show file tree
Hide file tree
Showing 8 changed files with 1,504 additions and 198 deletions.
7 changes: 6 additions & 1 deletion bin/amphtml-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def GenValidatorProtoascii(validator_directory, out_dir):

protoascii_segments = [
open(os.path.join(validator_directory, 'validator-main.protoascii')).read(),
open(os.path.join(validator_directory, 'validator-svg.protoascii')).read(),
open(os.path.join(validator_directory, 'validator-css.protoascii')).read()
]
extensions = glob.glob(os.path.join(validator_directory, '../extensions/*/validator-*.protoascii'))
Expand Down Expand Up @@ -416,7 +417,11 @@ def ParseRules(out_dir):
for val in list.tag:

# Skip tags specific to transformed AMP.
if val in ( 'I-AMPHTML-SIZER', 'IMG', ):
if 'I-AMPHTML-SIZER' == val:
continue

# The img tag is currently exclusively to transformed AMP, except as descendant of amp-story-player.
if 'IMG' == val and 'amp-story-player-allowed-descendants' != list.name:
continue

descendant_lists[list.name].append( val.lower() )
Expand Down
Loading

0 comments on commit 92387aa

Please sign in to comment.