Subramanya Sastry has uploaded a new change for review. Change subject: Improved detection of tpl-content fostered out of a table. ......................................................................
Improved detection of tpl-content fostered out of a table. * Added generic template range merge detection so we merge template ranges whenever one is nested inside another. More robust since we no longer restrict template wrapping to outermost templates. * Detect when templated content is fostered out a table even when the table doesn't have a known end-dsr (for example, when the table end tag and table-sibling content is generated by a tamplate). This lets us wrap the fostered content and the parent table together. * The reduced test case is too large to paste into this commit message but has been pulled out of en:HMS Salisbury (F32) -- the leading infobox template. * Fixes RTing of en:HMS Salisbury (F32) and possible others. * TODO: concoct a simplified test case that mimics this behavior to add to parser tests. Change-Id: I12e0a5b4274f7ac2e1ad53db35a6ce68ccbd4b8e --- M js/lib/mediawiki.DOMPostProcessor.js 1 file changed, 105 insertions(+), 38 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid refs/changes/69/36669/1 -- To view, visit https://gerrit.wikimedia.org/r/36669 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I12e0a5b4274f7ac2e1ad53db35a6ce68ccbd4b8e 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
