# Codex ports a Python HTML parser to JavaScript

Willison supplied an existing parser and an independent compatibility suite, reviewed an API plan, then let Codex implement a JavaScript port through repeated tests and commits.

Agent: Codex
Tools: Codex CLI, GPT-5.2, html5lib-tests, Git, GitHub Actions
Category: Software & DevOps
Date: 2025-12-15

Outcome: Willison reports a dependency-free JavaScript library passing thousands of compatibility tests; the session summary also lists skipped cases.

## Steps

1. Read the Python parser and compatibility tests and prepare an API specification.
2. Implement a small working parser before expanding through the planned milestones.
3. Run the compatibility suite repeatedly and commit progress, then add a browser playground.

Human oversight: Willison reviewed the specification and smoke milestone, monitored commits and resumed the run after a usage limit.

Source: [Simon Willison](https://simonwillison.net/2025/Dec/15/porting-justhtml/)

Canonical URL: https://agentsinuse.com/use-cases/codex-justhtml-port/
