Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

< is highlighted as error in quoted value #122

Open
aeschli opened this issue Nov 25, 2022 · 0 comments
Open

< is highlighted as error in quoted value #122

aeschli opened this issue Nov 25, 2022 · 0 comments

Comments

@aeschli
Copy link
Contributor

aeschli commented Nov 25, 2022

From microsoft/vscode#160143

< is highlighted as an error.

Reading https://dev.w3.org/html5/spec-LC/syntax.html#attributes-0 I don't think < in a quoted attribute value is a problem:

Attribute values are a mixture of text and character references, except with the additional restriction that the text cannot contain an ambiguous ampersand.

Single-quoted attribute value syntax
The attribute name, ... followed by the attribute value, which, in addition to the requirements given above for attribute values, must not contain any literal U+0027 APOSTROPHE characters ('), and finally followed by a second single U+0027 APOSTROPHE character (').

Double-quoted attribute value syntax
The attribute name, ... followed by the attribute value, which, in addition to the requirements given above for attribute values, must not contain any literal U+0022 QUOTATION MARK characters ("), and finally followed by a second single U+0022 QUOTATION MARK character (").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant