Modern DOM library written in PHP for HTML documents
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
507 B

<?php
declare(strict_types=1);
namespace dW\HTML5;
class TemplateInsertionModesStack extends Stack {
public function __get($property) {
$value = parent::__get($property);
if (!is_null($value)) {
return $value;
}
switch ($property) {
case 'currentMode': return
$currentMode = end($this->_storage);
return ($currentMode) ? $currentMode : null;
break;
default: return null;
}
}
}