Comparing version 2.1.2 to 2.1.3
@@ -127,5 +127,15 @@ 'use strict'; | ||
*/ | ||
this.emit('script', scriptElement, this._documentWrite, this._resume); | ||
var parser = this; | ||
// NOTE: emit `script` on next tick so we let parsing | ||
// loop stop spinning due to `pausedByScript` flag. | ||
// This helps avoid reentrant invocation of parsing loop | ||
// in cases then `resume` called synchronously | ||
// (see: https://github.com/inikulin/parse5/issues/98). | ||
process.nextTick(function () { | ||
parser.emit('script', scriptElement, parser._documentWrite, parser._resume); | ||
}); | ||
} | ||
}; | ||
{ | ||
"name": "parse5", | ||
"description": "WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.js", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
380954
7404