Bug Tracker

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#5664 closed bug (wontfix)

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>

Change History (5)

comment:1 Changed 7 years ago by dmethvin

Priority: majorlow
Status: newopen

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

Looks like a qSA bug with webkit.

comment:2 Changed 7 years ago by danheberden

Keywords: needsreview added

comment:3 Changed 7 years ago by danheberden

Milestone: 1.41.next

comment:4 Changed 6 years ago by ajpiano

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.

comment:5 Changed 6 years ago by ajpiano

#9882 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.