You are here

public function Traverser::children in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php \Masterminds\HTML5\Serializer\Traverser::children()

Walk through all the nodes on a node list.

Parameters

\DOMNodeList $nl: A list of child elements to walk through.

1 call to Traverser::children()
Traverser::walk in vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php
Tell the traverser to walk the DOM.

File

vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php, line 126

Class

Traverser
Traverser for walking a DOM tree.

Namespace

Masterminds\HTML5\Serializer

Code

public function children($nl) {
  foreach ($nl as $node) {
    $this
      ->node($node);
  }
}