The 'isEqualNode()' is not the thing meant to be done here, this is rather 'isSameNode()', which is deprecated and replaced with '==='.
The 'isEqualNode()' is not the thing meant to be done here, this is rather 'isSameNode()', which is deprecated and replaced with '==='.