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 universal selector (*) metric #5

Closed
macbre opened this issue Dec 20, 2013 · 0 comments · Fixed by #14
Closed

Add universal selector (*) metric #5

macbre opened this issue Dec 20, 2013 · 0 comments · Fixed by #14
Assignees
Milestone

Comments

@macbre
Copy link
Owner

macbre commented Dec 20, 2013

Increase universalSelectors metric when the following selectors are found:

  • .foo > *
  • .foo * li
  • [type="..."]

Watch out for universal selectors:

In both Opera and WebKit, [type="..."] selectors seem to be more expensive than input[type="..."]. Probably due to browsers limiting attribute check to elements of specified tag (after all, [type="..."] IS a universal selector).

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

Successfully merging a pull request may close this issue.

1 participant