https://bugzilla.wikimedia.org/show_bug.cgi?id=29542
Web browser: ---
Bug #: 29542
Summary: UploadWizard's mediawiki.language.parser.js doesn't
wrap HTML tags around included templates/links
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: UploadWizard
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
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.)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l