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

[whatwg] [WA1] Missing step in formatting element algorithm

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 22 Jul 2006 01:17:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0607220100000.4826@dhalsim.dreamhost.com>
On Fri, 21 Jul 2006, Stewart Brodie wrote:
> 
> The algorithm attempts to insert nodes that already have a parent node into
> another node.

Hm. Yes, indeed, it was wrong.

I've removed the attempt at handling the case where an author moves the 
nodes around while the parser is attempting to parse them. Now, in such 
cases, the nodes will just reappear in the DOM. Since IE refuses to even 
parse such pages, I figure that's good enough.

Anyway, I've tried to fix the spec. Let me know if you don't think I fixed 
it enough.


> Also, what is "nearest block" for?  It's not used anywhere.  It looks like
> it could be a remnant of an earlier version of the algorithm that didn't
> have a step 14 that looped the whole algorithm, perhaps?

Yeah, exactly. Fixed.

Good catches. Thanks!

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 21 July 2006 18:17:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:47 UTC