W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Missing exception in treeWalker

From: Jonas Sicking <sicking@bigfoot.com>
Date: Sun, 20 May 2001 15:12:48 +0200
Message-ID: <00a301c0e12e$9170ae00$d1ee42d5@kermit>
To: <www-dom@w3.org>
While implementing DOM2 traversal I think I've found a missing exception in
the treeWalker interface. When setting the currentNode shouldn't a
WRONG_DOCUMENT_ERR be raised if currentNode is set to a node in another
document.

Otherwise a treeWalker could be created in one document and then used to
walk another document that has a compleatly different implementation.

/ Jonas Sicking
Received on Sunday, 20 May 2001 09:09:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT