dom: implement document.createAttributeNS

This commit is contained in:
Pierre Tachoire
2023-12-07 17:42:15 +01:00
parent f0149b03e5
commit b0c6948848
2 changed files with 16 additions and 0 deletions

View File

@@ -157,6 +157,10 @@ pub const Document = struct {
return try parser.documentCreateAttribute(self, name);
}
pub fn _createAttributeNS(self: *parser.Document, ns: []const u8, qname: []const u8) !*parser.Attribute {
return try parser.documentCreateAttributeNS(self, ns, qname);
}
pub fn deinit(_: *parser.Document, _: std.mem.Allocator) void {}
};