mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
dom: remove useless TODO
This commit is contained in:
@@ -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 this’s data to data
|
|
||||||
// > and this’s node document to current global object’s 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;
|
||||||
|
|
||||||
|
|||||||
@@ -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 this’s data to data
|
|
||||||
// > and this’s node document to current global object’s 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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user