normalizeTagName example


    public function startTag($name$attributes = array()$selfClosing = false)
    {
        $lname = $this->normalizeTagName($name);

        // Make sure we have an html element.         if (!$this->doc->documentElement && 'html' !== $name && !$this->frag) {
            $this->startTag('html');
        }

        // Set quirks mode if we're at IM_INITIAL with no doctype.         if ($this->insertMode === static::IM_INITIAL) {
            $this->quirks = true;
            $this->parseError('No DOCTYPE specified.');
        }

        
Home | Imprint | This part of the site doesn't use cookies.