Opened 11 years ago
Closed 11 years ago
#10843 closed feature (duplicate)
Consider adding :link to Sizzle
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | selector | Version: | 1.7.1rc1 |
Keywords: | ie6 ie7 | Cc: | |
Blocked by: | Blocking: |
Description
Using selectors of the type [attrname]
to select elements based on the existence of an attribute seems to have broken in IE6 and IE7 with jQuery 1.7. The results include elements even without the attribute.
I've created a fiddle to show the problem:
http://jsfiddle.net/wuRsG/5/
This fails for IE6 and IE7 with jQuery 1.7, but works as expected with jQuery 1.6.4 and earlier versions.
Change History (8)
comment:1 Changed 11 years ago by
Component: | unfiled → selector |
---|---|
Milestone: | None → 1.7.2 |
Owner: | set to timmywil |
Priority: | undecided → low |
Status: | new → assigned |
comment:3 Changed 11 years ago by
Owner: | changed from timmywil to Christopher Lenz <[email protected]…> |
---|---|
Status: | assigned → pending |
What is the use case for this? We're inclined to close it wontfix but would like to hear if there are really useful cases we're missing.
comment:4 Changed 11 years ago by
Status: | pending → new |
---|
I am using the type of selector primarily for selecting <a>
elements that have href
attributes, similar to using :link
vs. just a
in CSS selectors.
Can you suggest an alternative selector for this, or would I need to add markup?
comment:5 Changed 11 years ago by
Status: | new → open |
---|---|
Type: | bug → feature |
We should consider adding the :link selector
comment:6 Changed 11 years ago by
Milestone: | 1.8 → 1.next |
---|
comment:7 Changed 11 years ago by
Keywords: | ie6 ie7 added |
---|---|
Summary: | Has-Attribute-Selector doesn't work correctly with IE6&7 → Consider adding :link to Sizzle |
comment:8 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
This has been ported to a more widespread Sizzle issue: https://github.com/jquery/sizzle/issues/44
It's strange that this doesn't seem to be working the same way in 1.7. We'll look into this for 1.7.2. http://jsfiddle.net/timmywil/wuRsG/11/