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", "");