public function getHeadNode()
    {
        $head = $this->dom->getElementsByTagName('head')->item(0);
        if ($head == null) {
            $head = $this->dom->createElement('head');
            $head = $this->dom->documentElement->insertBefore($head, $this->getBodyNode());
        }
        return $head;
    }
public function getHeadNode()
    {
        $head = $this->dom->getElementsByTagName('head')->item(0);
        if ($head == null) {
            $head = $this->dom->createElement('head');
            $head = $this->dom->documentElement->insertBefore($head, $this->getBodyNode());
        }
        return $head;
    }
public function getHeadNode ( ) { $ head = $ this -> dom -> getElementsByTagName ( 'head' ) -> item ( 0 ) ; if ( $ head == null ) { $ head = $ this -> dom -> createElement ( 'head' ) ; $ head = $ this -> dom -> documentElement -> insertBefore ( $ head , $ this -> getBodyNode ( ) ) ; } return $ head ; }
Get the document's HEAD section as DOMElement

@return \DOMElement
Get the document s HEAD section as DOMElement