[thelist] TIP: Firefox and the double dash

Mark Groen evolt at markgroen.com
Thu Nov 2 18:08:21 CST 2006


> Not sure if this is a bug or a feature but Firefox has issues with 
> double dashes with HTML Comment Tags.

> For example, a properly formatted HTML Comment should look lke this
>(using square brackets instead of angle brackets):

> [!-- This is a valid comment --]

> However, when you have a double dash within the comment, not at
> the end, Firefox freaks out and will make the comment "extend 
> beyond the area it should.

> [!-- This is not -- a valid comment --]

It's the feature called adhering to valid markup, the double hyphen is
invalid HTML, more here:

http://developer.mozilla.org/en/docs/The_Importance_of_Correct_HTML_Commenting
-- 
cheers,

        Mark




More information about the thelist mailing list