fn disown_parent(&mut self, mc: MutationContext<'gc, '_>) {
        match &mut *self.0.write(mc) {
            XmlNodeData::DocumentRoot { .. } => {
                log::warn!("Document roots cannot have parents");
            }
            XmlNodeData::Element { parent, .. } | XmlNodeData::Text { parent, .. } => {
                *parent = None
            }
        }
    }
/// Unset the parent of this node.
Unset the parent of this node.
Unset the parent of this node .
fn disown_parent(&mut self, mc: MutationContext<'gc, '_>) {
        match &mut *self.0.write(mc) {
            XmlNodeData::DocumentRoot { .. } => {
                log::warn!("Document roots cannot have parents");
            }
            XmlNodeData::Element { parent, .. } | XmlNodeData::Text { parent, .. } => {
                *parent = None
            }
        }
    }
fn disown_parent ( & mut self , mc : MutationContext < ' gc , ' _ > ) { match & mut * self . 0 . write ( mc ) { XmlNodeData :: DocumentRoot { .. } => { log :: warn ! ( " " ) ; } XmlNodeData :: Element { parent , .. } | XmlNodeData :: Text { parent , .. } => { * parent = None } } }
Unset the parent of this node.
Unset the parent of this node .
&mut self
mc
MutationContext<'gc, '_>