I ported JustHTML from Python to JavaScript with Codex CLI and GPT-5.2 in 4.5 hours
simonwillison.net·3d·
Discuss: Hacker News
🌐Browser Compilers
Preview
Report Post

15th December 2025

I wrote about JustHTML yesterday—Emil Stenström’s project to build a new standards compliant HTML5 parser in pure Python code using coding agents running against the comprehensive html5lib-tests testing library. Last night, purely out of curiosity, I decided to try porting JustHTML from Python to JavaScript with the least amount of effort possible, using Codex CLI and GPT-5.2. It worked beyond my expectations.

TL;DR

I built simonw/justjshtml, a dependency-free HTML5 parsing library in JavaScript which passes 9,200 tests from the html5lib-tests suite and imitates the API design of Emil’s JustHTML library.

It took two initial prompts and a few tiny follow-ups. GPT-…

Similar Posts

Loading similar posts...