Skip to main content

Bug Tracker

Side navigation

#6414 closed bug ()

Opened April 09, 2010 03:29PM UTC

Closed November 11, 2010 11:09PM UTC

: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:
Description

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.

Attachments (0)
Change History (3)

Changed October 02, 2010 06:54PM UTC by addyosmani comment:1

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.

Changed October 20, 2010 11:12PM UTC by snover comment:2

owner: → JMHNilbog
status: newpending

Could you please confirm this still occurs in jQuery 1.4.3?

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:3

status: pendingclosed

Automatically closed due to 14 days of inactivity.