-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make dashes in comments no longer be parse errors
The spec disallowed dashes in comments in order to have conformance checkers point out the problem for pre-2006 Firefox that implemented SGML-style comment parsing, and to match the syntax requirements in HTML4 and XML. These are no longer relevant and instead people are getting unhelpful error messages when validating for markup like: </div><!-- end .foo-bar--baz --> * A comment that ends with a dash is now allowed: <!-- ---> * A comment that contains -- is also allowed: <!-- -- --> * A comment that contains --! is also allowed: <!-- --! --> * The following are still parse errors: <!-->, <!--->, <!-- --!> Fixes #1351. Also remove obsolete comments in the spec's source about rewinding when hitting EOF (see #1058).
- Loading branch information
Showing
1 changed file
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters