OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> |
| 3 <div id="sandbox"> |
| 4 <span></span> |
| 5 </div> |
| 6 <script> |
| 7 description("querySelectorAll and namespaces"); |
| 8 |
| 9 sandbox.appendChild(document.createElementNS("http://dummynamespace", "span")); |
| 10 sandbox.appendChild(document.createElementNS("", "span")); |
| 11 |
| 12 shouldBe("sandbox.querySelectorAll('span').length", "3"); |
| 13 shouldBe("sandbox.querySelectorAll('*|span').length", "3"); |
| 14 shouldBe("sandbox.querySelectorAll('|span').length", "1"); |
| 15 </script> |
OLD | NEW |