summaryrefslogtreecommitdiff
path: root/inc/Form/HTMLElement.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Form/HTMLElement.php')
-rw-r--r--inc/Form/HTMLElement.php23
1 files changed, 2 insertions, 21 deletions
diff --git a/inc/Form/HTMLElement.php b/inc/Form/HTMLElement.php
index 06f27d736..591cf472f 100644
--- a/inc/Form/HTMLElement.php
+++ b/inc/Form/HTMLElement.php
@@ -8,33 +8,14 @@ namespace dokuwiki\Form;
*
* @package dokuwiki\Form
*/
-class HTMLElement extends Element {
+class HTMLElement extends ValueElement {
- /**
- * @var string the raw HTML held by this element
- */
- protected $html = '';
/**
* @param string $html
*/
public function __construct($html) {
- parent::__construct('html');
- $this->val($html);
- }
-
- /**
- * Get or set the element's content
- *
- * @param null|string $html
- * @return string|$this
- */
- public function val($html = null) {
- if($html !== null) {
- $this->html = $html;
- return $this;
- }
- return $this->html;
+ parent::__construct('html', $html);
}
/**