blob: 9b0b2d336c236b2eff132c9f4e936e166cab8c1c [file] [log] [blame]
<!DOCTYPE html>
<title>querySelectorAll and namespaces</title>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<div id="sandbox">
<span></span>
</div>
<script>
setup({ single_test: true });
sandbox.appendChild(document.createElementNS("http://dummynamespace", "span"));
sandbox.appendChild(document.createElementNS("", "span"));
assert_equals(sandbox.querySelectorAll('span').length, 3);
assert_equals(sandbox.querySelectorAll('*|span').length, 3);
assert_equals(sandbox.querySelectorAll('|span').length, 1);
done();
</script>