Re: DOM-Parsing innerHTML/outerHTML and namespaces

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.

-Boris

Received on Tuesday, 11 November 2014 21:55:50 UTC