W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] "adjusted current node" in

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 1 Jul 2013 23:36:36 +0000 (UTC)
To: Michael Day <mikeday@yeslogic.com>
Message-ID: <Pine.LNX.4.64.1307012327440.11139@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Tue, 16 Apr 2013, Michael Day wrote:
> Recently the spec has been changed to introduce the concept of the 
> adjusted current node defined in "The stack of open elements".
> The intention seems to be to handle the case of setting innerHTML on a 
> MathML or SVG element, and hence triggering the fragment parsing 
> algorithm in a foreign content context. Since the <math> or <svg> 
> element will not be in the stack of open elements, this would otherwise 
> cause problems with child elements not in the right namespace, and CDATA 
> sections not being parsed properly.
> However, "The rules for parsing tokens in foreign content" 
> still only refers to the current node, not the adjusted current node.
> For example, the rules for parsing "Any other start tag":
> > If the current node is an element in the MathML namespace, adjust 
> > MathML attributes for the token.
> Since the current node in the fragment parsing case is still <html>, 
> this will not have the desired effect.
> Should this section be changed to refer to the adjusted current node?

Yep. I hadn't thought of those problems. Fixed.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 1 July 2013 23:36:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC