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

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/

Received on Friday, 8 June 2007 19:49:56 UTC