[Bug 10096] Adoption Agency 6.4 and 6.5 should be re-ordered

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10096


Eric Seidel <eric@webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric@webkit.org,
                   |                            |w3c@adambarth.com




--- Comment #1 from Eric Seidel <eric@webkit.org>  2010-07-06 08:12:35 ---
In implementing "active formatting element list" bookmarking for the adoption
agency algorithm.  I found that steps 6.4 and 6.5 seem to be out of order:


6.4 Otherwise, if last node is the furthest block, then move the aforementioned
bookmark to be immediately after the node in the list of active formatting
elements.

6.5 Create an element for the token for which the element node was created,
replace the entry for node in the list of active formatting elements with an
entry for the new element, replace the entry for node in the stack of open
elements with an entry for the new element, and let node be the new element.

Notice how 6.4 makes a bookmark relative to "node" and then 6.5 changes what
"node" is.  The naive implementation would cause the bookmark's anchor node to
fail to be found.  If you swap 6.4 and 6.5 the algorithm still does the same
thing, but the anchor node is already properly updated to the new element.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 6 July 2010 08:12:37 UTC