alecpl
2008-06-13 712b30dd2de49763f68ee6c8f7b8b24bdadb19d9
program/include/html.php
@@ -32,7 +32,7 @@
    protected $allowed;
    protected $content;
    protected static $common_attrib = array('id','class','style','title','align');
    public static $common_attrib = array('id','class','style','title','align');
    public static $containers = array('div','span','p','h1','h2','h3','form','textarea');
    public static $lc_tags = true;
@@ -415,7 +415,7 @@
class html_textarea extends html
{
    protected $tagname = 'textarea';
    protected $allowed_attrib = array('name','rows','cols','wrap');
    protected $allowed_attrib = array('name','rows','cols','wrap','tabindex');
    /**
     * Get HTML code for this object
@@ -441,9 +441,10 @@
            unset($this->attrib['value']);
        }
        if (!empty($value) && !isset($this->attrib['mce_editable'])) {
        if (!empty($value) && !ereg('mce_editor', $this->attrib['class'])) {
            $value = Q($value, 'strict', false);
        }
        return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed_attrib));
    }
}