Skip to content
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

Add support for reference points and update spec to file revision 720 (v1534879991178) #1386

Merged
merged 11 commits into from
Sep 2, 2018

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Aug 30, 2018

  • Add support for handling reference points in validator spec, including support for attributes used by amp-next-page, amp-story, amp-lightbox-gallery, and amp-live-list. This removes hard-coded list of whitelisted attribute pattern which were erroneously being allowed on every element, not just the descendants of elements with reference points.
  • Add special case for handling reference points for amp-selector since its attributes can be added to any descendant not just direct children.
  • Add components for amp-image-slider and amp-viqeo-player.
  • Add when-ended=continue to amp-date-countdown.
  • Add [open] to amp-lightbox.
  • Add disable-double-tap to amp-pan-zoom.

* Add components for amp-image-slider, amp-viqeo-player,
* Add when-ended=continue to amp-date-countdown.
* Add [open] to amp-lightbox.
* Add disable-double-tap to amp-pan-zoom.
@westonruter westonruter added this to the v1.0 milestone Aug 30, 2018
@westonruter westonruter self-assigned this Aug 30, 2018
@westonruter westonruter changed the title [WIP] Update spec to file revision 720 (v1534879991178) Update spec to file revision 720 (v1534879991178) Aug 31, 2018
@westonruter westonruter changed the title Update spec to file revision 720 (v1534879991178) Add support for reference points and update spec to file revision 720 (v1534879991178) Aug 31, 2018
}
}
}
return $rule_spec;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this code is refactored into a separate method from below. See 002bda3 for the actual changes introduced.

}
return $rule_spec;
}

/**
* Process a node by sanitizing and/or validating it per.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this change, but this comment may need improvement: validating it per?

Copy link
Member

@amedina amedina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Ship it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants