https://bugzilla.wikimedia.org/show_bug.cgi?id=51539
Web browser: ---
Bug ID: 51539
Summary: Mediawiki no longer accepts unicode object property
name without quotes
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
This [1] revision of the gadget Twinkle on hi-wp gave the browser exception:
Exception thrown by ext.gadget.Twinkle: JavaScript parse error: Parse error:
Illegal token in file 'MediaWiki:Gadget-Twinkle.js' on line 3757
In the next revision [2] of Twinkle, the problem was not there. The only change
made to resolve this were that object property names starting with devanagari
characters were put into quotes. E.g.:
शीह: "विशिष्ट कारण ({{शीह}})",
was changed to
"शीह": "विशिष्ट कारण ({{शीह}})",
Although this has gotten twinkle up and running, I don't see why RL generated
the exception in the first place. Devanagari characters are already specified
in Unicode 3.0 and hence are good for starting property names as per
ECMA-262(if I read the standard correctly).
Further details may be found in [3].
[1]:
http://hi.wikipedia.org/w/index.php?title=%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Gadget-Twinkle.js&oldid=2175350
[2]:
http://hi.wikipedia.org/w/index.php?title=%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Gadget-Twinkle.js&oldid=2176139
[3]: https://bugzilla.wikimedia.org/show_bug.cgi?id=51361#c3
--
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