Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#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:


Attribute selector inconsistant in IE8


The attribute selector is not inconsistant in IE8

Change History (8)

comment:1 Changed 9 years ago by anonymous

result in IE8 is different from FF and Chrome.

comment:2 Changed 9 years ago by Rick Waldron

Component: unfiledattributes
Priority: undecidedlow
Resolution: invalid
Status: newclosed

"value" is not a valid content attribute of textarea


comment:3 Changed 9 years ago by timmywil

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.


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 9 years ago by timmywil

Keywords: deprecate added
Milestone: None1.8
Owner: set to timmywil
Status: reopenedassigned

comment:5 Changed 9 years ago by anonymous

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 9 years ago by timmywil

Resolution: duplicate
Status: assignedclosed

comment:7 Changed 9 years ago by timmywil

Duplicate of #9830.

comment:8 Changed 8 years ago by dmethvin

Milestone: 1.8
Note: See TracTickets for help on using tickets.