Skip to content

Update page/using-jquery-core/selecting-elements.md #252

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

Closed
wants to merge 1 commit into from

Conversation

lsoares
Copy link
Contributor

@lsoares lsoares commented Feb 19, 2013

Qualification (prefixation) is no longer useful; as the modern browsers have the http://caniuse.com/#search=getElementsByClassName available, qualification even slows down the process.
Proof in: 
http://jsperf.com/jquery-class-vs-tag-qualfied-class-selector/10

Qualification (prefixation) is no longer useful; as the modern browsers have the document.querySelectAll() available, qualification even slows down the process.
Proof in: 
http://jsperf.com/jquery-class-vs-tag-qualfied-class-selector/10
@brunoais
Copy link

Actually, prefixing with the tagName makes it take the double of the time that it takes if I test it without the tagName.

@ajpiano ajpiano closed this in 0d03432 Feb 20, 2013
@ajpiano
Copy link
Member

ajpiano commented Feb 20, 2013

Thanks for this as well @lsoares !

arthurvr pushed a commit to arthurvr/learn.jquery.com that referenced this pull request Jan 4, 2015
…ments by class name. Fixes jquery#252.

Qualification (prefixation) is no longer useful; as the modern browsers have the document.querySelectAll() available, qualification even slows down the process.
Proof in: 
http://jsperf.com/jquery-class-vs-tag-qualfied-class-selector/10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants