From 90a82c949bd6d3c1c141ecbc43aaf3ecf8a2510c Mon Sep 17 00:00:00 2001 From: Yarchik Date: Wed, 8 Jul 2026 18:00:01 +0100 Subject: [PATCH] fix: stop appending a stray '<' to unterminated block-text elements When a block-text element (script, style, pre, ...) has no closing tag, the text-end position fell back to dataEndPos, which subtracted the length of the *opening* frame-flag wrapper (frameflag.length + 2) rather than the *closing* one (frameflag.length + 3). The resulting off-by-one included the leading '<' of the internal sentinel, so parsing ''); + }); + it('does not append a stray "<" to an unclosed