Skip to content

Selector: Webkit broke sibling of filtered id selection #297

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 3 commits into from

Conversation

gibson042
Copy link
Member

Fixes #290

Increases minified+gzipped size by 30 bytes... ridiculous. Does anyone see room for further improvement?

@@ -614,7 +614,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// setting a boolean content attribute,
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
div.innerHTML = "<select msallowcapture=''>" +
div.innerHTML = "<a id='" + expando + "'></a><select msallowcapture=''>" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, you could save 2 bytes by

docElem.appendChild( div ).innerHTML = ...

but that's just not pretty and out of place

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually did try that, but couldn't get it to a net benefit after the necessary rearranging of id='d\f]', which is no longer guaranteed valid (i.e., unique) once we're in the document. However, I just gave it another shot and pulled it off; I'll push here after testing with iOS 8. Thanks!

gibson042 added a commit that referenced this pull request Dec 12, 2014
@gibson042 gibson042 closed this in 24d41a5 Dec 12, 2014
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.

Test failure on iOS 8: child and adjacent -> p#firstp + p
2 participants