1--TEST--
2CSS Selectors - Pseudo classes: placeholder-shown
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="text" placeholder="" />
13    <textarea placeholder="" />
14    <input xmlns="" type="text" placeholder="" />
15    <textarea xmlns="" placeholder="" />
16    <input type="text" />
17    <textarea />
18</html>
19XML);
20
21test_helper($dom, ':placeholder-shown');
22
23?>
24--EXPECT--
25--- Selector: :placeholder-shown ---
26<input xmlns="http://www.w3.org/1999/xhtml" type="text" placeholder="" />
27<textarea xmlns="http://www.w3.org/1999/xhtml" placeholder=""></textarea>
28