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
{{ message }}
Repository navigation
html grammar should allow space characters (including line feed) before the > in end tags #97
The space characters, for the purposes of this specification, are U+0020 SPACE, U+0009 CHARACTER TABULATION (tab), U+000A LINE FEED (LF), U+000C FORM FEED (FF), and U+000D CARRIAGE RETURN (CR).
You mentioned that you're using an extension to provide formatting: the build in VS Code html formatting fixed those strange end tags for me. Based on the spec you linked they're allowed, they just aren't what I expected to see.
changed the title [-]syntax highlighting is white and incorrect for html[/-][+]html grammar should allow space characters (including line feed) before the > in end tags[/+]on Dec 10, 2018
Activity
alexr00 commentedon Dec 10, 2018
The html grammar we use doesn't handle the greater than symbol being on the next line like this:
Is this something that you expect to be ok? It isn't a standard way of formatting html as far as I know.
alexr00 commentedon Dec 10, 2018
From @joshunger on December 10, 2018 12:27
I was wondering that too.
It seems to validate at https://validator.w3.org/.
Is this the correct spec? See https://www.w3.org/TR/html5/syntax.html#end-tags
And https://www.w3.org/TR/html5/infrastructure.html#space-characters says -
🤔
What does Code use for html syntax?
alexr00 commentedon Dec 10, 2018
The html formatter is here, but I don't know all the details. The html grammar we use for syntax highlighting is here: https://github.com/textmate/html.tmbundle.
You mentioned that you're using an extension to provide formatting: the build in VS Code html formatting fixed those strange end tags for me. Based on the spec you linked they're allowed, they just aren't what I expected to see.
Since the issue is with the grammar, I can forward this issue to https://github.com/textmate/html.tmbundle.
[-]syntax highlighting is white and incorrect for html[/-][+]html grammar should allow space characters (including line feed) before the > in end tags[/+]