Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(moc-doc): make Node.contains() return true for self (#3150)
`Node.contains()` should return `true` if the passed node is the parent/context node. [The wording in the spec](https://dom.spec.whatwg.org/#dom-node-contains) is that it should return `true` if the passed node is an "inclusive descendant", which differs from a regular "descendant" in that it includes the object itself (not just the child nodes).
- Loading branch information