51f3fe81b6a517a92ff95242c55ac13786e010f3
Code review found two Important bugs from only <pre> being exempted from the naive </> tag-boundary scan: a > inside a quoted attribute value split tags and broke idempotency, and <script>/<style> (declared BLOCK_TAGS but never given raw-text treatment) let JS/CSS < and > desync sibling nesting. Adds a quote-aware tag-end scanner, generalizes verbatim handling to <script>/<style>, and makes close-tag stack popping verify the tag name before popping instead of blindly popping by position. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Languages
TypeScript
75.9%
JavaScript
12.3%
HTML
8.6%
CSS
2.6%
PHP
0.4%
Other
0.2%