Skip to content

Commit

Permalink
chore: [#1263] Moves isEqualNode() from IElement to INode
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Feb 25, 2024
1 parent bf488b6 commit a37cf19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/happy-dom/src/nodes/element/IElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,6 @@ export default interface IElement extends IChildNode, INonDocumentTypeChildNode,
*/
cloneNode(deep?: boolean): IElement;

/**
* Compares two nodes.
*
* @param node Node to compare.
* @returns "true" if nodes are equal.
*/
isEqualNode(node: INode): boolean;

/**
* Inserts a node to the given position.
*
Expand Down
8 changes: 8 additions & 0 deletions packages/happy-dom/src/nodes/node/INode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ export default interface INode extends IEventTarget {
* @returns True if the given node is equal to the current node, otherwise false.
*/
isSameNode(node: INode): boolean;

/**
* Compares two nodes.
*
* @param node Node to compare.
* @returns "true" if nodes are equal.
*/
isEqualNode(node: INode): boolean;
}

0 comments on commit a37cf19

Please sign in to comment.