Bug Tracker

Modify

Ticket #6414 (closed bug)

Opened 3 years ago

Last modified 3 years ago

: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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 3 years ago by addyosmani

  • need changed from Review to Patch
  • Priority set to 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 3 years ago by snover

  • Owner set to JMHNilbog
  • Status changed from new to pending

Could you please confirm this still occurs in jQuery 1.4.3?

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

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.