Skip to content

Commit d823eeb

Browse files
committed
dom: remove useless TODO
1 parent 55b80ec commit d823eeb

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/dom/comment.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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

src/dom/text.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)