Internet Explorer complains about the two dashes in the url inside of a comment:
<!--
<iframe src="/file.php?var=AQJ--dsf"></iframe>
-->
HTML1416: Unexpected character in comment end. Expected "-->".
How do I get rid of this ridiculous error message?
From the HTML 5 specification:
Comments must start with the four character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (
<!--
). Following this sequence, the comment may have text, with the additional restriction that the text must not start with a single ">
" (U+003E) character, nor start with a U+002D HYPHEN-MINUS character (-) followed by a ">
" (U+003E) character, nor contain two consecutive U+002D HYPHEN-MINUS characters (--
), nor end with a U+002D HYPHEN-MINUS character (-
). Finally, the comment must be ended by the three character sequence U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN (-->
).
To get rid of the error message. Stop making the error. Rewrite the part of the code with --
inside the comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With