dom: add NamedNodeMap implementation

and create Attr type
This commit is contained in:
Pierre Tachoire
2023-12-02 10:54:12 +01:00
parent dcb095d9df
commit ad5c6236a7
7 changed files with 244 additions and 0 deletions

15
src/dom/attribute.zig Normal file
View File

@@ -0,0 +1,15 @@
const std = @import("std");
const parser = @import("../netsurf.zig");
const Node = @import("node.zig").Node;
const DOMException = @import("exceptions.zig").DOMException;
// WEB IDL https://dom.spec.whatwg.org/#attr
pub const Attr = struct {
pub const Self = parser.Attribute;
pub const prototype = *Node;
pub const mem_guarantied = true;
pub const Exception = DOMException;
};