From ff466d1c98d53448e7806712488884d586b70c08 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Mon, 7 Sep 2020 20:17:31 +0200 Subject: [PATCH] Version 0.9.5 beta - added missing replacement logic for the form attributes --- core/c/typepassword.php | 5 +++-- core/c/typetext.php | 4 +++- core/i/form.php | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) 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