Re: When can a node's prefix or localName contain a colon?

On 1 Jun 2008, at 07:17, Cameron McCormack wrote:

> One of the cases that innerHTML on XML documents is meant to throw an
> INVALID_STATE_ERR on is when a node has a prefix or local name that
> contains a colon.  I’m having trouble finding how to create a such a
> node, though.  Is it by assigning a non-namespace-well-formed string
> to innerHTML in an XML document (since it mentions well-formedness but
> not namespace-well-formedness there)?

Well, at a basic level, error handling of what can't be in the DOM is  
undefined when Document.strictErrorHandling = False, meaning that  
theoretically (I don't know if any browser allows it) when that is the  
case, you could perfectly easily insert a colon.


--
Geoffrey Sneddon
<http://gsnedders.com/>

Received on Sunday, 1 June 2008 08:57:07 UTC