From 69a86b6d4ed75c00c17f26f0410c69bbf23a4226 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Fri, 12 Aug 2022 12:21:55 +0100 Subject: [PATCH] Html attribute (#384) * fix: allow name attribute on options * revert: fix: allow name attribute on options * readonly on select element * revert: readonly on select element * revert: placeholder on textarea element * required on textarea element --- src/HTMLElement.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HTMLElement.php b/src/HTMLElement.php index 0c2d39f9..e54ae6dc 100644 --- a/src/HTMLElement.php +++ b/src/HTMLElement.php @@ -2007,6 +2007,7 @@ protected function __prop_get_required():bool { $this->allowTypes( ElementType::HTMLButtonElement, ElementType::HTMLInputElement, + ElementType::HTMLTextAreaElement, ); return $this->hasAttribute("required"); } @@ -2015,6 +2016,7 @@ protected function __prop_set_required(bool $value):void { $this->allowTypes( ElementType::HTMLButtonElement, ElementType::HTMLInputElement, + ElementType::HTMLTextAreaElement, ); if($value) { $this->setAttribute("required", "");