Merge pull request #470 from CyberDomovoy/html5-treebuilder-namespace-error

Detect the namespace uri from token name
This commit is contained in:
friendica 2012-09-14 20:21:29 -07:00
commit e581c34760
1 changed files with 4 additions and 2 deletions

View File

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