https://bugzilla.wikimedia.org/show_bug.cgi?id=65400

            Bug ID: 65400
           Summary: ULS: Fix "JQMIGRATE: $(html) HTML strings must start
                    with '<' character" in jquery.uls.core.js
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          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]
            Blocks: 65399
       Web browser: ---
   Mobile Platform: ---

JQMIGRATE: $(html) HTML strings must start with '<' character 
- jquery.uls.core.js :88
https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector/blob/fb41b2/lib/jquery.uls/src/jquery.uls.core.js#L88

> this.$menu = $( template );


If it contains text (e.g. "Hello world"), then you have to use $.fn.html() or
$.parseHTML instead due to ambiguity with a css selector.

If it contains leading whitespace or '#', then $() no longer allows this for
consistency and security reasons, and also, use $.parseHTML(), or fix the
string to not have leading whitespace.


I think in case of ULS you just need to make sure that leading new line is
gone.

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

Reply via email to