Closed Bug 111646 Opened 23 years ago Closed 23 years ago

replaceChild() bug

Categories

(Documentation Graveyard :: Web Developer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: romayankin, Assigned: oeschger)

References

()

Details

Dear Netscape team,
Your Gecko DOM reference says that "replaceChild() method replaces one child 
node on the current element with another" and the exaple says that first 
argument "oldChild" i.e replaced element must be followed by "newChild" while 
the W3C DOM reference provides vice versa example: "newChild" must be followed 
by "oldChild" moreover the example doesn't work in
Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0 
Best regards, Roman Yankin, romayankin@mail.ru
reassigning to Fabian.  The DOM reference is just wrong (the implementation
follows the W3C spec).

And yes, that example would not really work...  :)
Assignee: jst → hidday
Status: UNCONFIRMED → NEW
Component: DOM Core → Web Developer
Ever confirmed: true
OS: Windows 98 → All
Product: Browser → Documentation
Hardware: PC → All
Version: other → unspecified
->oeschger
Ian, I thought we had already fixed this example before? Or was it the one for
HTML elements?
Assignee: hidday → oeschger
ACCEPTING. I'll have this updated today.
Status: NEW → ASSIGNED
FIXED this param mix-up in the domref. Thanks for spotting and reporting this, Roman
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.