lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

Parsing issue with a binding inside a bare <colgroup>

Open rictic opened this issue 7 months ago • 2 comments

Writing this code:

  html` <colgroup> ${''} </colgroup> `

Yields an error of:

example-widget.ts:30:19 - error TS2322: false, This tag isn't closed.

30     return html` <colgroup> ${''} </colgroup> `;
                     ~~~~~~~~

Adding a tag before the colgroup resolves the issue, as does removing the binding. Maybe related to some of the weird parser rules around a <colgroup>, e.g. that it must live inside a <table> and it must not contain most normal content.

rictic avatar May 19 '25 17:05 rictic