parse5
parse5 copied to clipboard
HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
TL;DR: would the owners of this repo be open to introduce a new API to `validate` a given HTML page or fragment? Today the parser fixes internally the tree for...
It appears it should return something like element's [qualified name](https://dom.spec.whatwg.org/#concept-element-qualified-name)? That is, if we're going to get accurate serialization out. This is confusing because elsewhere in the API you use...
We can significantly reduce parser invocations by combining character and whitespace character tokens in some insertion modes. E.g. `in body` we can adjust tokenizer to not emit dedicated whitespace character...
Bumps [test/data/html5lib-tests](https://github.com/html5lib/html5lib-tests) from `e3e6e15` to `038c066`. Commits 038c066 Test spec change: Remove parse error for <template><tr></tr> </template> See full diff in compare view Dependabot will resolve any conflicts with this...
## Summary This is an automated pull request generated by the [Step Security App Bot](https://github.com/step-security-bot) at the request of @fb55. Please merge the Pull Request to incorporate the requested changes....
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.21.0 to 7.0.2. Release notes Sourced from @typescript-eslint/parser's releases. v7.0.2 7.0.2 (2024-02-19) 🩹 Fixes fix tsconfig-less check errors, fix @types/eslint incompatibilities, add tests (#8460) utils: use mergeable...
Some libraries/frameworks would like to use Parse5 in a way that preserves the casing of attribute names. A common use case for this is a templating engine that enables binding...
I've been trying to figure out how to import the node types (`Node`, `Document`, etc) and can't figure out any way to do it except via the `DefaultTreeAdapter` type and...
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.3.3. Release notes Sourced from typescript's releases. TypeScript 5.3.3 For release notes, check out the release announcement. For the complete list of fixed issues, check...
**version: 7.1.2** This html is parsed as a single comment node: ``` ``` This html is parsed as a 2 independent comment nodes and all internal content appears as a...