Remove notice error from tree builder.

This commit is contained in:
Beanow 2014-07-10 23:43:41 +02:00
parent a69a9d2278
commit 7276efc1bc
1 changed files with 3 additions and 2 deletions

View File

@ -158,8 +158,9 @@ class HTML5_TreeBuilder {
if ($this->ignore_lf_token) $this->ignore_lf_token--;
$this->ignored = false;
$token['name'] = str_replace(':', '-', $token['name']);
if(isset($token['name']))
$token['name'] = str_replace(':', '-', $token['name']);
// indenting is a little wonky, this can be changed later on
switch ($mode) {