Closed
Bug 1319410
Opened 8 years ago
Closed 3 years ago
View source: don't error-highlight comments with dashes
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
93 Branch
People
(Reporter: zcorpan, Assigned: hsivonen)
References
Details
Attachments
(3 files)
See https://twitter.com/FakeUnicode/status/800808929554857984 There should be no red. :-) This was changed in WHATWG HTML some time ago and implemented by Mike Smith in the Validator.nu HTML parser: https://github.com/whatwg/html/issues/1351 https://github.com/validator/validator/commit/8c02230f0d9cc2d67015d5a7a6807843a0512704 https://github.com/validator/validator/commit/0c326a3a43cde16443aafa127078a836adf9e3a7 https://github.com/validator/validator/commit/3f553406c97d3c6cd4392a029c6d8b822c5e2ec1 https://github.com/validator/validator/commit/cd2aaa74e07c0fdbea9b5f1483568428eef578ad https://github.com/validator/validator/commit/fd36bc6dd44902bc57228cbb0810cf40563f09b3 https://github.com/whatwg/html/pull/1356#issuecomment-222793570 has test cases.
Assignee | ||
Comment 2•8 years ago
|
||
I'll take a look. Keeping myself needinfoed to keep this visible.
Assignee: nobody → hsivonen
Reporter | ||
Comment 3•8 years ago
|
||
Also https://github.com/validator/htmlparser/commit/520065e5f59872c91cce8f1dac5ef039f550fe0f
Assignee | ||
Updated•6 years ago
|
Assignee: hsivonen → nobody
Assignee | ||
Comment 5•4 years ago
|
||
Also allow <!-->
at (IE conditional) comment end
See https://github.com/whatwg/html/pull/1356
See https://github.com/whatwg/html/pull/1456
Assignee | ||
Comment 6•4 years ago
|
||
The patch needs to be refreshed with the results of https://github.com/validator/htmlparser/pull/18 before landing.
Flags: needinfo?(hsivonen)
See Also: → https://github.com/validator/htmlparser/pull/18
Assignee | ||
Comment 7•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•3 years ago
|
||
Assignee | ||
Comment 9•3 years ago
|
||
Comment 10•3 years ago
|
||
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b33e3f54b58 Make consecutive hyphens in comments a non-error r=smaug https://hg.mozilla.org/integration/autoland/rev/0b241b7f07e9 fixup - Stay in the COMMENT_LESSTHAN state, annotate fall-throughs. r=smaug https://hg.mozilla.org/integration/autoland/rev/d75852f907a6 test - "--" in a comment is non-error but "<!--" in a comment is an error. r=smaug
Comment 11•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5b33e3f54b58
https://hg.mozilla.org/mozilla-central/rev/0b241b7f07e9
https://hg.mozilla.org/mozilla-central/rev/d75852f907a6
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox93:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Updated•3 years ago
|
Assignee | ||
Comment 12•3 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•