W3C home > Mailing lists > Public > public-html@w3.org > June 2008

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

From: Simon Pieters <simonp@opera.com>
Date: Mon, 02 Jun 2008 11:16:13 +0200
To: "Cameron McCormack" <cam@mcc.id.au>, public-html@w3.org
Message-ID: <op.ub36pb0nidj3kv@zcorpandell.linkoping.osa>

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:55 UTC