You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Empty id and class tags can be removed. (H026) is generated if there's a space between id or class and the = sign.
A space before the attribute value has no effect. The spec says "zero or more spaces" between the attribute and the = sign. The only restriction after the = is for unquoted values which may not contain a space e.g. <div id=foo> vs <div id= foo> where the second is invalid as it attempts to have a space within the id's value.
<divid="foo"></div><!-- no space, no error --><divid ="foo"></div><!-- space before '=', error -->
How To Reproduce
Put the code above somewhere, run djlint on it.
Contents of .djlintrc/pyproject.toml [tool.djlint]
none
The text was updated successfully, but these errors were encountered:
System Info
Issue
Empty id and class tags can be removed. (H026)
is generated if there's a space betweenid
orclass
and the=
sign.A space before the attribute value has no effect. The spec says "zero or more spaces" between the attribute and the
=
sign. The only restriction after the=
is for unquoted values which may not contain a space e.g.<div id=foo>
vs<div id= foo
> where the second is invalid as it attempts to have a space within the id's value.How To Reproduce
Put the code above somewhere, run djlint on it.
Contents of .djlintrc/pyproject.toml [tool.djlint]
none
The text was updated successfully, but these errors were encountered: