text: return error on constructor

Blocked by #102
This commit is contained in:
Pierre Tachoire
2024-01-03 15:03:04 +01:00
parent 49ee5e4e68
commit eef2fa94d0

View File

@@ -38,6 +38,16 @@ pub const Text = struct {
pub const prototype = *CharacterData;
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() !*parser.Comment {
return error.NotImplemented;
}
// JS funcs
// --------