Skip to content

HTML Conformance

Lanexio Parser’s HTML parser implements the full WHATWG HTML parsing algorithm. This page summarizes the conformance status as of v1.0.

CategoryTestsPassedSkippedFailed
Tree construction5,2075,19980
Tokenizer2,7662,76600

All 5,199 tree-construction tests pass. 8 tests are skipped because they require JavaScript execution (#script-on tests). There are zero failures.

All 2,766 tokenizer tests pass.

The full test results are in docs/HTML5_COVERAGE.md in the repository.

All 23 HTML5 insertion modes are implemented:

ModeStatus
InitialImplemented
Before HTMLImplemented
Before HeadImplemented
In HeadImplemented
In Head NoscriptImplemented
After HeadImplemented
In BodyImplemented
TextImplemented
In TableImplemented
In Table TextImplemented
In CaptionImplemented
In Column GroupImplemented
In Table BodyImplemented
In RowImplemented
In CellImplemented
In SelectImplemented
In Select In TableImplemented
In TemplateImplemented
After BodyImplemented
In FramesetImplemented
After FramesetImplemented
After After BodyImplemented
After After FramesetImplemented
FeatureStatus
Adoption agency algorithmImplemented
Foster parentingImplemented
Foreign content (SVG, MathML)Implemented
Scripting-disabled <noscript>Implemented
<template> elementImplemented
Quirks mode detectionImplemented
Fragment parsingImplemented

The 8 skipped tree-construction tests all require running JavaScript (#script-on). They test behavior that depends on document.write() or document.cookie being called during parsing. Lanexio Parser is a static parser and does not execute scripts.

This is not a conformance gap for any practical HTML parsing use case. No static HTML parser implements #script-on behavior.

WHATWG HTML Living Standard § 13.2 (Parsing)
RAG: html_docs::parsing-main@whatwg-2026-03-01

html5lib tests: https://github.com/html5lib/html5lib-tests