From d17bbd3fe648b62d40bd23c818e438884e37bf27 Mon Sep 17 00:00:00 2001 From: Felix <188768+fb55@users.noreply.github.com> Date: Thu, 19 Mar 2026 21:20:24 +0000 Subject: [PATCH 1/6] fix: align HTML parsing with the spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tokenizer: - Treat "), + ).toMatchSnapshot(); + }); + it("for div inside noembed tag", () => { + expect( + tokenize("&amp;<div></div>"), + ).toMatchSnapshot(); + }); + it("for div inside noframes tag", () => { + expect( + tokenize("&amp;<div></div>"), + ).toMatchSnapshot(); + }); + }); + describe("should close special tags on end tags ending with />", () => { it("for script tag", () => { expect(tokenize("")).toMatchSnapshot(); @@ -128,6 +161,13 @@ describe("Tokenizer", () => { it("for self-closing special tag", () => { expect(tokenize("