From 7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 25 Jan 2007 13:22:34 +0000 Subject: Revert empty tag logic to list with browser issues (fixes XML generation) --- html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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$newline"; elseif ($this->_oldhtml) $result .= ">$newline"; -- cgit v1.2.3