GWicke has submitted this change and it was merged. Change subject: Decode entities in nowiki and pre contexts as well. ......................................................................
Decode entities in nowiki and pre contexts as well. * <nowiki><</nowiki> renders as "<" in the browser in the PHP parser which means we ought to decode these as well. Same for <pre><</pre> as well. Failure to decode them in the tokenizer caused RT errors on these snippets. * Unrelated fix: the regexp for escaping entities in Util was missing the "/g" flag. * Fixed the tokenizer to recognize html entities which fixes the parse and RTing of these snippets. * Fixes some RT errors on en:ASCII Art Farts * No change in parser tests (TODO: Add more parser tests). Change-Id: I7522e8f3a27a218cc0ae4c15d75fd877390e6ded --- M js/lib/mediawiki.Util.js M js/lib/pegTokenizer.pegjs.txt 2 files changed, 9 insertions(+), 9 deletions(-) Approvals: GWicke: Verified; Looks good to me, approved jenkins-bot: Checked -- To view, visit https://gerrit.wikimedia.org/r/45279 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7522e8f3a27a218cc0ae4c15d75fd877390e6ded Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits