htmlparser2
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -173,3 +173,5 @@ var Tokenizer = require("./Tokenizer.js"); | ||
if(this._cbs.onprocessinginstruction){ | ||
this._cbs.onprocessinginstruction("!" + value.split(/\s|\//, 1)[0], "!" + value); | ||
var name = value.split(/\s|\//, 1)[0]; | ||
if(this._options.lowerCaseTags) name = name.toLowerCase(); | ||
this._cbs.onprocessinginstruction("!" + name, "!" + value); | ||
} | ||
@@ -180,3 +182,5 @@ }; | ||
if(this._cbs.onprocessinginstruction){ | ||
this._cbs.onprocessinginstruction("?" + value.split(/\s|\//, 1)[0], "?" + value); | ||
var name = value.split(/\s|\//, 1)[0]; | ||
if(this._options.lowerCaseTags) name = name.toLowerCase(); | ||
this._cbs.onprocessinginstruction("?" + name, "?" + value); | ||
} | ||
@@ -183,0 +187,0 @@ }; |
{ | ||
"name": "htmlparser2", | ||
"description": "Performance-optimized forgiving HTML/XML/RSS parser", | ||
"version": "3.0.4", | ||
"description": "Fast & forgiving HTML/XML/RSS parser", | ||
"version": "3.0.5", | ||
"author": "Felix Boehm <me@feedic.com>", | ||
@@ -6,0 +6,0 @@ "keywords": ["html", "parser", "streams", "xml", "dom", "rss", "feed", "atom"], |
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
113402
5255