├── .eslintrc.json ├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ ├── dependabot-automerge.yml │ ├── nodejs-test.yml │ └── site.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── package.json ├── readme.md ├── src ├── __fixtures__ │ ├── 01-basic.json │ ├── 02-single_tag_1.json │ ├── 03-single_tag_2.json │ ├── 04-unescaped_in_script.json │ ├── 05-tags_in_comment.json │ ├── 06-comment_in_script.json │ ├── 07-unescaped_in_style.json │ ├── 08-extra_spaces_in_tag.json │ ├── 09-unquoted_attrib.json │ ├── 10-singular_attribute.json │ ├── 11-text_outside_tags.json │ ├── 12-text_only.json │ ├── 13-comment_in_text.json │ ├── 14-comment_in_text_in_script.json │ ├── 15-non-verbose.json │ ├── 17-xml_namespace.json │ ├── 18-enforce_empty_tags.json │ ├── 19-ignore_empty_tags.json │ ├── 20-template_script_tags.json │ ├── 21-conditional_comments.json │ ├── 22-lowercase_tags.json │ ├── 23-dom-lvl1.json │ ├── 24-with-start-indices.json │ ├── 25-with-end-indices.json │ ├── 26-root-level-text.json │ └── 27-xml-no-special-tags.json ├── index.spec.ts ├── index.ts ├── node.spec.ts └── node.ts ├── tsconfig.eslint.json └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [fb55] 2 | tidelift: npm/domhandler 3 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/dependabot-automerge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.github/workflows/dependabot-automerge.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.github/workflows/nodejs-test.yml -------------------------------------------------------------------------------- /.github/workflows/site.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/.github/workflows/site.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | lib/ 4 | docs/ 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/LICENSE -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/readme.md -------------------------------------------------------------------------------- /src/__fixtures__/01-basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/01-basic.json -------------------------------------------------------------------------------- /src/__fixtures__/02-single_tag_1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/02-single_tag_1.json -------------------------------------------------------------------------------- /src/__fixtures__/03-single_tag_2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/03-single_tag_2.json -------------------------------------------------------------------------------- /src/__fixtures__/04-unescaped_in_script.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/04-unescaped_in_script.json -------------------------------------------------------------------------------- /src/__fixtures__/05-tags_in_comment.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/05-tags_in_comment.json -------------------------------------------------------------------------------- /src/__fixtures__/06-comment_in_script.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/06-comment_in_script.json -------------------------------------------------------------------------------- /src/__fixtures__/07-unescaped_in_style.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/07-unescaped_in_style.json -------------------------------------------------------------------------------- /src/__fixtures__/08-extra_spaces_in_tag.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/08-extra_spaces_in_tag.json -------------------------------------------------------------------------------- /src/__fixtures__/09-unquoted_attrib.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/09-unquoted_attrib.json -------------------------------------------------------------------------------- /src/__fixtures__/10-singular_attribute.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/10-singular_attribute.json -------------------------------------------------------------------------------- /src/__fixtures__/11-text_outside_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/11-text_outside_tags.json -------------------------------------------------------------------------------- /src/__fixtures__/12-text_only.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/12-text_only.json -------------------------------------------------------------------------------- /src/__fixtures__/13-comment_in_text.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/13-comment_in_text.json -------------------------------------------------------------------------------- /src/__fixtures__/14-comment_in_text_in_script.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/14-comment_in_text_in_script.json -------------------------------------------------------------------------------- /src/__fixtures__/15-non-verbose.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/15-non-verbose.json -------------------------------------------------------------------------------- /src/__fixtures__/17-xml_namespace.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/17-xml_namespace.json -------------------------------------------------------------------------------- /src/__fixtures__/18-enforce_empty_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/18-enforce_empty_tags.json -------------------------------------------------------------------------------- /src/__fixtures__/19-ignore_empty_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/19-ignore_empty_tags.json -------------------------------------------------------------------------------- /src/__fixtures__/20-template_script_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/20-template_script_tags.json -------------------------------------------------------------------------------- /src/__fixtures__/21-conditional_comments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/21-conditional_comments.json -------------------------------------------------------------------------------- /src/__fixtures__/22-lowercase_tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/22-lowercase_tags.json -------------------------------------------------------------------------------- /src/__fixtures__/23-dom-lvl1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/23-dom-lvl1.json -------------------------------------------------------------------------------- /src/__fixtures__/24-with-start-indices.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/24-with-start-indices.json -------------------------------------------------------------------------------- /src/__fixtures__/25-with-end-indices.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/25-with-end-indices.json -------------------------------------------------------------------------------- /src/__fixtures__/26-root-level-text.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/26-root-level-text.json -------------------------------------------------------------------------------- /src/__fixtures__/27-xml-no-special-tags.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/__fixtures__/27-xml-no-special-tags.json -------------------------------------------------------------------------------- /src/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/index.spec.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/node.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/node.spec.ts -------------------------------------------------------------------------------- /src/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/src/node.ts -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/tsconfig.eslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fb55/domhandler/HEAD/tsconfig.json --------------------------------------------------------------------------------