lite-html-parser
Advanced tools
Comparing version 0.2.0 to 0.2.1
13
index.js
@@ -21,8 +21,2 @@ const IN_TAG = 1 << 0 | ||
let state = 0 | ||
const bitOn = (bit) => { state |= bit } | ||
const bitOff = (bit) => { state = state & ~bit } | ||
const isBitOn = bit => (state & bit) > 0 | ||
exports.parse = (xhtml, handlers, options = OPTIONS) => { | ||
@@ -38,5 +32,10 @@ const { opentag, closetag, attribute, text, comment, instruction } = handlers | ||
let rest = '' | ||
let state = 0 | ||
let line = 0 | ||
let row = 0 | ||
const bitOn = (bit) => { state |= bit } | ||
const bitOff = (bit) => { state = state & ~bit } | ||
const isBitOn = bit => (state & bit) > 0 | ||
const sayOpentag = () => { | ||
@@ -207,4 +206,2 @@ bitOn(TAG_OPEN) | ||
} | ||
state = 0 | ||
} |
{ | ||
"name": "lite-html-parser", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
7664
193