File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,6 @@ pub const Comment = struct {
3333 pub const prototype = * CharacterData ;
3434 pub const mem_guarantied = true ;
3535
36- // TODO add constructor, but I need to associate the new Comment
37- // with the current document global object...
38- // > The new Comment(data) constructor steps are to set this’s data to data
39- // > and this’s node document to current global object’s associated
40- // > Document.
41- // https://dom.spec.whatwg.org/#dom-comment-comment
4236 pub fn constructor (userctx : UserContext , data : ? []const u8 ) ! * parser.Comment {
4337 if (userctx .document == null ) return parser .DOMError .NotSupported ;
4438
Original file line number Diff line number Diff line change @@ -40,12 +40,6 @@ pub const Text = struct {
4040 pub const prototype = * CharacterData ;
4141 pub const mem_guarantied = true ;
4242
43- // TODO add constructor, but I need to associate the new Text
44- // with the current document global object...
45- // > The new Text(data) constructor steps are to set this’s data to data
46- // > and this’s node document to current global object’s associated
47- // > Document.
48- // https://dom.spec.whatwg.org/#dom-text-text
4943 pub fn constructor (userctx : UserContext , data : ? []const u8 ) ! * parser.Text {
5044 if (userctx .document == null ) return parser .DOMError .NotSupported ;
5145
You can’t perform that action at this time.
0 commit comments