diff --git a/core/c/typepassword.php b/core/c/typepassword.php
index 077f0a7..5c6963c 100644
--- a/core/c/typepassword.php
+++ b/core/c/typepassword.php
@@ -16,7 +16,8 @@ class TypePassword extends FormAttributes implements IForm
self::FORM_ATTRIBUTE_ID => '',
self::FORM_ATTRIBUTE_CLASS => '',
self::FORM_ATTRIBUTE_PLACEHOLDER => '',
- self::FORM_ATTRIBUTE_REQUIRED => ''
+ self::FORM_ATTRIBUTE_REQUIRED => '',
+ self::FORM_VALUE
);
public function loadElement( $attributes )
@@ -32,7 +33,7 @@ class TypePassword extends FormAttributes implements IForm
*/
private function _setElement( )
{
- $this->_element = '' . "\n";
+ $this->_element = '' . "\n";
}
diff --git a/core/c/typetext.php b/core/c/typetext.php
index 0233e08..9fa0da4 100644
--- a/core/c/typetext.php
+++ b/core/c/typetext.php
@@ -18,7 +18,9 @@ class TypeText extends FormAttributes implements IForm
self::FORM_ATTRIBUTE_ID => '',
self::FORM_ATTRIBUTE_CLASS => '',
self::FORM_ATTRIBUTE_PLACEHOLDER => '',
- self::FORM_ATTRIBUTE_REQUIRED => ''
+ self::FORM_ATTRIBUTE_REQUIRED => '',
+ self::FORM_ATTRIBUTE_MAXLENGTH => '',
+ self::FORM_ATTRIBUTE_TABINDEX => ''
);
public function loadElement( $attributes )
diff --git a/core/i/form.php b/core/i/form.php
index 33aa9ba..757ab79 100644
--- a/core/i/form.php
+++ b/core/i/form.php
@@ -40,6 +40,8 @@ interface IForm
const FORM_ATTRIBUTE_SELECTED = 'selected';
const FORM_ATTRIBUTE_CONTEXT = 'context';
const FORM_ATTRIBUTE_CHECKED = 'checked';
+ const FORM_ATTRIBUTE_MAXLENGTH = 'maxlength';
+ const FORM_ATTRIBUTE_TABINDEX = 'tabindex';
/**
* @desc loads the current Form element to the form