Skip to content

Unterminated comments are no longer an error in css-syntax-3 #229

Closed
@dd8

Description

@dd8

The change is documented here https://www.w3.org/TR/css-syntax-3/#changes-css21

Tokenization does not emit COMMENT or BAD_COMMENT tokens anymore.
BAD_COMMENT is now considered the same as a normal token (not an error).

And the parsing algorithm says /* can be terminated by */ or EOF
https://www.w3.org/TR/css-syntax-3/#consume-a-token

So this test case should not generate errors in a CSS validator:
http://test.csswg.org/suites/css21_dev/20110323/html4/comments-003.htm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions