Version 0.9.5 beta - added maxlength and tabindex for the input field
This commit is contained in:
@@ -63,6 +63,8 @@ class FormAttributes
|
||||
$this->_element = str_replace(' onsubmit="ONSUBMIT"', '', $this->_element);
|
||||
$this->_element = str_replace(' onclick="ONCLICK"', '', $this->_element);
|
||||
$this->_element = str_replace(' action="ACTION"', '', $this->_element);
|
||||
$this->_element = str_replace(' maxlength="MAXLENGTH"', '', $this->_element);
|
||||
$this->_element = str_replace(' tabindex="TABINDEX"', '', $this->_element);
|
||||
$this->_element = str_replace(' SPEECH', '', $this->_element);
|
||||
$this->_element = str_replace(' FORM', '', $this->_element);
|
||||
$this->_element = str_replace(' placeholder="PLACEHOLDER"', '', $this->_element);
|
||||
|
||||
@@ -34,7 +34,7 @@ class TypeText extends FormAttributes implements IForm
|
||||
*/
|
||||
private function _setElement( )
|
||||
{
|
||||
$this->_element = '<input type="text" name="NAME" value="VALUE" placeholder="PLACEHOLDER" required="REQUIRED" SPEECH ID CLASS>' . "\n";
|
||||
$this->_element = '<input type="text" name="NAME" value="VALUE" placeholder="PLACEHOLDER" maxlength="MAXLENGTH" tabindex="TABINDEX" required="REQUIRED" SPEECH ID CLASS>' . "\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user