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

Ignore selectors should match multiple #23

Open
branneman opened this issue Jul 22, 2016 · 0 comments
Open

Ignore selectors should match multiple #23

branneman opened this issue Jul 22, 2016 · 0 comments
Milestone

Comments

@branneman
Copy link
Member

Currently if I have this html:

<ul class="component">
  <li><a href="#">Item 1 <span class="count">(37)</span></a></li>
  <li><a href="#">Item 2 <span class="count">(337)</span></a></li>
  <li><a href="#">Item 3 <span class="count">(1337)</span></a></li>
</ul>

And I want to use the ignore option to ignore all I would need this configuration:

{
  "name": "MyComponent",
  "selector": ".component",
  "ignore": [
    "li:nth-child(1) .count",
    "li:nth-child(2) .count",
    "li:nth-child(3) .count"
  ]
}

Whereas if this querySelector() call would have been a querySelectorAll() call, one could simply use this selector:

{
  "name": "MyComponent",
  "selector": ".component",
  "ignore": ["li .count"]
}
@branneman branneman added this to the v0.7.0 milestone Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant