From ef6bce4002c352f89299149f4184a14d016443d3 Mon Sep 17 00:00:00 2001 From: "stephan.kasdorf" Date: Mon, 13 Oct 2025 14:14:44 +0200 Subject: [PATCH] Enhance `formattributes.php` and `typeopenany.php` with `role` attribute for improved functionality. --- core/c/formattributes.php | 1 + core/c/typeopenany.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/c/formattributes.php b/core/c/formattributes.php index 75b5353..0332b30 100755 --- a/core/c/formattributes.php +++ b/core/c/formattributes.php @@ -99,6 +99,7 @@ class FormAttributes $this->_element = str_replace(' PATTERN', '', $this->_element); $this->_element = str_replace('ANY', '', $this->_element); $this->_element = str_replace('data-sitekey="DATA-SITEKEY"', '', $this->_element); + $this->_element = str_replace('role="ROLE"', '', $this->_element); } /** diff --git a/core/c/typeopenany.php b/core/c/typeopenany.php index 03be323..7d38189 100755 --- a/core/c/typeopenany.php +++ b/core/c/typeopenany.php @@ -20,7 +20,8 @@ class TypeOpenAny extends FormAttributes implements IForm self::FORM_ATTRIBUTE_ALT => '', self::FROM_ATTRIBUTE_STYLE => '', self::FORM_ATTRIBUTE_DATA_SITEKEY => '', - self::FORM_ATTRIBUTE_TYPE => '' + self::FORM_ATTRIBUTE_TYPE => '', + self::FORM_ATTRIBUTE_ROLE => '' ); /** @@ -40,6 +41,6 @@ class TypeOpenAny extends FormAttributes implements IForm */ private function _setElement( ) { - $this->_element = '' . 'VALUE' . "\n"; + $this->_element = '' . 'VALUE' . "\n"; } }