Skip to content

Content bug: isSameNode is deprecated but not mentioned on page #4866

@davwheat

Description

@davwheat

What page(s) did you find the problem on?

https://developer.mozilla.org/en-US/docs/Web/API/Node/isSameNode

Specific page section or heading?

What is the problem?

As of DOMv4, isSameNode has the same effect as ===. This is the new preferred way to do it, and should probably be mentioned on the page.

What did you expect to see?

Maybe a message such as...

In DOM version 4, isSameNode was deprecated in favour of an equality check with ===. isSameNode is now an alias to this check, and === should be used wherever possible.

Did you test this? If so, how?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions