public function __construct(HtmlDoc $htmlDocument) { parent::__construct(HtmlNode::ELEMENT_NODE, $htmlDocument); $this->namespace = null; $this->tagName = null; $this->tagType = null; $this->attributes = array(); $this->attributesNamed = array(); $this->tagExtension = null; $this->closed = false; }
public function __construct() { parent::__construct('html'); $head = new HtmlNode('head'); $body = new HtmlNode('body'); $nome = new HtmlText('Wanderson Henrique Camargo '); $body->addContentNode($nome); $bold = new HtmlNode('b'); $sobrenome = new HtmlText('Rosa'); $bold->addContentNode($sobrenome); $body->addContentNode($bold); $this->addContentNode($head)->addContentNode($body); }
public function __construct(HtmlDoc $htmlDocument) { parent::__construct(HtmlNode::CDATA_SECTION_NODE, $htmlDocument); }
public function __construct(HtmlDoc $htmlDocument) { parent::__construct(HtmlNode::TEXT_NODE, $htmlDocument); }
public function __construct(HtmlDoc $htmlDocument) { parent::__construct(HtmlNode::DOCUMENT_TYPE_NODE, $htmlDocument); }