[whatwg] Still more comments and questions on Web Apps 1.0

Michel Fortin michel.fortin at michelf.com
Fri Jun 8 19:49:56 PDT 2007


Le 2007-06-08 à 21:05, Ian Hickson a écrit :

>> 8.2.2.1.
>> "Append that character to the Document node."
>>
>> Having text nodes outside the root elements is at least a bit  
>> surprising if
>> nothing else.
>
> I don't disagree. Should we just drop these spaces on the floor? It
> doesn't seem like the best thing but I guess I'm not opposed. What do
> other people think?

I'd agree they're mostly useless in a browser context, but when  
reading HTML with the intent of reserializing it later, preserving  
the whitespace around the document type declaration, the comments and  
the root element can be beneficial for the readability of the final  
output. I'd keep them there, just like XML does.


Michel Fortin
michel.fortin at michelf.com
http://www.michelf.com/





More information about the whatwg mailing list