Subramanya Sastry has uploaded a new change for review. 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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid refs/changes/79/45279/1 -- To view, visit https://gerrit.wikimedia.org/r/45279 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7522e8f3a27a218cc0ae4c15d75fd877390e6ded Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
