function start($xp, &$tag, &$attr) { parent::start($xp, $tag, $attr); $p = $this->parent; unset($this->text_meta); if ($tag == "link") { $this->{$p}[strtolower($attr["rel"])] = $attr["href"]; } elseif ($tag == "meta") { $name = strtolower($attr["name"]); if (isset($attr["content"])) { $this->{$p}[$name] = $attr["content"]; } elseif ($this->parent == "text") { $this->text_meta = $name; } } }
function start($xp, &$tag, &$attr) { parent::start($xp, $tag, $attr); foreach ($attr as $i => $content) { if ($this->as_content[$tag] == $i) { $this->cdata($xp, $content); } } }
function start($xp, $tag, $attr) { parent::start($xp, $tag, $attr); if ($this->parent) { $this->{$this->parent}[$tag] = true; } }