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

parse5

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse5 - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

docs/build/index.md

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 1.5.1
* Fix: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)).
## 1.5.0

@@ -2,0 +5,0 @@ * Add: Location info for the element start and end tags (by @sakagg).

@@ -0,0 +0,0 @@ 'use strict';

7

lib/serialization/serializer.js

@@ -88,6 +88,5 @@ 'use strict';

var tn = this.treeAdapter.getTagName(node),
ns = this.treeAdapter.getNamespaceURI(node),
qualifiedTn = (ns === NS.HTML || ns === NS.SVG || ns === NS.MATHML) ? tn : (ns + ':' + tn);
ns = this.treeAdapter.getNamespaceURI(node);
this.html += '<' + qualifiedTn;
this.html += '<' + tn;
this._serializeAttributes(node);

@@ -117,3 +116,3 @@ this.html += '>';

this._serializeChildNodes(childNodesHolder);
this.html += '</' + qualifiedTn + '>';
this.html += '</' + tn + '>';
}

@@ -120,0 +119,0 @@ };

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

{
"name": "parse5",
"description": "WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node and io.js.",
"version": "1.5.0",
"version": "1.5.1",
"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

Sorry, the diff of this file is too big to display

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