aboutsummaryrefslogtreecommitdiffstats
path: root/library/HTML5
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-12 14:05:40 -0800
committerfriendica <info@friendica.com>2011-11-12 14:05:40 -0800
commitef79a7a4fc7bbde7a79b5f57c248dd60f7d3005a (patch)
tree4c690c5b9c05e5b737e729c7ba71a061e6b8e9b6 /library/HTML5
parent8a19c7c379e8e969a23659b8038d1d0ed5de6c02 (diff)
downloadvolse-hubzilla-ef79a7a4fc7bbde7a79b5f57c248dd60f7d3005a.tar.gz
volse-hubzilla-ef79a7a4fc7bbde7a79b5f57c248dd60f7d3005a.tar.bz2
volse-hubzilla-ef79a7a4fc7bbde7a79b5f57c248dd60f7d3005a.zip
html5 - don't set empty attribute either
Diffstat (limited to 'library/HTML5')
-rw-r--r--library/HTML5/TreeBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/HTML5/TreeBuilder.php b/library/HTML5/TreeBuilder.php
index c0074ec73..10d446d1e 100644
--- a/library/HTML5/TreeBuilder.php
+++ b/library/HTML5/TreeBuilder.php
@@ -3043,7 +3043,7 @@ class HTML5_TreeBuilder {
foreach($token['attr'] as $attr) {
// mike@macgirvin.com 2011-10-21, stray double quotes and/or numeric tags cause everything to abort
$attr['name'] = str_replace('"','',$attr['name']);
- if(!$el->hasAttribute($attr['name']) && (! is_numeric($attr['name']))) {
+ if($attr['name'] && (!$el->hasAttribute($attr['name'])) && (! is_numeric($attr['name']))) {
$el->setAttribute($attr['name'], $attr['value']);
}
}