12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Symfony\Component\DomCrawler\Field;
- class TextareaFormField extends FormField
- {
-
- protected function initialize()
- {
- if ('textarea' !== $this->node->nodeName) {
- throw new \LogicException(sprintf('A TextareaFormField can only be created from a textarea tag (%s given).', $this->node->nodeName));
- }
- $this->value = '';
- foreach ($this->node->childNodes as $node) {
- $this->value .= $node->wholeText;
- }
- }
- }
|