Searched refs:compareDocumentPosition (Results 1 – 17 of 17) sorted by relevance
/php-src/ext/dom/tests/compareDocumentPosition/ |
H A D | element_order_same_depth.phpt | 2 compareDocumentPosition: element order at the same tree depth 33 var_dump($foo->previousElementSibling->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION… 34 var_dump($foo->compareDocumentPosition($foo->previousElementSibling) === DOMNode::DOCUMENT_POSITION… 37 var_dump($bar->nextElementSibling->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_PRE… 38 var_dump($bar->compareDocumentPosition($bar->nextElementSibling) === DOMNode::DOCUMENT_POSITION_FOL… 41 var_dump($foo->previousElementSibling->compareDocumentPosition($bar->nextElementSibling) === DOMNod… 42 var_dump($bar->nextElementSibling->compareDocumentPosition($foo->previousElementSibling) === DOMNod… 46 var_dump($foo->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_FOLLOWING); 47 var_dump($bar->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION_PRECEDING);
|
H A D | equal.phpt | 2 compareDocumentPosition: equal nodes 19 var_dump($nodes->item(0)->compareDocumentPosition($nodes->item(0)) === 0); 20 var_dump($nodes->item(1)->compareDocumentPosition($nodes->item(1)) === 0); 21 var_dump($nodes->item(0)->compareDocumentPosition($nodes->item(1)) === 0); 22 var_dump($nodes->item(1)->compareDocumentPosition($nodes->item(0)) === 0);
|
H A D | entity.phpt | 2 compareDocumentPosition: entity ordering 25 var_dump($entities[0]->compareDocumentPosition($entities[1]) === DOMNode::DOCUMENT_POSITION_FOLLOWI… 26 var_dump($entities[1]->compareDocumentPosition($entities[0]) === DOMNode::DOCUMENT_POSITION_PRECEDI… 33 var_dump($entities[0]->compareDocumentPosition($child->firstChild) === DOMNode::DOCUMENT_POSITION_F… 34 var_dump($entities[1]->compareDocumentPosition($child->firstChild) === DOMNode::DOCUMENT_POSITION_F… 38 var_dump($child->firstChild->compareDocumentPosition($entities[0]) === DOMNode::DOCUMENT_POSITION_P… 39 var_dump($child->firstChild->compareDocumentPosition($entities[1]) === DOMNode::DOCUMENT_POSITION_P…
|
H A D | attribute_child_order.phpt | 2 compareDocumentPosition: attribute vs child order 32 var_dump($outer->attributes[0]->compareDocumentPosition($before) === DOMNode::DOCUMENT_POSITION_PRE… 33 var_dump($before->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_FOL… 36 var_dump($outer->attributes[0]->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION_FOLLOW… 37 var_dump($foo->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_PRECED… 40 var_dump($outer->attributes[0]->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_FOLLOW… 41 var_dump($bar->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_PRECED…
|
H A D | element_order_different_depth.phpt | 2 compareDocumentPosition: element order at a different tree depth 30 var_dump($foo->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_FOLLOWING); 31 var_dump($bar->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION_PRECEDING); 37 var_dump(boolval($foo->compareDocumentPosition($bar) & DOMNode::DOCUMENT_POSITION_CONTAINED_BY)); 38 var_dump(boolval($bar->compareDocumentPosition($foo) & DOMNode::DOCUMENT_POSITION_CONTAINS));
|
H A D | element_order_direct_root_children.phpt | 2 compareDocumentPosition: direct root children 12 var_dump($foo->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_FOLLOWING); 13 var_dump($bar->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION_PRECEDING);
|
H A D | contains_element_direct_descendent.phpt | 2 compareDocumentPosition: contains nodes as a direct descendent 19 var_dump($container->compareDocumentPosition($div) === (DOMNode::DOCUMENT_POSITION_FOLLOWING | DOMN… 20 var_dump($div->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING | DOMN…
|
H A D | contains_attribute_direct_descendent.phpt | 2 compareDocumentPosition: contains attribute as a direct descendent 17 var_dump($container->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING … 18 var_dump($attribute->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING …
|
H A D | contains_attribute_freestanding.phpt | 2 compareDocumentPosition: contains attribute for a freestanding element 15 var_dump($foo->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING | DOMN… 16 var_dump($attribute->compareDocumentPosition($foo) === (DOMNode::DOCUMENT_POSITION_PRECEDING | DOMN…
|
H A D | contains_attribute_longer_descendent.phpt | 2 compareDocumentPosition: contains attribute as a descendent in a longer path 22 var_dump($container->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING … 23 var_dump($attribute->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING …
|
H A D | disconnected.phpt | 2 compareDocumentPosition: disconnected 10 …var_dump(($element1->compareDocumentPosition($element2) & (DOMNode::DOCUMENT_POSITION_IMPLEMENTATI… 12 …var_dump(($element2->compareDocumentPosition($element1) & (DOMNode::DOCUMENT_POSITION_IMPLEMENTATI… 16 if ($element1->compareDocumentPosition($element2) & DOMNode::DOCUMENT_POSITION_FOLLOWING) { 17 …var_dump(($element2->compareDocumentPosition($element1) & DOMNode::DOCUMENT_POSITION_PRECEDING) ==… 19 …var_dump(($element2->compareDocumentPosition($element1) & DOMNode::DOCUMENT_POSITION_FOLLOWING) ==…
|
H A D | contains_element_longer_descendent.phpt | 2 compareDocumentPosition: contains nodes as a descendent in a longer path 27 …var_dump($container->compareDocumentPosition($element) === (DOMNode::DOCUMENT_POSITION_FOLLOWING |… 28 …var_dump($element->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING |…
|
H A D | attribute_order_different_element.phpt | 2 compareDocumentPosition: attribute order for different element 23 var_dump($attr1->compareDocumentPosition($attr2) === DOMNode::DOCUMENT_POSITION_FOLLOWING); 25 var_dump($attr2->compareDocumentPosition($attr1) === DOMNode::DOCUMENT_POSITION_PRECEDING);
|
H A D | attribute_order_same_element.phpt | 2 compareDocumentPosition: attribute order for same element 23 var_dump($attrs[$i]->compareDocumentPosition($attrs[$j % 3]) === $expected);
|
/php-src/ext/dom/ |
H A D | php_dom.stub.php | 475 public function compareDocumentPosition(DOMNode $other): int {} function in DOMNode 1446 public function compareDocumentPosition(Node $other): int {} function in Dom\\Node
|
H A D | node.c | 2583 PHP_METHOD(DOMNode, compareDocumentPosition) in PHP_METHOD() argument 2588 PHP_METHOD(Dom_Node, compareDocumentPosition) in PHP_METHOD() argument
|
H A D | php_dom_arginfo.h | 1158 ZEND_METHOD(DOMNode, compareDocumentPosition); 1266 ZEND_METHOD(Dom_Node, compareDocumentPosition); 1383 …ZEND_ME(DOMNode, compareDocumentPosition, arginfo_class_DOMNode_compareDocumentPosition, ZEND_ACC_… 1586 …ZEND_ME(Dom_Node, compareDocumentPosition, arginfo_class_Dom_Node_compareDocumentPosition, ZEND_AC…
|
Completed in 72 milliseconds