Enhance formattributes.php and typeopenany.php with role attribute for improved functionality.

This commit is contained in:
stephan.kasdorf
2025-10-13 14:14:44 +02:00
parent 8688cdea12
commit ef6bce4002
2 changed files with 4 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ class FormAttributes
$this->_element = str_replace(' PATTERN', '', $this->_element); $this->_element = str_replace(' PATTERN', '', $this->_element);
$this->_element = str_replace('ANY', '', $this->_element); $this->_element = str_replace('ANY', '', $this->_element);
$this->_element = str_replace('data-sitekey="DATA-SITEKEY"', '', $this->_element); $this->_element = str_replace('data-sitekey="DATA-SITEKEY"', '', $this->_element);
$this->_element = str_replace('role="ROLE"', '', $this->_element);
} }
/** /**

View File

@@ -20,7 +20,8 @@ class TypeOpenAny extends FormAttributes implements IForm
self::FORM_ATTRIBUTE_ALT => '', self::FORM_ATTRIBUTE_ALT => '',
self::FROM_ATTRIBUTE_STYLE => '', self::FROM_ATTRIBUTE_STYLE => '',
self::FORM_ATTRIBUTE_DATA_SITEKEY => '', 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( ) private function _setElement( )
{ {
$this->_element = '<ANY type="TYPE" href="HREF" src="SRC" alt="ALT" style="STYLE" data-sitekey="DATA-SITEKEY" ID CLASS>' . 'VALUE' . "\n"; $this->_element = '<ANY type="TYPE" href="HREF" src="SRC" alt="ALT" style="STYLE" data-sitekey="DATA-SITEKEY" ID CLASS role="ROLE">' . 'VALUE' . "\n";
} }
} }