1--TEST--
2CSS Selectors - Handling entities
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createFromString(<<<XML
9<!DOCTYPE root [
10    <!ENTITY ent "box">
11]>
12<root>
13    <input type="check&ent;" checked="" class="a&ent;a" id="a&ent;a" xmlns="http://www.w3.org/1999/xhtml"/>
14</root>
15XML);
16var_dump($dom->querySelector('input:checked')->nodeName);
17var_dump($dom->querySelector('input[type$="ox"]')->nodeName);
18var_dump($dom->querySelector('input.aboxa')->nodeName);
19var_dump($dom->querySelector('input#aboxa')->nodeName);
20
21?>
22--EXPECT--
23string(5) "input"
24string(5) "input"
25string(5) "input"
26string(5) "input"
27