#10383 closed bug (duplicate)
Attribute selector inconsistant in IE8
Reported by: | anonymous | Owned by: | timmywil |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | attributes | Version: | 1.7b1 |
Keywords: | deprecate | Cc: | |
Blocked by: | Blocking: |
Description
Attribute selector inconsistant in IE8
http://jsfiddle.net/5DTfu/24/
The attribute selector is not inconsistant in IE8
Change History (8)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
"value" is not a valid content attribute of textarea
http://www.w3.org/TR/html5/the-button-element.html#the-textarea-element
comment:3 Changed 11 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Because we hooked up jQuery.attr to attribute retrieval in Sizzle and because we currently have the value attrHook in place to always retrieve the value property rather than the content attribute for back-compat reasons AND because Sizzle tries querySelectorAll first, IE6/7 selects with the value property and other browsers select with the attribute (because querySelectorAll follows spec and uses the attribute). This is an inconsistency for all inputs, but will not be fixed until we have deprecated and removed the value attrHook.
http://jsfiddle.net/timmywil/5DTfu/26/
I'll reopen so we can keep track of possible value attrHook deprecation. .prop or .val should be used to retrieve the value property anyway.
comment:4 Changed 11 years ago by
Keywords: | deprecate added |
---|---|
Milestone: | None → 1.8 |
Owner: | set to timmywil |
Status: | reopened → assigned |
comment:5 Changed 11 years ago by
cool, I am not realy using 'value' this way, just curious how the attribute selector is going to handle that since the modification of .attr() and .prop()
comment:6 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
comment:8 Changed 11 years ago by
Milestone: | 1.8 |
---|
result in IE8 is different from FF and Chrome.