blob: 3a21cdaee0a8b416acd8ee9cf05a8afa7de1d4b5 [file] [log] [blame]
This tests that we throw a NAMESPACE_ERR when parsing a selector string for querySelector and querySelectorAll that contains a namespace.
PASS: document.querySelector('bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelectorAll('bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.matches('bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.webkitMatchesSelector('bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelector('*|pre') did not throw
PASS: document.querySelectorAll('*|pre') did not throw
PASS: document.body.matches('*|pre') did not throw
PASS: document.body.webkitMatchesSelector('*|pre') did not throw
PASS: document.querySelector('|pre') did not throw
PASS: document.querySelectorAll('|pre') did not throw
PASS: document.body.matches('|pre') did not throw
PASS: document.body.webkitMatchesSelector('|pre') did not throw
PASS: document.querySelector('div bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelectorAll('div bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.matches('div bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.webkitMatchesSelector('div bbb|pre') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelector('div *|pre') did not throw
PASS: document.querySelectorAll('div *|pre') did not throw
PASS: document.body.matches('div *|pre') did not throw
PASS: document.body.webkitMatchesSelector('div *|pre') did not throw
PASS: document.querySelector('div |pre') did not throw
PASS: document.querySelectorAll('div |pre') did not throw
PASS: document.body.matches('div |pre') did not throw
PASS: document.body.webkitMatchesSelector('div |pre') did not throw
PASS: document.querySelector('[bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelectorAll('[bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.matches('[bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.webkitMatchesSelector('[bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelector('[*|name=value]') did not throw
PASS: document.querySelectorAll('[*|name=value]') did not throw
PASS: document.body.matches('[*|name=value]') did not throw
PASS: document.body.webkitMatchesSelector('[*|name=value]') did not throw
PASS: document.querySelector('[|name=value]') did not throw
PASS: document.querySelectorAll('[|name=value]') did not throw
PASS: document.body.matches('[|name=value]') did not throw
PASS: document.body.webkitMatchesSelector('[|name=value]') did not throw
PASS: document.querySelector(':-webkit-any(bbb|pre)') did not throw
PASS: document.querySelector('div [bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelectorAll('div [bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.matches('div [bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.body.webkitMatchesSelector('div [bbb|name=value]') throws: SyntaxError: The string did not match the expected pattern.
PASS: document.querySelector('div [*|name=value]') did not throw
PASS: document.querySelectorAll('div [*|name=value]') did not throw
PASS: document.body.matches('div [*|name=value]') did not throw
PASS: document.body.webkitMatchesSelector('div [*|name=value]') did not throw
PASS: document.querySelector('div [|name=value]') did not throw
PASS: document.querySelectorAll('div [|name=value]') did not throw
PASS: document.body.matches('div [|name=value]') did not throw
PASS: document.body.webkitMatchesSelector('div [|name=value]') did not throw