minor bug in DOM Level 2 Traversal spec

In section 1.1.3 of the DOM Level 2 Traversal spec., the first block of
code includes these expressiosn:

     Node child = n.firstChild()
     child.nextSibling()

Since this appears to be Java code, I believe they should read:

     Node child = n.getFirstChild()
     child.getNextSibling()

Or, in JavaScript, they should be

     var child = n.firstChild
     child.nextSibling

     David Flanagan

Received on Thursday, 16 August 2001 18:31:04 UTC