Skip to content

Commit 2ef9540

Browse files
author
Greg Bowler
authored
Fix textarea value attribute (#255)
* Improve compatibility with traits' constant usage * Get and set textarea value Fixes #254 * Tidy PR footprint * Remove coverage from git * Remove phpunit result cache from git
1 parent b51ea18 commit 2ef9540

37 files changed

+9
-8695
lines changed

src/Element.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,15 @@ private function value_get_input() {
442442
return $this->getAttribute("value");
443443
}
444444

445+
private function value_set_textarea(string $newValue) {
446+
$this->innerHTML = $newValue;
447+
return $this->innerHTML;
448+
}
449+
450+
private function value_get_textarea() {
451+
return $this->innerHTML;
452+
}
453+
445454
public function isSelectOptionSelected(Element $option) {
446455
return $option->hasAttribute('selected') && $option->getAttribute('selected');
447456
}

test/phpunit/.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)