We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1222bf + b66ca65 commit f97fd58Copy full SHA for f97fd58
src/main/scala/org/scalajs/dom/raw/lib.scala
@@ -817,6 +817,15 @@ abstract class Element
817
*/
818
def insertAdjacentHTML(where: String, html: String): Unit = js.native
819
820
+ /**
821
+ * The `matches()` method of the `Element` interface returns `true` if the
822
+ * element would be selected by the specified selector string; otherwise, it
823
+ * returns `false`.
824
+ *
825
+ * MDN
826
+ */
827
+ def matches(selector: String): Boolean = js.native
828
+
829
/**
830
* getAttribute() returns the value of the named attribute on the specified element.
831
* If the named attribute does not exist, the value returned will either be null or ""
0 commit comments