We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b7c17a + 42bc80e commit 0a29e9bCopy full SHA for 0a29e9b
src/browser/dom/namednodemap.zig
@@ -70,6 +70,13 @@ pub const NamedNodeMap = struct {
70
) !*parser.Attribute {
71
return try parser.namedNodeMapRemoveNamedItemNS(self, namespace, localname);
72
}
73
+
74
+ pub fn indexed_get(self: *parser.NamedNodeMap, index: u32, has_value: *bool) !*parser.Attribute {
75
+ return (try NamedNodeMap._item(self, index)) orelse {
76
+ has_value.* = false;
77
+ return undefined;
78
+ };
79
+ }
80
};
81
82
// Tests
0 commit comments