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

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

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Sun, 1 Jun 2008 09:56:27 +0100
Cc: public-html@w3.org
Message-Id: <B0477FF1-ECC0-40B4-B7E7-71123D6AEC82@googlemail.com>
To: Cameron McCormack <cam@mcc.id.au>


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

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