private function getTargetResult($target, $context=null)
    {
        if ($context===null && \is_string($target) && strpos($target, '<') === false) {
            $context = $this->document;
        }

        return $context === null ? self::create($target) : self::create($target, $context);
    }
private function getTargetResult($target, $context=null)
    {
        if ($context===null && \is_string($target) && strpos($target, '<') === false) {
            $context = $this->document;
        }

        return $context === null ? self::create($target) : self::create($target, $context);
    }
private function getTargetResult ( $ target , $ context = null ) { if ( $ context === null && \ is_string ( $ target ) && strpos ( $ target , '<' ) === false ) { $ context = $ this -> document ; } return $ context === null ? self :: create ( $ target ) : self :: create ( $ target , $ context ) ; }
Get target result using selector or instance of self

@param string|self $target
@param string|self|\DOMNodeList|\DOMNode|\DOMDocument $context

@return self
Get target result using selector or instance of self