We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ee5e4 commit eef2fa9Copy full SHA for eef2fa9
src/dom/text.zig
@@ -38,6 +38,16 @@ pub const Text = struct {
38
pub const prototype = *CharacterData;
39
pub const mem_guarantied = true;
40
41
+ // TODO add constructor, but I need to associate the new Text
42
+ // with the current document global object...
43
+ // > The new Text(data) constructor steps are to set this’s data to data
44
+ // > and this’s node document to current global object’s associated
45
+ // > Document.
46
+ // https://dom.spec.whatwg.org/#dom-text-text
47
+ pub fn constructor() !*parser.Comment {
48
+ return error.NotImplemented;
49
+ }
50
+
51
// JS funcs
52
// --------
53
0 commit comments