Bug Tracker

Ticket #7558 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

nth-child does not handle white space in IE

Reported by: anonymous Owned by: snover
Priority: high Milestone: 1.5
Component: selector Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

p:nth-child(4n+8) works p:nth-child( 4n +8 ) does not work in IE6 (and higher?)

Change History

comment:1 Changed 4 years ago by snover

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to selector
  • Milestone changed from 1.5 to 1.4.5

comment:2 Changed 4 years ago by anonymous

If Firefox does handle the spaces properly,it seems that Chrome (and certainly Safari and all other browsers with the same engine) fails when there are spaces. I guess normalizing the string so that p:nth-child( 4n + 8 ) becomes p:nth-child(4n+8) before sending it to document.querySelectorAll would allow to make it cross browser

comment:3 Changed 4 years ago by snover

  • Owner set to snover
  • Status changed from open to assigned

 WebKit bug. This patch will allow jQuery to handle this gracefully by falling back to Sizzle until they fix it.

comment:4 Changed 4 years ago by john

  • Status changed from assigned to closed
  • Resolution set to fixed

Landed.

comment:5 Changed 4 years ago by jitter

  • Milestone changed from 1.4.5 to 1.5

Move fixed tickets to appropriate milestone

Note: See TracTickets for help on using tickets.