templ errors if HTML attributes aren't quoted #963
Labels
enhancement
New feature or request
NeedsDecision
Issue needs some more discussion so a decision can be made
parser
Describe the bug
If I try run
templ
on this file:I get this error:
Seems related to #116 / #125.
Expected behavior
<div id=main></div>
is valid HTML (this post discusses how unquoted attributed values are valid), so I expectedtempl
to compile it even if it's a little unusual.That said I noticed that the Elements documentation page documents ways in which templ diverges from HTML ("Unlike HTML, templ requires that all HTML elements are closed..."), so if this is intentional it might be good to document it.
templ info
outputDesktop (please complete the following information):
gopls
version: v0.8.4The text was updated successfully, but these errors were encountered: