From fdabc95c25639864852f00f4f6205125cb3a145d Mon Sep 17 00:00:00 2001 From: LuLaValva Date: Sat, 15 Aug 2026 08:07:38 -0700 Subject: [PATCH] feat: report an html comment inside an open tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A ` id="b">` parsed as `class=("a" < !--note)` plus two junk attributes with no error at all. ` id="b">` reports the comment rather than silently parsing as `class=("a" < !--note)` plus two junk attributes. diff --git a/src/__tests__/fixtures/attr-value-html-comment-in-regex/__snapshots__/attr-value-html-comment-in-regex.expected.txt b/src/__tests__/fixtures/attr-value-html-comment-in-regex/__snapshots__/attr-value-html-comment-in-regex.expected.txt new file mode 100644 index 00000000..2a977d45 --- /dev/null +++ b/src/__tests__/fixtures/attr-value-html-comment-in-regex/__snapshots__/attr-value-html-comment-in-regex.expected.txt @@ -0,0 +1,10 @@ +1╭─