--TEST-- CSS Selectors - Combinators --EXTENSIONS-- dom --FILE--

First p

Second p

Third p

Fourth p

Fifth p

A B C
HTML); test_helper($dom, 'nonsense'); test_helper($dom, 'p'); test_helper($dom, 'p, img'); test_helper($dom, 'body p'); test_helper($dom, 'body div p'); test_helper($dom, 'div > *'); test_helper($dom, 'div > p'); test_helper($dom, 'div > p + img'); test_helper($dom, 'div > p ~ img'); test_helper($dom, 'body > img'); test_helper($dom, 'div.bar.baz > p'); test_helper($dom, 'article[title].bar p'); try { test_helper($dom, 'col.selected||td'); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- --- Selector: nonsense --- --- Selector: p ---

First p

Second p

Third p

Fourth p

Fifth p

--- Selector: p, img ---

First p

Second p

Third p

Fourth p

Fifth p

--- Selector: body p ---

First p

Second p

Third p

Fourth p

Fifth p

--- Selector: body div p ---

Third p

Fourth p

--- Selector: div > * ---

Third p

Fourth p

Fourth p

--- Selector: div > p ---

Third p

Fourth p

--- Selector: div > p + img --- --- Selector: div > p ~ img --- --- Selector: body > img --- --- Selector: div.bar.baz > p ---

Fourth p

--- Selector: article[title].bar p ---

Fifth p

--- Selector: col.selected||td --- Dom\Document::querySelectorAll(): Argument #1 ($selectors) contains an unsupported selector