GWicke has submitted this change and it was merged. Change subject: RT-ing of template-affected attributes. ......................................................................
RT-ing of template-affected attributes. * Added rt-ing of attributes that are template-affected. This currently relies on a prepass over the DOM collecting information about such attributes -- possibly wasteful, but not critical at this moment, and unsure if this is that expensive yet, something to investigate at a later time. * Fixed link and html-tag attribute serializer to query info collected in the previous step to interject template-wikitext in place of the expanded value. * Fixed bugs in the attribute expander to correctly deal with templates in external link attributes. Parser tests results: - No change in wt2html results: 333 green - New wt2wt results: 522 green (up from 518) Change-Id: I464291c11f64d1242c418bdd35f1c04a6c5f78d7 --- M js/lib/ext.core.AttributeExpander.js M js/lib/ext.core.LinkHandler.js M js/lib/mediawiki.WikitextSerializer.js M js/lib/mediawiki.parser.defines.js M js/lib/pegTokenizer.pegjs.txt 5 files changed, 175 insertions(+), 50 deletions(-) Approvals: GWicke: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/21966 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I464291c11f64d1242c418bdd35f1c04a6c5f78d7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <[email protected]> Gerrit-Reviewer: GWicke <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
