Closed Bug 117342 Opened 24 years ago Closed 24 years ago

deep parameter for cloneNode is mandatory

Categories

(Documentation Graveyard :: Web Developer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nri_31, Assigned: oeschger)

References

()

Details

documentation on cloneNode uses []'s for parameter 'deep', so making it not mandatory parameter. []'s should be removed, according to w3c spec.
True, although ECMAScript has rules for filling in omitted parameters and rules for type conversion that might lead to a de-facto default (probably false) existing.
Even in ECMAScript all arguments defined in the DOM spec need to be passed in, at least in mozilla, and there's been discussion in the DOM WG about certain cases where it would make sense to default some arguments, but so far it's always been decided that the arguments do need to be passed in, in all cases.
Reassigning to Ian then so that he can remove the [] around the boolean, since it's required in Mozilla.
Assignee: rudman → oeschger
Accepting. Fixed this in the docs. It'll be in the next rev of the domref, some time in the next couple of days.
Status: NEW → ASSIGNED
Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.