Provides a list of all node types used in htmlparser2’s DOM, useful when you need to understand or work with how htmlparser2 represents parsed HTML in code.
Project status
- Maintenance status: The repository appears actively maintained in the near term, with a recent update (v3.0.0 on 2026-03-17) and an upstream push on 2026-03-26.
- Update cadence: Updates have been infrequent overall, with large gaps between changes (v2.3.0 in 2022, v2.2.0 in 2021, then v3.0.0 in 2026). This suggests occasional, not continuous, maintenance.
AI summary generated Today
Recent updates
v3.0.0
2 months agov3.0.0 primarily marks domelementtype as ESM-only. Alongside that, the project changed its packaging and build setup to output to dist and to use modern NodeNext TypeScript and new linting/formatting tooling.
Breakingv2.3.0
4/7/2022v2.3.0 primarily adds an ESM build output under lib/esm and updates the package entry points to support both CommonJS (require) and ESM (import). Alongside that, the release also updates the build scripts, adds a package.json exports map, and bumps several development toolchain dependencies.
BreakingFeaturesv2.2.0
4/1/2021Release v2.2.0 makes a small source change to how `ElementType` is exported, switching from a TypeScript `const enum` to a regular `enum`. The release notes state this explicitly as the main change, along with routine version bumps in the package metadata.
Breakingv2.1.0
12/2/2020Release v2.1.0 adds a new `root` element type to the `domelementtype` exports, alongside a `Root` alias for backwards-compatible usage. It also updates CI to run tests on `ppc64le`. Version metadata was bumped from 2.0.2 to 2.1.0.
Featuresv2.0.2
9/13/2020v2.0.2 makes mostly metadata and documentation updates (exported ElementType documentation and funding info). The code diff also includes several repository-wide build and tooling configuration changes, plus large development dependency version bumps via the lockfile.
Featuresv2.0.1
7/30/2019Release v2.0.1 updates the package manifest so that the published entrypoints point to the compiled output under lib/. It also adjusts which files are included when publishing to npm.
v2.0.0
7/30/2019This release ports `domelementtype` to TypeScript. It adds a new TypeScript-friendly `ElementType` export (a `const enum`) intended for use by TypeScript consumers, replacing previous patterns for accessing element types.
Features