Re: Problem with implementation of getChildNodes on HTMLFormElement?
Petr Stehlik <[email protected]> Sat, 13 Sep 2003 13:39:49 +0200
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
V Pá, 12. 09. 2003 v 21:11, Jacob Kjome píše: > >I experienced something similar with a function that traverses the DOM > >and returns all nodes that have class with a given name: > Any testcases that reproduce this issue are welcome. please see the attachment. Don't be surprised that it's almost the same code as the previous testcase - I started from those files but put there my own HTML file. After striping the unrelated tags and simplifying the java code I got only few remaining lines that clearly exhibit the problem. > Was it an HTMLFormElement which is the issue with the current reported bug? Yes. It's clear now - the HTMLFormElment does return 0 child nodes until getFirstChild() is called on it. Hope it helps. Petr
formtest.tar.gz
(application/x-compressed-tar, 7.1 KB) - not displayed