summaryrefslogtreecommitdiffstats
path: root/dom/base/test/test_mozMatchesSelector.html
blob: 3f163e07a9f9a918c57143a1e0a94dba9b59090a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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>