← All repos

domhandler

Handler for htmlparser2, to get a DOM

domdom-builderdomhandlerhtmlparser2tree
Browse cluster: HTML Parsing & Error Tracking
1,682commits
27contributors
2languages

Tech stack & purpose

Domhandler is a handler for htmlparser2 that creates a tree representation containing all nodes from an HTML page. Built for JavaScript environments, it works in conjunction with htmlparser2 to parse HTML and generate a DOM structure that can then be manipulated using libraries like domutils or cheerio, and rendered with dom-serializer. The handler offers configuration options to include start and end position indices for nodes when parsing is done in a non-streaming fashion.

Languages

TypeScript
95.3%
JavaScript
4.7%

Contributors