Subramanya Sastry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/79028


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/28/79028/1

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: newchange
Gerrit-Change-Id: If4d71b1c24c66d3732032dab5c5fb2079d9ccb28
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

Reply via email to