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

On Sun, 01 Jun 2008 08:17:33 +0200, Cameron McCormack <cam@mcc.id.au>  
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.

I don't think it's possible to get a prefix that contains a colon, but  
localName is trivial:

    document.body.appendChild(document.createElement('foo:bar'));

-- 
Simon Pieters
Opera Software

Received on Monday, 2 June 2008 09:17:11 UTC