This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16426 - Non-existent reference to a 'child' in the pre-remove algorithm
Summary: Non-existent reference to a 'child' in the pre-remove algorithm
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Ms2ger
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-19 05:17 UTC by manish.tripathi.777
Modified: 2012-03-19 09:18 UTC (History)
3 users (show)

See Also:


Attachments

Description manish.tripathi.777 2012-03-19 05:17:59 UTC
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-pre-remove

Either all instances of the word 'child' in items 1,2,3 should be replaced by the word 'node', or the word 'node' should be replaced by the word 'child' in the title of the algorithm. 

As it stands now, the algorithm announces that it takes a 'node' as an input, but later references it as a 'child' (shown in the extract below by embedding the respective words in ****):

=======================================================
To pre-remove a **node** from a parent, run these steps:
    1. If **child's** parent is not parent, throw a "NotFoundError" exception and terminate these steps.
    2. Remove **child** from parent.
    3. Return **child**. 
=======================================================