node-html-parser
Advanced tools
Comparing version 1.2.12 to 1.2.13
@@ -696,3 +696,3 @@ var __extends = (this && this.__extends) || (function () { | ||
while (stack.length) { | ||
var state = back_1.default(stack); | ||
var state = back_1.default(stack); // get last element | ||
var el = state[0]; | ||
@@ -705,6 +705,8 @@ if (state[1] === 0) { | ||
} | ||
state[2] = matcher.advance(el); | ||
var html_el = el; | ||
state[2] = matcher.advance(html_el); | ||
if (state[2]) { | ||
if (matcher.matched) { | ||
res.push(el); | ||
res.push(html_el); | ||
res.push.apply(res, (html_el.querySelectorAll(selector))); | ||
// no need to go further. | ||
@@ -711,0 +713,0 @@ matcher.rewind(); |
@@ -328,3 +328,3 @@ "use strict"; | ||
while (stack.length) { | ||
var state = back_1.default(stack); | ||
var state = back_1.default(stack); // get last element | ||
var el = state[0]; | ||
@@ -337,6 +337,8 @@ if (state[1] === 0) { | ||
} | ||
state[2] = matcher.advance(el); | ||
var html_el = el; | ||
state[2] = matcher.advance(html_el); | ||
if (state[2]) { | ||
if (matcher.matched) { | ||
res.push(el); | ||
res.push(html_el); | ||
res.push.apply(res, (html_el.querySelectorAll(selector))); | ||
// no need to go further. | ||
@@ -343,0 +345,0 @@ matcher.rewind(); |
{ | ||
"name": "node-html-parser", | ||
"version": "1.2.12", | ||
"version": "1.2.13", | ||
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
155892
2784