Author: neilk
Description:
In UploadWizard's frontend/jQuery oriented parsing library, currently a string message like:
'This is a <b>[$1 bold]</b> link'
will be incorrectly rendered, as something like this:
This is a <b></b><a href="yourlink">bold</a> link
The reason is that the system attempts to first parse out the wikitext elements, and then assumes all the other strings are jQuery-parseable, e.g.
[ $( "This is a <b>" ), link, $( "</b> link" ) ]
So the first <b> is simply closed, and the </b> is simply removed.
The idea here was to avoid parsing HTML in the wikitext grammar, but this shows they have to be parsed simultaneously.
(HTML which is fully outside of or fully inside of another element is parsed correctly.)
Version: 1.18.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44525