Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/mochitest.toml
<!doctype html>
<meta charset=utf-8>
<title>Test for legacy mozMatchesSelector</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<div id=test></div>
<script>
test(function() {
var element = document.getElementById("test");
assert_true(element.matches("#test"), "matches");
assert_true(element.mozMatchesSelector("#test"), "mozMatchesSelector");
});
</script>