RemexHtml/TreeBuilder/Dispatcher.php
protected function dispatcherCurrentNode() {
		$current = $this->builder->stack->current;
		if ( $current && $current->stackIndex === 0 && $this->builder->isFragment ) {
			return $this->builder->fragmentContext;
		} else {
			return $current;
		}
	}
protected function dispatcherCurrentNode() {
		$current = $this->builder->stack->current;
		if ( $current && $current->stackIndex === 0 && $this->builder->isFragment ) {
			return $this->builder->fragmentContext;
		} else {
			return $current;
		}
	}
protected function dispatcherCurrentNode ( ) { $ current = $ this -> builder -> stack -> current ; if ( $ current && $ current -> stackIndex === 0 && $ this -> builder -> isFragment ) { return $ this -> builder -> fragmentContext ; } else { return $ current ; } }
If the stack of open elements is empty, return null, otherwise return
the adjusted current node.
@return Element|null
If the stack of open elements is empty return null otherwise return the adjusted current node .