Side navigation
#10383 closed bug (duplicate)
Opened September 30, 2011 12:16AM UTC
Closed November 05, 2011 06:25PM UTC
Last modified March 10, 2012 12:31AM UTC
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
The attribute selector is not inconsistant in IE8
Attachments (0)
Change History (8)
Changed September 30, 2011 12:17AM UTC by comment:1
Changed September 30, 2011 12:59AM UTC by comment:2
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
Changed September 30, 2011 01:59AM UTC by comment:3
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.
Changed September 30, 2011 02:00AM UTC by comment:4
keywords: | → deprecate |
---|---|
milestone: | None → 1.8 |
owner: | → timmywil |
status: | reopened → assigned |
Changed September 30, 2011 04:25AM UTC by comment:5
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()
Changed November 05, 2011 06:25PM UTC by comment:6
resolution: | → duplicate |
---|---|
status: | assigned → closed |
Changed January 30, 2012 03:14PM UTC by comment:8
milestone: | 1.8 |
---|
result in IE8 is different from FF and Chrome.