pub fn into_dom(document: String) -> Result<(), HxmlError>
It’s global. You can’t handle multiple doms at once. It frees all the elements created before.