dom: implement Attr interface

This commit is contained in:
Pierre Tachoire
2024-01-03 14:20:42 +01:00
parent 18901ea72b
commit 152014fe16
4 changed files with 126 additions and 0 deletions

View File

@@ -127,6 +127,10 @@ pub const Element = struct {
return true;
}
pub fn _getAttributeNode(self: *parser.Element, name: []const u8) !?*parser.Attribute {
return try parser.elementGetAttributeNode(self, name);
}
pub fn _getElementsByTagName(
self: *parser.Element,
alloc: std.mem.Allocator,