Re: Prefixes and serializing XML

On Wed, 29 Apr 2009, Simon Pieters wrote:
>
> The spec says:
> 
> "User agents may adjust prefixes and namespace declarations in the 
> serialization (and indeed might be forced to do so in some cases to 
> obtain namespace-well-formed XML)."
> 
> "If any of the following error cases are found in the DOM subtree being 
> serialized, then the algorithm raises an INVALID_STATE_ERR exception 
> instead of returning a string:"
> 
> "A node with a prefix or local name containing a U+003A COLON (":")."

Fair enough.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 29 April 2009 22:13:43 UTC