Submenu
- Categories
- Archives
- April 2021
- August 2020
- February 2020
- January 2020
- December 2019
- November 2019
- March 2019
- January 2019
- August 2018
- July 2018
- September 2017
- June 2017
- March 2017
- February 2017
- December 2016
- November 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- January 2015
- December 2014
- November 2014
- October 2014
- August 2014
- June 2014
- May 2014
- April 2014
- March 2014
- January 2014
- December 2013
- October 2013
- September 2013
- August 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- Meta
© 2004-2024 All rights reserved | Design by www.kartoffelpfluecker.de | Blog powered by WordPress
HTML5: why is my comment a ‘bogus comment’!?
I checked the validity of an HTML5 document (using the HTML Validator extension for Firefox, which I highly recommend) and found an error about a “bogus comment”. The comment looked normal:
Then I read the HTML5 specification and found out that the bogus comment state instead of the “normal” comment state is entered if after “<!”, the parser cannot find two dashes. I remembered that I had copied the comment from the web and not typed it myself, so I deleted the –– and typed them manually. Looking closely, you can see the difference:
After that, the bogus comment error was gone.
So the reason was that the – signs were not “normal”, but some other characters for longer dashes that look similar. So whenever you see a “bogus comment”, try to type the comment tags yourself…
Hope this helps somebody.
Discussion Forum