forked from inikulin/parse5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move fork back into main project (inikulin#362)
- Ported to TypeScript - Switched to npm workspaces, in favour of `lerna` - Switched to Jest as the test runner - Switched to the `entities` module for decoding entities - A version of parse5's decoding logic was adapted for `entities`. Adopting this dependency allows us to share the maintenance with the `entities` & `htmlparser2` modules. - Moved the docs back to TSDoc comments - Switched to the state machine pattern of `htmlparser2` for tokenizer - No more mixins: Merged location & error mixins into the main classes - Introduced tag IDs, to avoid branching over large numbers of strings. - Introduced Maps and Sets where appropriate - Switched the order of the formatted elements list - Introduced array helpers in a lot of places - Updated tests to no longer build objects of tests (used `describe`/`it` constructs instead) Co-authored-by: Titus <tituswormer@gmail.com> Co-authored-by: 43081j <43081j@users.noreply.github.com>
- Loading branch information
Showing
162 changed files
with
21,064 additions
and
33,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
packages/parse5/lib/tokenizer/named-entity-data.js | ||
test/benchmark/node_modules/**/*.js | ||
test/memory_benchmark/node_modules/**/*.js | ||
test/data/html5lib-tests | ||
packages/*/dist/ | ||
test/dist/ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Exclude the HTML files from GitHub's language statistics | ||
# https://github.com/github/linguist#using-gitattributes | ||
test/data/* linguist-vendored | ||
packages/test-utils/data/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "test/data/html5lib-tests"] | ||
[submodule "html5lib-tests"] | ||
path = test/data/html5lib-tests | ||
url = https://github.com/HTMLParseErrorWG/html5lib-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
packages/parse5/lib/tokenizer/named-entity-data.js | ||
packages/*/dist/ | ||
test/dist/ | ||
docs | ||
test/data/html5lib-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"name": "parse5-benchmarks", | ||
"private": "true", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"description": "parse5 regression benchmarks", | ||
"author": "Ivan Nikulin <ifaaan@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"benchmark": "^2.1.4", | ||
"human-format": "^0.7.0", | ||
"human-format": "^0.11.0", | ||
"@airbnb/node-memwatch": "^2.0.0", | ||
"parse5": "*", | ||
"parse5": "npm:parse5", | ||
"promisify-event": "^1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.