--TEST--
CSS Selectors - Attribute
--EXTENSIONS--
dom
--FILE--
XML);
echo "=== Case sensitive ===\n";
test_helper($dom, 'a[title]');
test_helper($dom, 'a[title="http://example.com"]');
test_helper($dom, 'a[title="http://example."]');
test_helper($dom, 'a[title*="example"]');
test_helper($dom, 'a[title*=""]');
test_helper($dom, 'a[title^="HTTP"]');
test_helper($dom, 'a[title^="http"]');
test_helper($dom, 'a[title^="http"][title$=".be"]');
test_helper($dom, 'a[title$=".com"]');
test_helper($dom, 'a[title$=".foo"]');
test_helper($dom, 'a[lang|="nl"]');
test_helper($dom, 'a[lang|="nl-be"]');
test_helper($dom, 'a[tokens~="def"]');
test_helper($dom, 'a[tokens~="de"]');
test_helper($dom, 'a[tokens~="def ghi"]');
echo "=== Case insensitive ===\n";
test_helper($dom, 'a[title]');
test_helper($dom, 'a[title="http://example.COM" i]');
test_helper($dom, 'a[title="http://EXAMPLE." i]');
test_helper($dom, 'a[title*="ExAmPlE" i]');
test_helper($dom, 'a[title^="HTTP" i]');
test_helper($dom, 'a[title^="HTTP" i][title$=".be"]');
test_helper($dom, 'a[title$=".COM" i]');
test_helper($dom, 'a[lang|="NL" i]');
test_helper($dom, 'a[lang|="NL-BE" i]');
test_helper($dom, 'a[tokens~="DE" i]');
test_helper($dom, 'a[tokens~="DEF" i]');
test_helper($dom, 'a[tokens~="DEF GHI" i]');
?>
--EXPECT--
=== Case sensitive ===
--- Selector: a[title] ---
--- Selector: a[title="http://example.com"] ---
--- Selector: a[title="http://example."] ---
--- Selector: a[title*="example"] ---
--- Selector: a[title*=""] ---
--- Selector: a[title^="HTTP"] ---
--- Selector: a[title^="http"] ---
--- Selector: a[title^="http"][title$=".be"] ---
--- Selector: a[title$=".com"] ---
--- Selector: a[title$=".foo"] ---
--- Selector: a[lang|="nl"] ---
--- Selector: a[lang|="nl-be"] ---
--- Selector: a[tokens~="def"] ---
--- Selector: a[tokens~="de"] ---
--- Selector: a[tokens~="def ghi"] ---
=== Case insensitive ===
--- Selector: a[title] ---
--- Selector: a[title="http://example.COM" i] ---
--- Selector: a[title="http://EXAMPLE." i] ---
--- Selector: a[title*="ExAmPlE" i] ---
--- Selector: a[title^="HTTP" i] ---
--- Selector: a[title^="HTTP" i][title$=".be"] ---
--- Selector: a[title$=".COM" i] ---
--- Selector: a[lang|="NL" i] ---
--- Selector: a[lang|="NL-BE" i] ---
--- Selector: a[tokens~="DE" i] ---
--- Selector: a[tokens~="DEF" i] ---
--- Selector: a[tokens~="DEF GHI" i] ---