Skip to content

Commit

Permalink
#960@trivial: Fix introduced bug in HTMLUnknownElement.
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Aug 22, 2023
1 parent 5d90360 commit 3b120c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export default class HTMLUnknownElement extends HTMLElement implements IHTMLElem
const callback = (): void => {
if (this.parentNode) {
const newElement = <HTMLElement>this.ownerDocument.createElement(tagName);
(<INodeList<INode>>newElement._childNodes) = this._childNodes;
(<IHTMLCollection<IElement>>newElement._children) = this._children;
(<boolean>newElement.isConnected) = this.isConnected;

newElement._rootNode = this._rootNode;
Expand Down

0 comments on commit 3b120c0

Please sign in to comment.