Re: [whatwg] Question on Limits in Adaption Agency Algorithm

On Sat, 3 Nov 2012, Yasuhiko Minamide wrote:
> 
> This is about Adaption Agency Algorithm in 12.2.5.4.7 The "in body" 
> insertion mode.
> 
> Limits of loops in the adoption agency algorithm were introduced in 
> http://html5.org/tools/web-apps-tracker?from=5641&to=5642. However, the 
> limit for the inner loop introduces an unexpected behaviour for the 
> following fragment of an HTML document.
> 
> <b><i><a><s><tt><div></b>abc</b></div></tt></s></a>xyz</i>
> 
> This document is parsed into the following DOM tree.
> 
> <b>
>   <i>
>     <a>
>       <s>
>         <tt></tt>
>       </s>
>     </a>
>     "xyz"
>   </i>
> </b>
> <a>
>   <s>
>     <tt>
>       <div>
>         <b></b>
>         "abc"
>       </div>
>     </tt>
>   </s>
> </a>    
> 
> "xyz" is inserted as a child of <i> and the order between "abc" and 
> "xyz" is reversed in the tree. We would like to know whether this is an 
> intended behaviour of the specification.

Yeah that's definitely not intentional.

Does anyone have any preference for how this is fixed?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 8 December 2012 21:05:52 UTC