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

Re: Prefixes and setting innerHTML in XML

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 29 Aug 2008 09:55:13 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0808290954010.20254@hixie.dreamhostps.com>

On Wed, 4 Jun 2008, Simon Pieters wrote:
> Step 2 in setting innerHTML in XML says:
>    If the innerHTML attribute is being set on an element, the user agent
>    must feed the parser just created the string corresponding to the start
>    tag of that element, declaring all the namespace prefixes that are in
>    scope on that element in the DOM, as well as declaring the default
>    namespace (if any) that is in scope on that element in the DOM.
> But what does "all the namespace prefixes that are in scope on that 
> element in the DOM" actually mean? Does it mean xmlns:foo attributes (in 
> the XMLNS namespace)? Does it mean elements that have non-empty .prefix? 
> Both? What if the DOM contains namespace declarations and/or prefixes 
> that are conflicting or illegal?

I've attempted to define this in terms of DOM Core. Let me know if that 
still leaves a problem, notwithstanding problems of lack of clarity in DOM 
Core itself.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 29 August 2008 09:55:22 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:37 UTC