-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make consecutive hyphens in comments a non-error
This is experiment and may be reverted later.
- Loading branch information
1 parent
0706524
commit f0b12a2
Showing
2 changed files
with
104 additions
and
4 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
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
f0b12a2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work :-) I have not looked at the diff yet but I tested the cases in whatwg/html#1356 (comment) in https://checker.html5.org/#textarea and found the following bugs:
Handling of
--!
Gives 2 errors, should be 1 error (End of file inside comment.)
Gives 1 error, should give no errors.
Number of warnings for mappability to XML
Gives many warnings about mappability to XML. Not a regression, but seems annoying.
Has two warnings about mappability to XML. Previously only 1 warning.
Handling of EOF in the new states
No error. Should have 1 error (End of file inside comment.)
No error. Should have 1 error (End of file inside comment.)
No error. Should have 1 error (End of file inside comment.)
Handling of
<
in the new statesNo error. Should have 1 error about nested comments.
No error. Should have 1 error about nested comments.
No error. Should have 1 error about nested comments.
Handling of
-
in the comment less-than stateGives 1 error. Should have no error.
HTH
f0b12a2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both fixed.
The checker now emits only one two-consecutive-hyphens warning per comment.
Just one warning there now.
All fixed. Errors now reported as expected.
Fixed.
Thanks for all the cases and for testing.