Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "html5", | ||
"description": "HTML5 HTML parser, including support for SVG and MathML foreign content", | ||
"version": "v1.0.0", | ||
"version": "v1.0.1", | ||
"author": { | ||
@@ -19,8 +19,2 @@ "name": "Aria Stewart", | ||
{ | ||
"name": "Aria Stewart", | ||
"email": "aredridel@nbtsc.org", | ||
"github": "aredridel", | ||
"url": "http://dinhe.net/~aredridel/" | ||
}, | ||
{ | ||
"name": "Arthur Taylor", | ||
@@ -44,8 +38,6 @@ "github": "codders" | ||
"dependencies": { | ||
"jsdom": "^1.0.0", | ||
"opts": "^1.2.1", | ||
"html5-entities": "^0.5.0" | ||
}, | ||
"optionalDependencies": { | ||
"jsdom": ">= 0.9.0" | ||
}, | ||
"devDependencies": { | ||
@@ -65,5 +57,5 @@ "tape": "^1.0.4", | ||
"scripts": { | ||
"test": "PATH=$PATH:`npm bin` tape `find test -name '*-test.js'`" | ||
"test": "tape `find test -name '*-test.js'`" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -6,26 +6,22 @@ HTML5 Parser for node.js | ||
Example (With jQuery!) | ||
---------------------- | ||
```js | ||
/* Before you run this, run: | ||
(cd deps/jquery; rake) | ||
*/ | ||
var HTML5 = require('html5'), | ||
Script = process.binding('evals').Script, | ||
util = require('util'), | ||
fs = require('fs'), | ||
jsdom = require('jsdom'), | ||
window = jsdom.jsdom(null, null, {parser: HTML5}).createWindow() | ||
Examples | ||
-------- | ||
var parser = new HTML5.Parser({document: window.document}); | ||
A simple example: | ||
var inputfile = fs.readFileSync('doc/jquery-example.html'); | ||
parser.parse(inputfile); | ||
```javascript | ||
var HTML5 = require('html5'); | ||
var jsdom = require('jsdom'); | ||
var core = jsdom.browserAugmentation(jsdom.level(3)); | ||
jsdom.jQueryify(window, __dirname + '/deps/jquery/dist/jquery.js', function(window, jquery) { | ||
Script.runInNewContext('jQuery("p").append("<b>Hi!</b>")', window); | ||
util.puts(window.document.innerHTML); | ||
var impl = new core.DOMImplementation(); | ||
var document = impl.createDocument(); | ||
var parser = new HTML5.JSDOMParser(document, core); | ||
}); | ||
parser.parse('<p>I am a very small HTML document</p>'); | ||
console.log(document.getElementsByTagName("p")[0].innerHTML); | ||
``` | ||
Interesting features | ||
@@ -54,4 +50,2 @@ -------------------- | ||
(At time of this writing, 1800 tests pass) | ||
Git repository at http://dinhe.net/~aredridel/projects/js/html5.git/ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
149
3188325
50
+ Addedjsdom@^1.0.0
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedbrowser-request@0.3.3(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcontextify@0.1.15(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addedcssom@0.3.8(transitive)
+ Addedcssstyle@0.2.37(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddom-serializer@0.2.2(transitive)
+ Addeddomelementtype@1.3.12.3.0(transitive)
+ Addeddomhandler@2.4.2(transitive)
+ Addeddomutils@1.7.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedentities@1.1.22.2.0(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhtmlparser2@3.10.1(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjsdom@1.5.0(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addednan@2.22.0(transitive)
+ Addednwmatcher@1.4.4(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedparse5@1.5.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxmlhttprequest@1.8.0(transitive)
- Removedagent-base@7.1.1(transitive)
- Removedcssstyle@4.1.0(transitive)
- Removeddata-urls@5.0.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddecimal.js@10.4.3(transitive)
- Removedentities@4.5.0(transitive)
- Removedform-data@4.0.1(transitive)
- Removedhtml-encoding-sniffer@4.0.0(transitive)
- Removedhttp-proxy-agent@7.0.2(transitive)
- Removedhttps-proxy-agent@7.0.5(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-potential-custom-element-name@1.0.1(transitive)
- Removedjsdom@25.0.1(transitive)
- Removedms@2.1.3(transitive)
- Removednwsapi@2.2.13(transitive)
- Removedparse5@7.2.1(transitive)
- Removedrrweb-cssom@0.7.1(transitive)
- Removedsaxes@6.0.0(transitive)
- Removedsymbol-tree@3.2.4(transitive)
- Removedtldts@6.1.61(transitive)
- Removedtldts-core@6.1.61(transitive)
- Removedtough-cookie@5.0.0(transitive)
- Removedtr46@5.0.0(transitive)
- Removedw3c-xmlserializer@5.0.0(transitive)
- Removedwebidl-conversions@7.0.0(transitive)
- Removedwhatwg-encoding@3.1.1(transitive)
- Removedwhatwg-mimetype@4.0.0(transitive)
- Removedwhatwg-url@14.0.0(transitive)
- Removedws@8.18.0(transitive)
- Removedxml-name-validator@5.0.0(transitive)
- Removedxmlchars@2.2.0(transitive)