diff --git a/agent-feedback/items/2026-08-20-report-comments-inside-an-open-tag.md b/agent-feedback/items/2026-08-20-report-comments-inside-an-open-tag.md new file mode 100644 index 0000000..a69ba0e --- /dev/null +++ b/agent-feedback/items/2026-08-20-report-comments-inside-an-open-tag.md @@ -0,0 +1,12 @@ +--- +type: bug +impact: med +effort: low +site: src/states/OPEN_TAG.ts › OPEN_TAG +--- + +# Report the JavaScript comments that sit between attributes in an open tag + +`OPEN_TAG.parse` enters `STATE.JS_COMMENT_LINE`/`STATE.JS_COMMENT_BLOCK` for a `//` or `/*` inside an open tag, but `OPEN_TAG.return` bails on every child that is not `STATE.EXPRESSION`, so the comment is consumed and `onComment` never fires. A comment trailing an attribute value survives because `EXPRESSION` folds it into the value range, which is what `src/__tests__/fixtures/comments-within-open-tag` records; a comment that stands on its own is unreportable, so `