dom: remove useless TODO

This commit is contained in:
Pierre Tachoire
2024-04-22 12:26:58 +02:00
parent 55b80ecd15
commit d823eebce5
2 changed files with 0 additions and 12 deletions

View File

@@ -33,12 +33,6 @@ pub const Comment = struct {
pub const prototype = *CharacterData; pub const prototype = *CharacterData;
pub const mem_guarantied = true; pub const mem_guarantied = true;
// TODO add constructor, but I need to associate the new Comment
// with the current document global object...
// > The new Comment(data) constructor steps are to set thiss data to data
// > and thiss node document to current global objects associated
// > Document.
// https://dom.spec.whatwg.org/#dom-comment-comment
pub fn constructor(userctx: UserContext, data: ?[]const u8) !*parser.Comment { pub fn constructor(userctx: UserContext, data: ?[]const u8) !*parser.Comment {
if (userctx.document == null) return parser.DOMError.NotSupported; if (userctx.document == null) return parser.DOMError.NotSupported;

View File

@@ -40,12 +40,6 @@ pub const Text = struct {
pub const prototype = *CharacterData; pub const prototype = *CharacterData;
pub const mem_guarantied = true; pub const mem_guarantied = true;
// TODO add constructor, but I need to associate the new Text
// with the current document global object...
// > The new Text(data) constructor steps are to set thiss data to data
// > and thiss node document to current global objects associated
// > Document.
// https://dom.spec.whatwg.org/#dom-text-text
pub fn constructor(userctx: UserContext, data: ?[]const u8) !*parser.Text { pub fn constructor(userctx: UserContext, data: ?[]const u8) !*parser.Text {
if (userctx.document == null) return parser.DOMError.NotSupported; if (userctx.document == null) return parser.DOMError.NotSupported;