feat: extend fakedom implementation (#9616)

* feat: extend fakedom implementation

* docs: updated changenote
This commit is contained in:
Saq Imtiaz
2026-01-25 19:05:46 +01:00
committed by GitHub
parent a40ce29451
commit d07fe25cdb
2 changed files with 3 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ Object.defineProperty(TW_Node.prototype, 'TEXT_NODE', {
var TW_TextNode = function(text) {
bumpSequenceNumber(this);
this.textContent = text + "";
this.children = [];
};
Object.setPrototypeOf(TW_TextNode.prototype,TW_Node.prototype);