File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,19 @@ const parser = @import("../netsurf.zig");
2020
2121const CharacterData = @import ("character_data.zig" ).CharacterData ;
2222
23+ // https://dom.spec.whatwg.org/#interface-comment
2324pub const Comment = struct {
2425 pub const Self = parser .Comment ;
2526 pub const prototype = * CharacterData ;
2627 pub const mem_guarantied = true ;
28+
29+ // TODO add constructor, but I need to associate the new Comment
30+ // with the current document global object...
31+ // > The new Comment(data) constructor steps are to set this’s data to data
32+ // > and this’s node document to current global object’s associated
33+ // > Document.
34+ // https://dom.spec.whatwg.org/#dom-comment-comment
35+ pub fn constructor () ! * parser.Comment {
36+ return error .NotImplemented ;
37+ }
2738};
You can’t perform that action at this time.
0 commit comments