1--TEST-- 2CSS Selectors - Pseudo classes: links 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8require __DIR__ . '/test_utils.inc'; 9 10$dom = DOM\XMLDocument::createFromString(<<<XML 11<container> 12 <a href="http://example.com">Link</a> 13 <a xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</a> 14 <area xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</area> 15</container> 16XML); 17 18test_helper($dom, ':any-link'); 19test_helper($dom, ':link'); 20test_helper($dom, 'a:not(:any-link)'); 21 22?> 23--EXPECT-- 24--- Selector: :any-link --- 25<a xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</a> 26<area xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</area> 27--- Selector: :link --- 28<a xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</a> 29<area xmlns="http://www.w3.org/1999/xhtml" href="http://example.com">Link</area> 30--- Selector: a:not(:any-link) --- 31<a href="http://example.com">Link</a> 32