summaryrefslogtreecommitdiff
path: root/framework/Web/UI/THtmlWriter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/THtmlWriter.php')
-rw-r--r--framework/Web/UI/THtmlWriter.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Web/UI/THtmlWriter.php b/framework/Web/UI/THtmlWriter.php
index 2f1f8c1a..613d58dc 100644
--- a/framework/Web/UI/THtmlWriter.php
+++ b/framework/Web/UI/THtmlWriter.php
@@ -175,11 +175,23 @@ class THtmlWriter extends TApplicationComponent implements ITextWriter
$this->_attributes[$name]=isset(self::$_attrEncode[$name])?THttpUtility::htmlEncode($value):$value;
}
+ public function removeAttribute($name)
+ {
+ if(isset($this->_attributes[$name]))
+ unset($this->_attributes[$name]);
+ }
+
public function addStyleAttribute($name,$value)
{
$this->_styles[$name]=isset(self::$_styleEncode[$name])?THttpUtility::htmlEncode($value):$value;
}
+ public function removeStyleAttribute($name)
+ {
+ if(isset($this->_styles[$name]))
+ unset($this->_styles[$name]);
+ }
+
public function flush()
{
$this->_writer->flush();