3 namespace dokuwiki\Form
;
8 * Creates a self closing HTML tag
10 * @package dokuwiki\Form
12 class TagElement
extends ValueElement
16 * @param array $attributes
18 public function __construct($tag, $attributes = [])
20 parent
::__construct('tag', $tag, $attributes);
24 * The HTML representation of this element
28 public function toHTML()
30 return '<' . $this->val() . ' ' . buildAttributes($this->attrs()) . ' />';