#6156 closed bug (cantfix)
label[for] selector inconsistent on IE
Reported by: | sohighthesky | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.2 |
Component: | selector | Version: | 1.4.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
the css selector "label[for]" in IE, it will not return the element which has a "for" attribute valued ""(empty string), but in other browses the selector will return all LABEL elements that specified "for" attribute
Attachments (1)
Change History (5)
Changed 13 years ago by
comment:1 Changed 13 years ago by
comment:2 Changed 12 years ago by
Priority: | → undecided |
---|---|
Summary: | unsepecified attribute → label[for] selector inconsistent on IE |
comment:3 Changed 12 years ago by
Status: | new → open |
---|
comment:4 Changed 12 years ago by
Resolution: | → cantfix |
---|---|
Status: | open → closed |
Unfortunately, IE doesn't distinguish between attributes that are present http://danheberden.com/share/b9cacb3.png - if you specify a blank string or nothing at all, htmlFor is still ""
In browsers like chrome, attributes is an array which means we can check if it was present at at all. http://danheberden.com/share/f61812.png
Thus, a limitation of IE unfortunately :(
Note: See
TracTickets for help on using
tickets.
you may also try to remove the doctype in IE8