pub fn deinit(doc: *Document, allocator: Allocator) void
pub fn deinit(doc: *Document, allocator: Allocator) void { doc.nodes.deinit(allocator); allocator.free(doc.extra); allocator.free(doc.string_bytes); doc.* = undefined; }