diff --git a/core/c/formattributes.php b/core/c/formattributes.php
index 1ed2557..f4f74d2 100755
--- a/core/c/formattributes.php
+++ b/core/c/formattributes.php
@@ -65,6 +65,9 @@ class FormAttributes
$this->_element = str_replace(' action="ACTION"', '', $this->_element);
$this->_element = str_replace(' disabled="DISABLED"', '', $this->_element);
$this->_element = str_replace(' maxlength="MAXLENGTH"', '', $this->_element);
+ $this->_element = str_replace(' min="MIN"', '', $this->_element);
+ $this->_element = str_replace(' max="MAX"', '', $this->_element);
+ $this->_element = str_replace(' step="STEP"', '', $this->_element);
$this->_element = str_replace(' tabindex="TABINDEX"', '', $this->_element);
$this->_element = str_replace(' SPEECH', '', $this->_element);
$this->_element = str_replace(' FORM', '', $this->_element);
@@ -75,6 +78,8 @@ class FormAttributes
$this->_element = str_replace(' ', ' ', $this->_element);
$this->_element = str_replace(' type="TYPE"', '', $this->_element);
$this->_element = str_replace(' onchange="ONCHANGE"', '', $this->_element);
+ $this->_element = str_replace(' onblur="ONBLUR"', '', $this->_element);
+ $this->_element = str_replace(' onfocus="ONFOCUS"', '', $this->_element);
$this->_element = str_replace(' target="TARGET"', '', $this->_element);
$this->_element = str_replace(' method="METHOD"', '', $this->_element);
$this->_element = str_replace(' data-toggle="DATA-TOGGLE"', '', $this->_element);
diff --git a/core/c/typenumber.php b/core/c/typenumber.php
index d9e5a42..2b11f45 100644
--- a/core/c/typenumber.php
+++ b/core/c/typenumber.php
@@ -15,7 +15,10 @@ class TypeNumber extends FormAttributes implements IForm
self::FORM_NAME => '',
self::FORM_VALUE => '',
self::FORM_ATTRIBUTE_ID => '',
- self::FORM_ATTRIBUTE_CLASS => ''
+ self::FORM_ATTRIBUTE_CLASS => '',
+ self::FORM_ATTRIBUTE_MAX => '',
+ self::FORM_ATTRIBUTE_MIN => '',
+ self::FORM_ATTRIBUTE_STEP => ''
);
public function loadElement( $attributes )
@@ -31,7 +34,7 @@ class TypeNumber extends FormAttributes implements IForm
*/
private function _setElement( )
{
- $this->_element = '' . "\n";
+ $this->_element = '' . "\n";
}
diff --git a/core/c/typeselect.php b/core/c/typeselect.php
index ab64b16..f1ed7f7 100644
--- a/core/c/typeselect.php
+++ b/core/c/typeselect.php
@@ -15,7 +15,9 @@ class TypeSelect extends FormAttributes implements IForm
self::FORM_NAME => '',
self::FORM_ATTRIBUTE_CLASS => '',
self::FORM_ATTRIBUTE_ID => '',
- self::FORM_ATTRIBUTE_ONCHANGE => ''
+ self::FORM_ATTRIBUTE_ONCHANGE => '',
+ self::FORM_ATTRIBUTE_ONBLUR => '',
+ self::FORM_ATTRIBUTE_ONFOCUS => ''
);
public function loadElement( $attributes )
@@ -31,6 +33,6 @@ class TypeSelect extends FormAttributes implements IForm
*/
private function _setElement( )
{
- $this->_element = '' . "\n";
+ $this->_element = '' . "\n";
}
}
\ No newline at end of file
diff --git a/core/i/form.php b/core/i/form.php
index 8a7620f..96dd3ac 100644
--- a/core/i/form.php
+++ b/core/i/form.php
@@ -25,6 +25,9 @@ interface IForm
const FORM_TYPE_BUTTON = 'button';
const FORM_ATTRIBUTE_ROWS = 'rows';
const FORM_ATTRIBUTE_COLS = 'cols';
+ const FORM_ATTRIBUTE_MIN = 'min';
+ const FORM_ATTRIBUTE_MAX = 'max';
+ const FORM_ATTRIBUTE_STEP = 'step';
const FORM_ATTRIBUTE_SPEECH = 'speech';
const FORM_ATTRIBUTE_SRC = 'src';
const FORM_ATTRIBUTE_ALT = 'alt';
@@ -37,6 +40,8 @@ interface IForm
const FORM_ATTRIBUTE_TYPE = 'type';
const FORM_ATTRIBUTE_ONCHANGE = 'onchange';
const FORM_ATTRIBUTE_ONSUBMIT = 'onsubmit';
+ const FORM_ATTRIBUTE_ONBLUR = 'onblur';
+ const FORM_ATTRIBUTE_ONFOCUS = 'onfocus';
const FORM_ATTRIBUTE_SELECTED = 'selected';
const FORM_ATTRIBUTE_CONTEXT = 'context';
const FORM_ATTRIBUTE_CHECKED = 'checked';