/**
* Evaluate the rule for the current tag name.
*
* This may modify the existing DOM.
*
* @return \DOMElement The new Current DOM element.
*/
public function evaluate($new,
$current) { switch ($new->tagName
) { case 'li':
return $this->
handleLI($new,
$current);
case 'dt':
case 'dd':
return $this->
handleDT($new,
$current);
case 'rt':
case 'rp':
return $this->
handleRT($new,
$current);
case 'optgroup':
return $this->
closeIfCurrentMatches($new,
$current, array
( 'optgroup',
));
case 'option':