fix various html parse errors

This commit is contained in:
Friendika 2011-10-20 16:48:07 -07:00
parent bef7a5d66b
commit 01164c8c2f
6 changed files with 42 additions and 15 deletions

View file

@ -3041,6 +3041,8 @@ class HTML5_TreeBuilder {
if (!empty($token['attr'])) {
foreach($token['attr'] as $attr) {
// mike@macgirvin.com 2011-10-21, stray double quotes cause everything to abort
$attr['name'] = str_replace('"','',$attr['name']);
if(!$el->hasAttribute($attr['name'])) {
$el->setAttribute($attr['name'], $attr['value']);
}