Re: DOM-Parsing innerHTML/outerHTML and namespaces

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.