This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section: http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inbody Comment: Adoption Agency 6.4 and 6.5 should be re-ordered Posted from: 98.210.108.185
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.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given below Rationale: Concurred with reporter's comments.
Checked in as WHATWG revision r5163. Check-in comment: Tweak the steps to reduce the likelihood of bugs implementing the AAA. http://html5.org/tools/web-apps-tracker?from=5162&to=5163