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.
1 parent 66ec087 commit 42bc80eCopy full SHA for 42bc80e
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