What I learned porting JustHTML to PHP with GPT 5.2 Codex

A couple of weeks ago, I read Emil Stenström’s write-up on building JustHTML, then Simon Willison’s post about porting it to JavaScript with Codex. That inspired me to create a PHP port in the same vein: a pure PHP library for HTML parsing that passes the html5lib test suite and stays compatible with as many PHP versions [ ]