[Webkit-unassigned] [Bug 9467] TreeWalker/NodeIterator do not restrict the traversal

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Jun 22 08:18:44 PDT 2006


Graham.Dennis at gmail.com changed:

           What    |Removed                     |Added
         AssignedTo|webkit-                     |Graham.Dennis at gmail.com
                   |unassigned at opendarwin.org   |
             Status|NEW                         |ASSIGNED
   Attachment #8966|                            |review?
               Flag|                            |

------- Comment #2 from Graham.Dennis at gmail.com  2006-06-22 08:18 PDT -------
Created an attachment (id=8966)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=8966&action=view)

This patch fixes the problem. However, it does not pass the traversal layout
tests (it passes all other tests), but I believe that this is in fact a bug in
the other traversal layout tests. This is most definitely the case for the
TreeWalker layout tests, as they set the root element to be (e.g. <span
id="A">) and then expect the TreeWalker to reach a sibling span (e.g. <span
id="B">). In the NodeIterator case, it is not immediately clear to me whether
or not the 'root' node specified in the interator is simply a starting point,
or a root node that should not be left. The w3c Recommendation for the DOM
level 2 traversal interface says:
"Iterators are used to step through a set of nodes, e.g. the set of nodes in a
NodeList, the document subtree governed by a particular Node..."
Because of this I am inclined to believe that the root node is not to be exited
for a NodeIterator as well. However, it does still sound a bit ambiguous to me.

I have not modified the other traversal testcases in this patch (as I am not
certain that they are in fact wrong).

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list