Re:I wrote JustHTML using coding agents
by EmilStenstrom on Friday December 19, 2025 @05:38PM
(#46331789)
Excellent feedback. I'll have a look at the running of html5lib tests again.
Re:I wrote JustHTML using coding agents
by EmilStenstrom on Sunday December 21, 2025 @07:45AM
(#46344448)
I've checked the numbers for html5lib, and they are correct. They are skipping a load of tests for many different reasons, one being that namespacing of svg/math fragments are not implemented. The 88% number listed is correct.
There's also something off about your benchmark comparison. If one runs pytest on html5lib, which uses html5lib-test plus its own unit tests and does check if errors match exactly, the pass rate appears to be much higher than 86%:
These numbers are inflated because html5lib-tests/tree-construction tests are run multiple times in different configurations. Many of the expected failures appear to be script tests similar to the ones JustHTML skips.