Subramanya Sastry has submitted this change and it was merged.

Change subject: Round-trip treebuilder-stripped HTML end tags
......................................................................


Round-trip treebuilder-stripped HTML end tags

Use the mw:EndTag shadow tag to detect stripped end tags, and insert an
mw:Placeholder for round-tripping. The source for the mw:Placeholder is not
yet tsr-based, would need to do so in the HTML5Treebuilder where we still have
access to the environment and the original tokens.

With this patch, this test case now round-trips fine:

<code>
 foo</code>

Three more parser tests are passing.

Change-Id: I6b9a730cc4735f43d5a70d061abea591fab73f46
---
M js/lib/mediawiki.DOMPostProcessor.js
1 file changed, 27 insertions(+), 3 deletions(-)

Approvals:
  Subramanya Sastry: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/36241
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6b9a730cc4735f43d5a70d061abea591fab73f46
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to