// We do not need to remove the node from the parent's children list for children.
We do not need to remove the node from the parent's children list for children.
We do not need to remove the node from the parent ' s children list for children .
fn inner<S: State>(dom: &mut RealDom<S>, id: usize) -> Option<Node<S>> {
            let mut node = dom.nodes[id as usize].take()?;
            if let NodeType::Element { children, .. } = &mut node.node_type {
                for c in children {
                    inner(dom, c.0)?;
                }
            }
            Some(node)
        }
fn inner < S : State > ( dom : & mut RealDom < S > , id : usize ) -> Option < Node < S > > { let mut node = dom . nodes [ id as usize ] . take ( ) ? ; if let NodeType :: Element { children , .. } = & mut node . node_type { for c in children { inner ( dom , c . 0 ) ? ; } } Some ( node ) }
We do not need to remove the node from the parent's children list for children.
We do not need to remove the node from the parent ' s children list for children .
dom
&mut RealDom<S>
id
usize