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

Merged
merged 18 commits into from
Mar 26, 2016
Merged

Validator Roll-up #2711

merged 18 commits into from
Mar 26, 2016

Conversation

Gregable
Copy link
Member

Changes affecting PASS/FAIL:

powdercloud and others added 18 commits March 25, 2016 17:38
css_selectors namespace -> parse_css namespace for consistency
with tokenize-css.js and parse-css.js.
SelectorNode -> Selector and NodeVisitor -> SelectorVisitor,
since in the parse_css namespace this is less ambiguous.
line / cols in constructor arguments gone for consistency with
the other classes.
parse -> parseSelectors, traverse -> traverseSelectors to reduce
ambiguity in parse_css namespace.
…ULE.

This should make it clearer. Since the translations aren't used yet,
and this is specifically to address a question someone had, I think it's
fine to update this. If someone complains, I'll roll it back later.
This cl makes allowances as specified by the grammar,
for each of these S*.
https://www.w3.org/TR/css3-selectors/#grammar

attrib
  : '[' S* [ namespace_prefix ]? IDENT S*
        [ [ PREFIXMATCH |
            SUFFIXMATCH |
            SUBSTRINGMATCH |
            '=' |
            INCLUDES |
            DASHMATCH ] S* [ IDENT | STRING ] S*
        ]? ']'
  ;
This will be a compiler error soon.
…n HTML

test case.

If you add the attribute `data-amp-report-test` to a tag, any errors emitted
regarding that tag will have a new field dataAmpReportTestValue which will
contain the attribute value set in the document. Example:

`<!doctype lemur data-amp-report-test="foo">`
results in a validationResult object whose errors array looks like:
`errors[0].dataAmpReportTestValue -> 'foo'`

Github #2600
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@Gregable
Copy link
Member Author

@honeybadgerdontcare @powdercloud for review

@powdercloud
Copy link
Contributor

@googlebot confirmed

@honeybadgerdontcare
Copy link
Contributor

@googlebot confirmed

@Gregable
Copy link
Member Author

@erwinmombay as well. googlebot wants you to confirm that you authored the commit that I'm pulling on your behalf. Also, you will want this for release notes.

@Gregable Gregable merged commit fd2fce8 into ampproject:master Mar 26, 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.

5 participants