--TEST--
CSS Selectors - Namespaces
--EXTENSIONS--
dom
--FILE--
XML);
$container = $dom->documentElement->firstElementChild;
$container->setAttribute("foo:bar", "baz");
$container->setAttributeNS("urn:a", "a:bar", "baz");
test_helper($dom, 'container[align]');
test_helper($dom, 'container[foo\\:bar]');
test_helper($dom, 'container[a\\:bar]');
test_helper($dom, 'container[bar]');
test_helper($dom, 'a:first-of-type');
test_helper($dom, 'a:last-of-type');
test_failure($dom, 'container[* | bar]');
?>
--EXPECT--
--- Selector: container[align] ---
--- Selector: container[foo\:bar] ---
--- Selector: container[a\:bar] ---
--- Selector: container[bar] ---
--- Selector: a:first-of-type ---
--- Selector: a:last-of-type ---
--- Selector: container[* | bar] ---
Code 12 Invalid selector (Selectors. Unexpected token: *)