jenkins-bot has submitted this change and it was merged.
Change subject: Apply the same fix in 5ff4ad75 for /_rt/ endpoint
......................................................................
Apply the same fix in 5ff4ad75 for /_rt/ endpoint
* This will let us duplicate errors on localhost and the wmflabs
install of parsoid -- useful for debugging.
Change-Id: If4d71b1c24c66d3732032dab5c5fb2079d9ccb28
---
M js/api/ParserService.js
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
GWicke: Looks good to me, approved
jenkins-bot: Verified
diff --git a/js/api/ParserService.js b/js/api/ParserService.js
index 006daea..d3d3ea8 100644
--- a/js/api/ParserService.js
+++ b/js/api/ParserService.js
@@ -19,6 +19,7 @@
// global includes
var express = require('express'),
+ domino = require( 'domino' ),
jsDiff = require('diff'),
childProc = require('child_process'),
spawn = childProc.spawn,
@@ -257,6 +258,9 @@
res.end('\n</body></html>');
};
+ // Re-parse the HTML to uncover foster-parenting issues
+ document = domino.createDocument(document.outerHTML);
+
// Always use the regular serializer for round-trip diff tests
// since these will never have any edits for selser to do any work.
new WikitextSerializer({env: env}).serializeDOM( document.body,
--
To view, visit https://gerrit.wikimedia.org/r/79028
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If4d71b1c24c66d3732032dab5c5fb2079d9ccb28
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits