[Webkit-unassigned] [Bug 52436] Setting "selected" attribute to false should have no effect in single line <select> (affects jQuery)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 14 11:02:22 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52436
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Possible Bug for <select> |Setting "selected"
|elements: No default option |attribute to false should
|selected? |have no effect in single
| |line <select> (affects
| |jQuery)
Platform|PC |All
OS/Version|Linux |All
Status|UNCONFIRMED |NEW
Component|New Bugs |Forms
CC| |ap at webkit.org
Ever Confirmed|0 |1
--- Comment #2 from Alexey Proskuryakov <ap at webkit.org> 2011-01-14 11:02:22 PST ---
This is not really about removing the "selected" attribute - behind the scenes, jQuery first sets it to false.
I'm not sure if WebKit is actually broken here, but we should investigate this as a difference with Firefox. Please consider also filing a bug against jQuery, as there is no apparent reason for removeAttr() to behave this way.
removeAttr: function( name, fn ) {
return this.each(function(){
jQuery.attr( this, name, "" ); // <-- this sets .selected to false in your test case
if ( this.nodeType === 1 ) {
this.removeAttribute( name );
}
});
},
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list