W3C home > Mailing lists > Public > public-html@w3.org > February 2009

Re: Drop foster-parented stuff on the floor if parent gone

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 1 Feb 2009 08:52:32 +0000 (UTC)
To: Jonas Sicking <jonas@sicking.cc>
Cc: Henri Sivonen <hsivonen@iki.fi>, HTMLWG WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0902010848040.14270@hixie.dreamhostps.com>

On Wed, 31 Dec 2008, Jonas Sicking wrote:
> 
> An ideal algorithm would be something like this:
> 1. Find the last table in the stack of open elements.
> 2. Find the element in the stack of open elements that is right before
> the last table in the stack of open elements. (this is generally the
> parent of the table unless the DOM has been mutated)
> 3. If an element was found in both 1 and 2, and the the table found in
> 1 is a child of the element found in 2, insert the new node before the
> table found in 1 and exit the algorithm.
> 4. If an element was found in 2, append the new node to 2 and exit the
> algorithm.
> 5. Otherwise drop the node.

Ok, I've done that instead.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 1 February 2009 08:53:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:01 UTC