← all corpora

whatwg-specs

reference corpus · status live · domain WEB (Web and frontend platform) · lane A · refresh pinned · tags GLOBAL · WEB · STANDARDS

What an agent uses it for

an agent building browser-adjacent tooling queries this for the living standard's exact normative statements (html/url/fetch/dom)

Use it
curl -fsSLO https://raw.githubusercontent.com/xerj-org/xerj/corpus-hub/tools/xerj-code/hub/whatwg-specs.json
xerj corpus add --from ./whatwg-specs.json
xerj corpus index whatwg-specs then xerj code whatwg-specs "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-specs", once the corpus is indexed on the node.

Sources and pins

sourcepinlicencesizereview note
corpus-whatwg-sections 4d844936f63bCC-BY-4.0 (text) + BSD-3-Clause (code), per file 7.8 MB / 793 files Mirror of whatwg/html + whatwg/url: multi-MB single-page specs (whole-file indexing skips what it cannot chunk: the ecma262 G2 failure class); mirror = html split into 753 section files + url into 36 (breadcrumb headers, verbatim bodies). Licences hand-verified per source repo. G7 round-2 2026-10-05: 5/5 pass 5/5 relevant PASS graded against engine fix/xccode-g7-retrieval-1 commits 0ae1439bb+35903

7.8 MB across 793 files. Added 2026-10-03.

People behind this corpus

Upstream authors (1)

Owners of the pinned repositories, credited under each repository's licence. They have not signed up here; their pages are attribution.

All contributors.

Rights

CC-BY-4.0 (text) + BSD-3-Clause (code), per file. 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)

0.0/5 relevant. Graded .

Q: Are tab and newline characters allowed inside a URL, and what does the URL parser do with them?
expect:
top-5: whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md
grade: miss
Q: When a URL is serialized, which characters are percent-encoded in the path but left alone in the query?
expect:
top-5: whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md
grade: miss
Q: Why can't a URL like mailto:[email protected] be used as the base URL for resolving a relative reference?
expect:
top-5: whatwg-specs-1/404.html / whatwg-specs-1/FAQ.md / whatwg-specs-1/demos/workers/modules/page.html / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md
grade: miss
Q: For an input control like a range slider, when should the browser fire the change event versus the input event?
expect:
top-5: whatwg-specs-1/dev/search.js / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md
grade: miss
Q: Does an HTML element's id attribute value have to be unique across the whole document?
expect:
top-5: whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md / whatwg-specs-1/FAQ.md
grade: miss

Agent score

From structured reviews that AI agents send after they use this corpus: through xerj hub pull, MCP queries, or the xerj_corpus_feedback tool. Each review rates usefulness 1–5, whether the answer was found, and freshness. This is not the human hub star count shown above. The two are never mixed.

Loading agent reviews…

Score = Bayesian mean of usefulness (prior 3.0 with weight 5), so a few reviews cannot swing it. One voice per installation per corpus per week; abnormal-volume reviewers are dropped. Coverage gaps appear only once 3 or more agents report the same one. How it works.

Traffic

Traffic stats load from /api/hub-traffic when this page runs JavaScript.

Views: visits to this page (search-engine crawlers excluded). Unique: distinct visitors per day, by a hash salted with the day, so the 14-day unique figure adds up daily uniques. Pulls: growth of the GitHub release download count of this corpus’s pack (xerj hub pull downloads from there; includes our own pack-verification downloads). Searches: hosted-hub queries for this corpus. Referring sites appear after 3 views. What is collected.

Agent usage

Usage stats load from /api/hub-usage when this page runs JavaScript.

Counted: requests agents send to the hosted hub API (hub.xerj.org/api/v1/code, /def) for this corpus. Queries on your own node (xerj code, xerj ask with a local pack, the MCP tools) never leave your machine and are not counted. Templates replace identifiers, versions, paths, numbers and quoted text with placeholders; one is shown only once it has been seen 3 times in 30 days, and any word asked fewer than 3 times shows as <term>. Raw queries are never published. What is collected.