We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b61282 + 8dc1f66 commit a75727dCopy full SHA for a75727d
src/main/scala/org/scalajs/dom/raw/lib.scala
@@ -1170,6 +1170,15 @@ abstract class Node extends EventTarget {
1170
*/
1171
def isSameNode(other: Node): Boolean = js.native
1172
1173
+ /**
1174
+ * Returns a Boolean value indicating whether a node is a descendant of a
1175
+ * given node, i.e. the node itself, one of its direct children (childNodes),
1176
+ * one of the children's direct children, and so on.
1177
+ *
1178
+ * MDN
1179
+ */
1180
+ def contains(otherNode: Node): Boolean = js.native
1181
+
1182
/**
1183
* hasAttributes returns a boolean value of true or false, indicating if the current
1184
* element has any attributes or not.
0 commit comments