Lines Matching refs:nodes

107 $nodes = $doc->find('li');
110 var_dump($nodes->count());
113 $nodes->appendWith('<b>!</b>');
152 Insert the argument as a sibling directly after each of the nodes operated on.
255 Insert the argument as a sibling just before each of the nodes operated on.
558 Wrap the current node or nodes in the given structure.
565 If called on a `NodeList`, each of nodes in the list will be separately
566 wrapped. When such a list contains multiple nodes, the argument to
601 Like [wrap()](#wrap), but when operating on multiple nodes, all of them
606 if the other nodes operated on are not siblings of the first, they will
633 Like [wrap()](#wrap), but rather than wrapping the nodes that are being
666 $nodes = $doc->find('a');
667 $nodes->add($doc->find('p'));
683 $nodes = $doc->find('p');
684 $childrenOfParagraphs = $nodes->children();
700 $nodes = $doc->find('a');
701 $closestAncestors = $nodes->closest('p');
717 $nodes = $doc->find('p');
718 $contents = $nodes->contents();
734 $nodes = $doc->find('a');
735 $nodeAtIndexOne = $nodes->eq(1);
746 Return nodes in the current set that match the input.
751 $nodes = $doc->filter('a')
752 $exampleATags = $nodes->filter('[href*=https://example.org/]');
768 $nodes = $doc->find('a');
784 $nodes = $doc->find('a');
785 $firstNode = $nodes->first();
796 Return nodes with decendants of the current set matching the input.
801 $nodes = $doc->find('a');
802 $anchorTags = $nodes->has('span');
813 Test if nodes from the current set match the input.
818 $nodes = $doc->find('a');
819 $isAnchor = $nodes->is('[anchor]');
835 $nodes = $doc->find('a');
836 $lastNode = $nodes->last();
847 Apply a callback to nodes in the current set and return a new NodeList.
852 $nodes = $doc->find('a');
853 $nodeValues = $nodes->map(function($node) {
873 $nodes = $doc->find('a');
874 $follwingNodes = $nodes->following();
892 $nodes = $doc->find('a');
893 $follwingAllNodes = $nodes->followingAll('[anchor]');
912 $nodes = $doc->find('a');
913 $follwingUntilNodes = $nodes->followingUntil('.submit');
924 Return element nodes from the current set not matching the input.
929 $nodes = $doc->find('a');
930 $missingHrefAttribute = $nodes->not('[href]');
948 $nodes = $doc->find('a');
949 $parentNodes = $nodes->parent();
967 $nodes = $doc->find('a');
968 $ancestorDivNodes = $nodes->parents('div');
987 $nodes = $doc->find('a');
988 $ancestorDivNodes = $nodes->parentsUntil('div');
1006 $nodes = $doc->find('a');
1007 $precedingNodes = $nodes->preceding();
1025 $nodes = $doc->find('a');
1026 $precedingAllNodes = $nodes->precedingAll('[anchor]');
1044 $nodes = $doc->find('a');
1045 $precedingUntilNodes = $nodes->precedingUntil('.submit');
1063 $nodes = $doc->find('p');
1064 $siblings = $nodes->siblings();
1080 $nodes = $doc->find('p');
1081 // Return nodes 1 through to 3 as a new NodeList
1082 $slicedNodes = $nodes->slice(1, 3);
1098 $nodes = $doc->find('p');
1100 echo $nodes->count();
1114 $nodes = $doc->find('p');
1116 $nodes->each(function($node){