Skip to content

Commit

Permalink
Bump version to 0.1.0
Browse files Browse the repository at this point in the history
Improve and refactor client parser (#2)
- Use template element as the default parser
  - For HTML that doesn't have high-level tags (no <html>, <head>,
    or <body>)
  - Fastest parser out of the three
  - Doesn't load external resources like images when parsing
- Use `DOMImplementation` as fallback
  - For HTML with tags like <head> or <body> (but no <html>)
  - Second fastest parser out of the three
- Use `DOMParser` as final fallback or for parsing high-level tags
  - For HTML with directive and/or <html> (can handle all cases)
  - Slowest parser out of the three
  - Make sure to remove extraneous elements (e.g., <head> or
    <body>) if they're not in the HTML
- Improve regex matching, create constants, and cache values that
  can optimize the parser
  • Loading branch information
remarkablemark committed Jun 17, 2017
1 parent 23fcfcc commit 346249e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html-dom-parser",
"version": "0.0.2",
"version": "0.1.0",
"description": "An HTML to DOM parser that works on the server and client.",
"author": "Mark <[email protected]>",
"main": "index.js",
Expand Down

0 comments on commit 346249e

Please sign in to comment.