Lines Matching refs:entities
20 $entities = iterator_to_array($dom->doctype->entities);
21 usort($entities, fn ($a, $b) => strcmp($a->nodeName, $b->nodeName));
23 echo "--- Compare entities ---\n";
25 var_dump($entities[0]->compareDocumentPosition($entities[1]) === DOMNode::DOCUMENT_POSITION_FOLLOWI…
26 var_dump($entities[1]->compareDocumentPosition($entities[0]) === DOMNode::DOCUMENT_POSITION_PRECEDI…
31 echo "--- Compare entities against first child ---\n";
33 var_dump($entities[0]->compareDocumentPosition($child->firstChild) === DOMNode::DOCUMENT_POSITION_F…
34 var_dump($entities[1]->compareDocumentPosition($child->firstChild) === DOMNode::DOCUMENT_POSITION_F…
36 echo "--- Compare first child against entities ---\n";
38 var_dump($child->firstChild->compareDocumentPosition($entities[0]) === DOMNode::DOCUMENT_POSITION_P…
39 var_dump($child->firstChild->compareDocumentPosition($entities[1]) === DOMNode::DOCUMENT_POSITION_P…
43 --- Compare entities ---
46 --- Compare entities against first child ---
49 --- Compare first child against entities ---