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

minidom

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minidom - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

bundle.js

5

CHANGES.md

@@ -0,1 +1,6 @@

## 0.1.1
- Update to parse5 v1.1.4
- Add `length` setter to `NodeList`
## 0.1.0

@@ -2,0 +7,0 @@

3

level1/core.js

@@ -237,2 +237,5 @@ /*

},
set length(length) {
return this._length;
},
item: function(index) {

@@ -239,0 +242,0 @@ this._update();

4

package.json
{
"name": "minidom",
"version": "0.1.0",
"version": "0.1.1",
"description": "Small DOM level 1 implementation",

@@ -21,3 +21,3 @@ "homepage": "https://github.com/montagejs/minidom",

"dependencies": {
"parse5": "~0.6.0"
"parse5": "~1.1.4"
},

@@ -24,0 +24,0 @@ "devDependencies": {

var minidom = require("./minidom");
var doc;
var html = "<body>hi</body><head><title>hello</title>";
Error.stackTraceLimit = Infinity;
doc = minidom(html);
console.log("MINIDOM", doc.outerHTML);
// console.log(doc.documentElement.outerHTML);
var doc = minidom();
console.log(doc.nodeType === doc.DOCUMENT_NODE);
console.log(doc.documentElement.outerHTML === "<html><head></head><body></body></html>");

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