Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6414 closed bug

:link pseudo class throws error in browsers not supporting document.querySelectorAll

Reported by: JMHNilbog Owned by: JMHNilbog
Priority: undecided Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: a:link sizzle ie Cc:
Blocked by: Blocking:


Attempt $('a:link') in a browser supporting document.querySelectorAll(), like FF 3.6.2 or Safari 4. It will work as expected.

Attempt $('a:link') in another browser like IE6 or IE7. An uncaught exception will be thrown from Sizzle.error(). Ouch!

This behavior did not appear to exist in the 1.3.x versions. As a:link is a valid pseudo-selector, it looks as if support for it should be added.

Change History (3)

comment:1 Changed 13 years ago by addyosmani

need: ReviewPatch
Priority: undecided

Having tested the submitted cases in both IE6 and IE7 I can confirm that this behavior is indeed being encountered with 1.4.2. Given that :link is considered to be a supported pseudo-selector in IE, I think this is something we need to fix.

comment:2 Changed 13 years ago by snover

Owner: set to JMHNilbog
Status: newpending

Could you please confirm this still occurs in jQuery 1.4.3?

comment:3 Changed 13 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.