summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-01-25 13:22:34 +0000
committerChristian Schneider2007-01-25 13:22:34 +0000
commit7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf (patch)
tree06b7d46410174de3b430a707a387ac72c83f0ccc
parenta86d4feaa8256673bd4cebfca45657d5c7b7eeb3 (diff)
downloaditools-7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf.tar.gz
itools-7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf.tar.bz2
itools-7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf.zip
Revert empty tag logic to list with browser issues (fixes XML generation)
-rw-r--r--html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.class b/html.class
index 1877209..098e4b3 100644
--- a/html.class
+++ b/html.class
@@ -152,7 +152,7 @@ function _tag($name, $args)
}
# Apply a kind of magic... this needs further investigation
- if (strlen($data) || !preg_match('/^(area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param)$/i', $name))
+ if (isset($data) || preg_match('/^(a|div|iframe|script|span|td|textarea)$/i', $name))
$result .= ">$data</$name>$newline";
elseif ($this->_oldhtml)
$result .= ">$newline";