Skip to main content

Bug Tracker

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

http://jsfiddle.net/5DTfu/24/

The attribute selector is not inconsistant in IE8

Attachments (0)
Change History (8)

Changed September 30, 2011 12:17AM UTC by anonymous comment:1

result in IE8 is different from FF and Chrome.

Changed September 30, 2011 12:59AM UTC by rwaldron comment:2

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

"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 timmywil comment:3

resolution: invalid
status: closedreopened

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 timmywil comment:4

keywords: → deprecate
milestone: None1.8
owner: → timmywil
status: reopenedassigned

Changed September 30, 2011 04:25AM UTC by anonymous 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 timmywil comment:6

resolution: → duplicate
status: assignedclosed

Changed November 05, 2011 06:25PM UTC by timmywil comment:7

Duplicate of #9830.

Changed January 30, 2012 03:14PM UTC by dmethvin comment:8

milestone: 1.8