Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmlparser2

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlparser2 - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

3

lib/Parser.js

@@ -178,3 +178,4 @@ "use strict";

this._tagname = name;
if (!this._options.xmlMode && name in openImpliesClose) {
if (!this._options.xmlMode &&
Object.prototype.hasOwnProperty.call(openImpliesClose, name)) {
for (var el = void 0;

@@ -181,0 +182,0 @@ // @ts-ignore

@@ -113,5 +113,5 @@ /** All the states the tokenizer can be in. */

_stateInTagName(c: string): void;
_stateBeforeCloseingTagName(c: string): void;
_stateInCloseingTagName(c: string): void;
_stateAfterCloseingTagName(c: string): void;
_stateBeforeClosingTagName(c: string): void;
_stateInClosingTagName(c: string): void;
_stateAfterClosingTagName(c: string): void;
_stateBeforeAttributeName(c: string): void;

@@ -118,0 +118,0 @@ _stateInSelfClosingTag(c: string): void;

@@ -164,3 +164,3 @@ "use strict";

};
Tokenizer.prototype._stateBeforeCloseingTagName = function (c) {
Tokenizer.prototype._stateBeforeClosingTagName = function (c) {
if (whitespace(c)) {

@@ -186,3 +186,3 @@ // ignore

};
Tokenizer.prototype._stateInCloseingTagName = function (c) {
Tokenizer.prototype._stateInClosingTagName = function (c) {
if (c === ">" || whitespace(c)) {

@@ -194,3 +194,3 @@ this._emitToken("onclosetag");

};
Tokenizer.prototype._stateAfterCloseingTagName = function (c) {
Tokenizer.prototype._stateAfterClosingTagName = function (c) {
//skip everything until ">"

@@ -614,3 +614,3 @@ if (c === ">") {

else if (this._state === 6 /* InClosingTagName */) {
this._stateInCloseingTagName(c);
this._stateInClosingTagName(c);
}

@@ -630,6 +630,6 @@ else if (this._state === 2 /* BeforeTagName */) {

else if (this._state === 5 /* BeforeClosingTagName */) {
this._stateBeforeCloseingTagName(c);
this._stateBeforeClosingTagName(c);
}
else if (this._state === 7 /* AfterClosingTagName */) {
this._stateAfterCloseingTagName(c);
this._stateAfterClosingTagName(c);
}

@@ -636,0 +636,0 @@ else if (this._state === 31 /* BeforeSpecial */) {

{
"name": "htmlparser2",
"description": "Fast & forgiving HTML/XML/RSS parser",
"version": "4.0.0",
"version": "4.1.0",
"author": "Felix Boehm <me@feedic.com>",

@@ -24,2 +24,3 @@ "keywords": [

"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [

@@ -34,3 +35,3 @@ "lib/**/*"

"coverage": "cat coverage/lcov.info | coveralls",
"lint": "eslint src/**/*.ts",
"lint": "eslint --ext=js,ts src",
"format": "prettier --write '**/*.{ts,md,json}'",

@@ -47,4 +48,4 @@ "build": "tsc",

"devDependencies": {
"@types/jest": "^24.0.16",
"@types/node": "^12.6.8",
"@types/jest": "^25.1.3",
"@types/node": "^13.1.1",
"@typescript-eslint/eslint-plugin": "^1.13.0",

@@ -51,0 +52,0 @@ "@typescript-eslint/parser": "^1.13.0",

@@ -107,2 +107,6 @@ # htmlparser2

[Get supported htmlparser2 with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-htmlparser2?utm_source=npm-htmlparser2&utm_medium=referral&utm_campaign=readme)
## `htmlparser2` for enterprise
Available as part of the Tidelift Subscription
The maintainers of `htmlparser2` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-htmlparser2?utm_source=npm-htmlparser2&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc