← all corpora

whatwg-dom

reference corpus · status live · domain WEB (Web and frontend platform) · lane A · refresh pinned · tags GLOBAL · DOM · WHATWG · EVENTS · SHADOW-DOM · SPEC

What an agent uses it for

an agent manipulating page structure queries this for the authoritative DOM tree, event, mutation, and node-interface semantics (including Shadow DOM / custom elements).

Use it
curl -fsSLO https://raw.githubusercontent.com/xerj-org/xerj/corpus-hub/tools/xerj-code/hub/whatwg-dom.json
xerj corpus add --from ./whatwg-dom.json
xerj corpus index whatwg-dom then xerj code whatwg-dom "your question"

Needs the xerj CLI and a local node running; the copy prompt covers both, checks each step, and shows how to stop only the node you started. No shell: the MCP tool xerj_code_search with corpus: "whatwg-dom", once the corpus is indexed on the node.

Sources and pins

sourcepinlicencesizereview note
dom 3071e5f26944CC-BY-4.0 7.3 MB / 31 files Decoded LICENSE byte-identical to whatwg-html (md5 7c81f45): CC-BY-4.0 prose + BSD-3-Clause code snippets, both permissive. Live, not archived. Attribute WHATWG; shallow ~8MB.

7.3 MB across 31 files. Added 2026-10-13.

Rights

CC-BY-4.0. Redistribution permitted with attribution per the licence review. The review block records a human opening each licence file at the pin. Detector output is a hint, never the verdict.

Retrieval spot-check (G7)

Not yet spot-checked. Queries are pre-registered in the registry before grading.