[whatwg] Serialize comments that contain "-->"

Hi,

What should happen with comments that contain "-->" when you serialize the 
DOM into HTML? When serializing into XML it should result in a fatal error 
according to DOM3Core[1], but I guess that is not really desired for HTML. 
Should the comment be dropped? Should the serializer insert a space in 
between ("- ->")?

[1] http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1728279322

Regards,
Simon Pieters

Received on Monday, 30 January 2006 01:48:39 UTC