--TEST-- CSS Selectors - Quirks mode test --EXTENSIONS-- dom --FILE--
HTML, LIBXML_NOERROR); test_helper($dom, 'div.helloworld'); test_helper($dom, 'div.HElLoWorLD'); test_helper($dom, '#hi'); test_helper($dom, '#hI'); echo "\n=== Document not in quirks mode ===\n\n"; $dom = DOM\HTMLDocument::createFromString(<<
HTML, LIBXML_NOERROR); test_helper($dom, 'div.helloworld'); test_helper($dom, 'div.HElLoWorLD'); test_helper($dom, '#hi'); test_helper($dom, '#hI'); ?> --EXPECT-- === Document in quirks mode === --- Selector: div.helloworld ---
--- Selector: div.HElLoWorLD ---
--- Selector: #hi ---
--- Selector: #hI ---
=== Document not in quirks mode === --- Selector: div.helloworld --- --- Selector: div.HElLoWorLD ---
--- Selector: #hi --- --- Selector: #hI ---