mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
22 lines
772 B
Zig
22 lines
772 B
Zig
const std = @import("std");
|
||
|
||
const parser = @import("../netsurf.zig");
|
||
|
||
const Node = @import("node.zig").Node;
|
||
|
||
// WEB IDL https://dom.spec.whatwg.org/#documentfragment
|
||
pub const DocumentFragment = struct {
|
||
pub const Self = parser.DocumentFragment;
|
||
pub const prototype = *Node;
|
||
pub const mem_guarantied = true;
|
||
|
||
// TODO add constructor, but I need to associate the new DocumentFragment
|
||
// with the current document global object...
|
||
// > The new DocumentFragment() constructor steps are to set this’s node
|
||
// > document to current global object’s associated Document.
|
||
// https://dom.spec.whatwg.org/#dom-documentfragment-documentfragment
|
||
pub fn constructor() !*parser.DocumentFragment {
|
||
return error.NotImplemented;
|
||
}
|
||
};
|