Skip to content

🐛 fix(fuzz): accept current select text parsing - #1640

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/encoding-byte-roundtrip
Nov 6, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/encoding-byte-roundtrip

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

The encoding fuzz target reported select content as an error when its reference parser ignored text inside <style> or <title>. These inputs can now run without stopping on that outdated comparison.

The check still compares parsing from bytes and decoded Unicode. It uses the independent reference parser for documents without these select descendants.

html5lib ignores style and title content inside select, so the encoding
fuzzer reports valid text as a mismatch under current HTML parsing rules.

Keep the byte-to-Unicode comparison for these trees and use html5lib as the
text oracle elsewhere.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 6, 2026
@codspeed

codspeed Bot commented Nov 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 582 untouched benchmarks
⏩ 32 skipped benchmarks1


Comparing gaborbernat:fix/encoding-byte-roundtrip (693369d) with main (52102d5)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat merged commit 8e875a8 into tox-dev:main Nov 6, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant