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: wikibugs-l@lists.wikimedia.org
          Reporter: krinklem...@gmail.com
                CC: alolita.sha...@gmail.com,
                    amir.ahar...@mail.huji.ac.il, da...@sheetmusic.org.uk,
                    kartik.mis...@gmail.com, niklas.laxst...@gmail.com,
                    pgi...@wikimedia.org, run...@gmail.com,
                    santhosh.thottin...@gmail.com,
                    sucheta.ghos...@gmail.com
       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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to