https://bugzilla.wikimedia.org/show_bug.cgi?id=68998
Bug ID: 68998
Summary: ULS: Fix "JQMIGRATE: jQuery.fn.attr('selected')" in
ext.uls.displaysettings.js
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: UniversalLanguageSelector
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
For dynamic state always use properties. Attributes are for the DOM, not for
the live display. Older versions of jQuery used to cover this common mistake by
setting the property in addition to the attribute when setting the attribute,
but this has all sorts of nasty side-effects. Use prop('selected', value)
instead for this, and pass it a boolean true/false value (so not "" or
"selected").
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l