Skip to content

Commit a37cf19

Browse files
committed
chore: [#1263] Moves isEqualNode() from IElement to INode
1 parent bf488b6 commit a37cf19

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/happy-dom/src/nodes/element/IElement.ts

-8
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,6 @@ export default interface IElement extends IChildNode, INonDocumentTypeChildNode,
292292
*/
293293
cloneNode(deep?: boolean): IElement;
294294

295-
/**
296-
* Compares two nodes.
297-
*
298-
* @param node Node to compare.
299-
* @returns "true" if nodes are equal.
300-
*/
301-
isEqualNode(node: INode): boolean;
302-
303295
/**
304296
* Inserts a node to the given position.
305297
*

packages/happy-dom/src/nodes/node/INode.ts

+8
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ export default interface INode extends IEventTarget {
5757
* @returns True if the given node is equal to the current node, otherwise false.
5858
*/
5959
isSameNode(node: INode): boolean;
60+
61+
/**
62+
* Compares two nodes.
63+
*
64+
* @param node Node to compare.
65+
* @returns "true" if nodes are equal.
66+
*/
67+
isEqualNode(node: INode): boolean;
6068
}

0 commit comments

Comments
 (0)