Nonstandard HTML comment endings
hohMiyazawa opened this issue · comments
hohMiyazawa commented
Current Firefox and Chromium accept --!>
as endings for HTML comments.
This is nonstandard, as HTML comments should end with -->
. The standard does however disallow --!>
inside comment strings, and as such, browsers are lenient and accept it as a comment ending anyway.
HTML comments are detected with a regex here, only matching -->
:
Line 3566 in 9525598
This potentially causes a mismatch between visible and invisible page content.