From 270282e3a26b21184a2051995cb5b9a2755b823d Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 18 Feb 2006 23:41:16 +0000 Subject: Update some javascript code. --- framework/Web/UI/THtmlWriter.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'framework/Web/UI/THtmlWriter.php') 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(); -- cgit v1.2.3