Server-side DOM implementation based on Mozilla's dom.js. Stable version 2.1.4, released 2023. Fork of fgnass/domino optimized for minification and SVG CSS attribute support. Designed for building pages rather than scraping, it sticks to DOM Level 4 and does not execute scripts or download external resources. It is faster than jsdom for basic DOM manipulation and does not use ES6 proxies, making it compatible with older Node versions.
npm install domino-extNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a DOM document from an HTML string and query an element using standard DOM API.
Use Array.from(element.attributes) or for loop with length/item.
Pre-render any JavaScript-dependent content server-side or use a headless browser for scraping.
Use standard attribute methods (getAttribute, setAttribute, removeAttribute) instead.
Prefer firstChild/nextSibling over childNodes when doing many DOM manipulations.
Use import domino from 'domino' (ESM) or const domino = require('domino') (CommonJS). Ensure domino version >=2.0.Run npm install domino or yarn add domino.
Use Array.from(element.attributes).forEach(...) or for (let i = 0; i < element.attributes.length; i++) { ... }No dependency data recorded yet.