public function getBaseHref()
    {
        $node = $this->filterXPath('descendant-or-self::base')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('href');
        } else {
            return null;
        }
    }
public function getBaseHref()
    {
        $node = $this->filterXPath('descendant-or-self::base')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('href');
        } else {
            return null;
        }
    }
public function getBaseHref ( ) { $ node = $ this -> filterXPath ( 'descendant-or-self::base' ) -> getNode ( 0 ) ; if ( $ node instanceof \ DOMElement ) { return $ node -> getAttribute ( 'href' ) ; } else { return null ; } }
Get the href attribute from the base tag, null if not present in document

@return null|string
Get the href attribute from the base tag null if not present in document