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

Validator roll-up. #1955

Merged
merged 5 commits into from
Feb 11, 2016
Merged

Validator roll-up. #1955

merged 5 commits into from
Feb 11, 2016

Conversation

honeybadgerdontcare
Copy link
Contributor

Tweaks allowed protocols, validates URLs in srcset, schema.org attributes.

powdercloud and others added 5 commits February 11, 2016 14:59
Diff:
Disallow http on any tags inside <noscript>: img, audio>source.
Allow http on tags which amp runtime can fix: amp-youtube, amp-instagram, amp-vimeo
Disallow http on amp-analytics, amp-audio, amp-audio>source.
Allow data on amp-iframe, img.
Allow tel protocol on a[href].
Validate URLs are not missing for srcset attributes
Validate URLs in srcsets are valid (via goog.Uri.parse)
Validate protocols are allowed in srcset attributes

amp-img's srcset: data, http, https
amp-anim's srcset: data, http, https
img's srcset: http, https
This should pacify the ampproject presubmits.
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@honeybadgerdontcare
Copy link
Contributor Author

@powdercloud @Gregable

@powdercloud
Copy link
Contributor

@googlebot I confirm.

@Gregable
Copy link
Member

@googlebot I confirm

Gregable added a commit that referenced this pull request Feb 11, 2016
@Gregable Gregable merged commit 18faf2b into ampproject:master Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants