DOM Bug?



Hello

Reproduce code:
---------------
Html:
this textarea has inside it a reference to an external image
[...]
<textarea><img src="foobar" /></textarea>
[...]


Php:

$documentx = new DOMDocument();
$documentx->loadHTML($data);
$textareas = $documentx->getElementsByTagName("textarea");
foreach($textareas AS $textarea){
   print($textarea->getAttribute("value"));
   print($textarea->textContent);
}

I know there's no "value" attribute in the textarea, but if the content of
said textarea is wrapped in < and > there's no way to read it.

ideas?
--
e ziocan
.



Relevant Pages

  • Re: when I add HTML to innerHTML, FireFox renders it as HTML, but IE shows it as plain text
    ... Forget about innerHTML, use DOM. ... get the value of the textarea first. ... divRef is a reference to the DIV element with id="inputDiv". ... communicationBoxRef is a reference to a div too. ...
    (comp.lang.javascript)
  • Re: Add paragraph breaks in textarea
    ... paragraph breaks into the textarea. ... textareas contain plain text, HTML in them will be displayed as plain text. ... 'which' is a property of the event object in Gecko-based browsers inherited from old Netscape, you may want to use a different name. ... Since it's a reference to a select element, ...
    (comp.lang.javascript)
  • Re: Limits on text box on mobile IE.
    ... I looked up TEXTAREA in the nearest reference (Dreamweaver 8's online ... "A label for the textarea element must be placed before or after the ... But if the OS is windows windows CE 4.2, ...
    (uk.net.web.authoring)
  • Re: DOM Bug?
    ... this textarea has inside it a reference to an external image ... Php: ... $documentx = new DOMDocument; ...
    (alt.php)
  • Re: DOM Bug?
    ... | this textarea has inside it a reference to an external image ... | $documentx = new DOMDocument; ...
    (alt.php)