Re: DOM-Parsing innerHTML/outerHTML and namespaces

On Tue, 11 Nov 2014 22:55:20 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 11/11/14, 4:22 PM, Simon Pieters wrote:
>> "The adjusted current node is the context element if the stack of open
>> elements has only one element in it and the parser was created by the
>> HTML fragment parsing algorithm; otherwise, the adjusted current node is
>> the current node."
>
> Oh.  That's .... very action-at-a-distance.  :(  It would be nicer if  
> the context element were somehow stored on the parser at least...
>
> It's also slightly confusing in that it talks about stack of open  
> elements length being 1... but then doesn't use that one element on the  
> stack as the context element.

Filed https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314

-- 
Simon Pieters
Opera Software

Received on Wednesday, 12 November 2014 13:32:22 UTC