--- nfo/php/libs/com.newsblob.phphtmllib/HTMLTagClass.inc 2003/02/22 20:55:24 1.2
+++ nfo/php/libs/com.newsblob.phphtmllib/HTMLTagClass.inc 2004/05/06 12:58:02 1.3
@@ -3,7 +3,7 @@
/**
* Holds the HTMLTagClass
*
- * $Id: HTMLTagClass.inc,v 1.2 2003/02/22 20:55:24 jonen Exp $
+ * $Id: HTMLTagClass.inc,v 1.3 2004/05/06 12:58:02 jonen Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -46,7 +46,7 @@
/**
* The list of attributes not to render
- * if HTML_RENDER_TYPE is "XHTML STRICT"
+ * if $GLOBALS["HTML_RENDER_TYPE"] is "XHTML STRICT"
*
* We comment this declaration out
* to save memory, since only a small
@@ -105,8 +105,8 @@
//this is a magic test. It assumes that
//someone has created the define for
//HTML_RENDER_TYPE
- if ( HTML_RENDER_TYPE == XHTML ||
- HTML_RENDER_TYPE == XHTML_STRICT ) {
+ if ( $GLOBALS["HTML_RENDER_TYPE"] == XHTML ||
+ $GLOBALS["HTML_RENDER_TYPE"] == XHTML_STRICT ) {
$this->_flags |= _XHTMLCOMPLIANT;
}
@@ -245,8 +245,8 @@
$indent = $this->_render_indent($indent_level, TRUE);
- $tag_prefix = htmlspecialchars( ($this->_tag_prefix ? $this->_tag_prefix : _TAG_PREFIX));
- $tab_postfix = htmlspecialchars( ($this->_tag_postfix ? $this->_tag_postfix : _TAG_SUFFIX));
+ $tag_prefix = htmlspecialchars( (@$this->_tag_prefix ? $this->_tag_prefix : _TAG_PREFIX));
+ $tab_postfix = htmlspecialchars( (@$this->_tag_postfix ? $this->_tag_postfix : _TAG_SUFFIX));
$str = $indent . $tag_prefix. "";
$str .= $this->_tag . "";
@@ -396,24 +396,30 @@
}
}
- if ( HTML_RENDER_TYPE == XHTML_STRICT &&
+ if ( $GLOBALS["HTML_RENDER_TYPE"] == XHTML_STRICT &&
@in_array($name, $this->_xhtml_strict_attributes) ) {
$returnval = NULL;
}
} else {
//hack to make non name-value pair work.
//ie