Skip to main content

Bug Tracker

Side navigation

#5664 closed bug (wontfix)

Opened December 16, 2009 03:32AM UTC

Closed July 11, 2011 09:18PM UTC

Last modified July 21, 2011 04:44PM UTC

querySelectorAll with nth-child in webkit

Reported by: caii Owned by: john
Priority: low Milestone: 1.next
Component: selector Version: 1.4a1
Keywords: querySelectorAll needsreview Cc:
Blocked by: Blocking:
Description
<ul>
		<li>text 01</li>
		<li>text 02</li>
		<li>text 03</li>
		<li>text 04</li>
		<li>text 05</li>
		<li>text 06</li>
		<li>text 07</li>
		<li>text 08</li>
</ul>
<ul>
		<li>text 01</li>
		<li>text 02</li>
		<li>text 03</li>
		<li>text 04</li>
		<li>text 05</li>
		<li>text 06</li>
		<li>text 07</li>
		<li>text 08</li>
</ul>
<script>
document.querySelectorAll("ul li:nth-child(4n+3),ul li:nth-child(4n+2)").length // FF:8   ;webkit:0;
//but jquery use querySelectorAll on that
jQuery("ul li:nth-child(4n+3),ul li:nth-child(4n+2)").length // FF:8   ;webkit:0;
</script>
Attachments (0)
Change History (5)

Changed November 16, 2010 04:35AM UTC by dmethvin comment:1

priority: majorlow
status: newopen

http://jsfiddle.net/dmethvin/qW2tt/

Looks like a qSA bug with webkit.

Changed March 31, 2011 03:33AM UTC by danheberden comment:2

keywords: querySelectorAllquerySelectorAll needsreview

Changed March 31, 2011 04:07AM UTC by danheberden comment:3

milestone: 1.41.next

Changed July 11, 2011 09:18PM UTC by ajpiano comment:4

resolution: → wontfix
status: openclosed

This is a webkit bug (https://bugs.webkit.org/show_bug.cgi?id=32856) for which we cannot come up with a tenable, non-invasive solution.

Changed July 21, 2011 04:44PM UTC by ajpiano comment:5

#9882 is a duplicate of this ticket.