FIXED: library(sgml): load_html/3 and load_xml/3 now both work again.
This addresses
@@ -6003,7 +6003,7 @@ pub(super) fn xml_node_to_term(&mut self, node: roxmltree::Node) -> HeapCellValu
let tag = self.machine_st.atom_tbl.build_with(node.tag_name().name());
- let result = heap_loc_as_cell!(self.machine_st.heap.len());
+ let result = str_loc_as_cell!(self.machine_st.heap.len());
self.machine_st.heap.push(atom_as_cell!(atom!("element"), 3));
self.machine_st.heap.push(atom_as_cell!(tag));
@@ -6056,7 +6056,7 @@ pub(super) fn html_node_to_term(&mut self, node: select::node::Node) -> HeapCell
);
let tag = self.machine_st.atom_tbl.build_with(name);
- let result = heap_loc_as_cell!(self.machine_st.heap.len());
+ let result = str_loc_as_cell!(self.machine_st.heap.len());
self.machine_st.heap.push(atom_as_cell!(atom!("element"), 3));
self.machine_st.heap.push(atom_as_cell!(tag));
