Modify ↓
Ticket #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: | |
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.