fix HtmlElement.parent

This commit is contained in:
2024-11-13 13:12:04 +08:00
parent 5d4e8f5b84
commit 9fcc306ee0
3 changed files with 11 additions and 11 deletions

View File

@@ -699,7 +699,7 @@ class HtmlElement {
doc: this.doc,
})
if(k == null) return null;
return new HtmlElement(k);
return new HtmlElement(k, this.doc);
}
/**