Codex Trace a Local HTML Parser Tree-Building Error
Compare markup, tokens, and tree output in your own HTML parser to find the first structural mismatch.
中文Install in Codex
Use your own parser project, local HTML fixtures, and a test tool that can display the DOM tree.
- Copy the pinned `.codex/skills/html-parser-triage/` directory into `.agents/skills/html-parser-triage/` in the project.
- Give Codex the fixture, current tree, and expected shape, then ask it to identify the first divergence.
Example task
Parse `<ul><li>Alpha<li>Beta</ul>` locally. If the second `li` is nested under the first, inspect the list-item insertion rule and add a structural test.What to check
The fixture verifies two sibling `li` children under `ul`, and the report identifies the first divergence and owning parser rule.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should I start by changing rendering?
Inspect the parser tree first. If the node relationships are already incorrect, locate the parser stage that owns the rule.