Update node::remove comments to reflect standard

This commit is contained in:
Jonathan Schuster 2016-02-03 20:37:01 -05:00
parent 80e55c7ce4
commit 983e76af87

View file

@ -1551,12 +1551,16 @@ impl Node {
Some(index)
}
};
// Step 6.
// Step 6. pre-removing steps for node iterators
// Step 7.
let old_previous_sibling = node.GetPreviousSibling();
// Steps 7-8: mutation observers.
// Step 9.
// Step 8.
let old_next_sibling = node.GetNextSibling();
// Step 9.
parent.remove_child(node, cached_index);
// Step 10. removing steps (https://dom.spec.whatwg.org/#concept-node-remove-ext)
// Step 11. transient registered observers
// Step 12.
if let SuppressObserver::Unsuppressed = suppress_observers {
vtable_for(&parent).children_changed(
&ChildrenMutation::replace(old_previous_sibling.r(),