Files
rust_browser/tests/goldens/expected/277-implicit-element-creation.dl.txt
Zachary D. Rowitsch d5234cf546 Implement HTML5 tree builder insertion modes with code review fixes (§13.2.6)
Refactor tree_builder.rs into module directory with 7 files implementing all
23 insertion modes per WHATWG HTML §13.2.6.4 as an explicit state machine.
Includes active formatting elements list with Noah's Ark clause, scope
checking for all 5 scope types, context-sensitive fragment parsing, and
iterative token reprocessing via ProcessResult enum.

Code review fixes: fix formatting element end tag truncation bug (save
node_id before truncate), replace manual element creation in catch-all
StartTag with insert_element_maybe_self_closing, add skip_next_newline for
pre/listing/textarea per spec, add QuirksMode to Document with basic DOCTYPE
detection, refactor all 23 handlers from Token to &Token to eliminate clone
per dispatch, fix self_closing handling for pre/listing/textarea/plaintext,
improve golden test 276 fixture coverage and foster-parent test assertion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 22:12:19 -04:00

14 lines
1.0 KiB
Plaintext

DisplayList items=12
Border rect=(8, 8, 195.23053, 52.4) widths=(1 1 1 1) colors=(#000000 #000000 #000000 #000000) styles=(solid solid solid solid)
Text rect=(15, 15, 25.703377, 16) text="Bare" color=#000000 font_size=16
Text rect=(43.75771, 15, 18.32599, 16) text="cell" color=#000000 font_size=16
Text rect=(65.13803, 15, 14.367107, 16) text="no" color=#000000 font_size=16
Text rect=(82.55947, 15, 9.09251, 16) text="tr" color=#000000 font_size=16
Text rect=(101.65198, 15, 44.851685, 16) text="Another" color=#000000 font_size=16
Text rect=(149.558, 15, 25.292217, 16) text="bare" color=#000000 font_size=16
Text rect=(101.65198, 34.2, 18.32599, 16) text="cell" color=#000000 font_size=16
Text rect=(8, 78, 58.29075, 16) text="Paragraph" color=#000000 font_size=16
Text rect=(69.34508, 78, 26.349485, 16) text="after" color=#000000 font_size=16
Text rect=(98.74889, 78, 40.211456, 16) text="implicit" color=#000000 font_size=16
Text rect=(142.0147, 78, 45.34508, 16) text="creation" color=#000000 font_size=16