1--TEST--
2CSS Selectors - Pseudo classes: checked
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8require __DIR__ . '/test_utils.inc';
9
10$dom = DOM\XMLDocument::createFromString(<<<XML
11<html xmlns="http://www.w3.org/1999/xhtml">
12    <input type="checkbox" checked="checked" />
13    <input type="radio" checked="checked" />
14    <option selected="" />
15    <option xmlns="" selected="" />
16    <input/>
17</html>
18XML);
19
20test_helper($dom, ':checked');
21
22?>
23--EXPECT--
24--- Selector: :checked ---
25<input xmlns="http://www.w3.org/1999/xhtml" type="checkbox" checked="checked" />
26<input xmlns="http://www.w3.org/1999/xhtml" type="radio" checked="checked" />
27<option xmlns="http://www.w3.org/1999/xhtml" selected=""></option>
28