mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
Add can_run_out_of_characters() and use it in the NamedCharacterReference state and consume_next_if_match() so that an open input stream gets the same code-point-at-a-time treatment as an active document.write insertion point. Without this, a network chunk that ends partway through a named character reference or a multi-character match would make the tokenizer commit to a "no match" decision before the remaining bytes arrive. No behavior change for existing callers: the new helper still returns false once the input stream is closed (which the StringView constructor sets immediately).
119 KiB
119 KiB