Re: Prefixes and setting innerHTML in XML

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