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

Simon Pieters zcorpan at hotmail.com
Mon Jan 30 01:48:39 PST 2006


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

Simon Pieters

More information about the whatwg mailing list