1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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;
- }
- }
- }
|