Closed Bug 309866 Opened 19 years ago Closed 19 years ago

createNodeIterator method doesn't work in ECMA scripts

Categories

(Firefox :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 132824

People

(Reporter: vert_en_ciel, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

I reproduce a quick and simple html doc with the buggy javascript embedded:

<html>
<body>

<H2>Where is my Node Iterator ?</H2>

<script type="text/javascript">
function f()
{
 return 0;
}

/* The following throws the exception: NS_ERROR_NOT_IMPLEMENTED */

document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, f, false); 

/* Though, the following works fine: */

document.createTreeWalker(document.body, NodeFilter.SHOW_ALL, f, false); 

</script>

</body>
</html>

Reproducible: Always
See bug 132824.

*** This bug has been marked as a duplicate of 132824 ***
Severity: normal → enhancement
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Hardware: PC → All
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.