// When we are on a void tag, we do not need to care about namesapce nesting,
// but we have to remove the namespaces pushed to $nsStack.
if ($pushes > 0 && Elements::
isA($name, Elements::VOID_TAG
)) { // remove the namespaced definded by current node
for ($i = 0;
$i <
$pushes; ++
$i) { array_shift($this->nsStack
);
} } if ($selfClosing) { $this->
endTag($name);
} // Return the element mask, which the tokenizer can then use to set
// various processing rules.
return Elements::
element($name);
} public function endTag($name) { $lname =
$this->
normalizeTagName($name);