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 #1682

Merged
merged 8 commits into from
Jan 30, 2016
Merged

Validator roll-up #1682

merged 8 commits into from
Jan 30, 2016

Conversation

Gregable
Copy link
Member

Support -latest.js scripts
Support 'heights' attribute.
Tighten rules around <link> attributes to improve some error messages.
Css parser refactoring.
Actually require <link rel=canonical ...> and <html amp>
Allow hreflang attributes on link tags (#1664)

Both -latest.js and -<version>.js will validate.
This implements
#1616

The new "heights" attribute is part of the layout=responsive ecosystem. It's developed in #1331

The rules are very similar to sizes attribute:
1. If layout is not specified and heights attribute is specified - implied layout is responsive
2. heights attribute can only be specified for elements with layout=responsive - input or implied
3. The format of the heights attribute is the same as sizes with a single exception that % are allowed as values (not sure we actually validate content of sizes attribute).

Notes:
2.) done, but we don't do this currently for sizes -
    should we?
3.) n/a we don't validate sizes either.
meaningless tag of the form:
<link src="...">
No longer require data-show-if-href and data-dismiss-href.
Since they're data- attribs, they're still allowed.
Also clean up some protoascii comments while in here.
@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

@googlebot I confirm.

1 similar comment
@powdercloud
Copy link
Contributor

@googlebot I confirm.

powdercloud added a commit that referenced this pull request Jan 30, 2016
@powdercloud powdercloud merged commit 0cc928e into ampproject:master Jan 30, 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.

None yet

4 participants