https://bugzilla.wikimedia.org/show_bug.cgi?id=40660
Web browser: ---
Bug #: 40660
Summary: ResourceLoader breaks " " in Javascript literals
Product: MediaWiki
Version: 1.20-git
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
If a Javascript file loaded through ResourceLoader contains the text strings
" ", " ", or " ", these will be changed to a raw space or
non-breaking space. This causes a problem in
[[en:MediaWiki:Gadget-charinsert.js]], as that gadget wants to effectively do
document.createTextNode(' ') to include the literal string " " in the
charinsert box.
The source of the replacement is in includes/cache/MessageCache.php, at the end
of get(). Since that's in such a low-level function, I don't know what the
consequences of changing it might be for other messages. Another possibility
might be to have ResourceLoader use getMsgFromNamespace instead to avoid the
problematic replacement.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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