Re: View Source

Lachlan Hunt wrote:
> Are you asking for the spec to more thoroughly define how to serialise a 
> given DOM in a way that guarantees well-formedness, even in such cases 
> where that can't be done losslessly?  There are some DOMs that can be 
> produced by text/html which simply cannot be represented in well-formed 
> XML documents, so such things would need to be modified in some way.

For what it's worth, such DOMs can also be produced via the DOM APIs, 
once namespaces are involved.  Most simply, stick an attribute with the 
local name "xmlns" and the null namespace onto an element.

-Boris

Received on Tuesday, 17 March 2009 14:59:17 UTC