From: sathia dot musso at gmail dot com Operating system: linux PHP version: 5.2.5 PHP Bug Type: DOM XML related Bug description: getAttribute can't find textarea value
Description: ------------ I know there's no such attribute value="" but you can't access the content ($textarea->textContent will not work as well) of that if the content inside is wrapped within "lt" and "gt" <textarea><won't read></textarea> (ie when you read embed tags from textarea) Reproduce code: --------------- $documentx = new DOMDocument(); $documentx->loadHTML($data); $textareas = $documentx->getElementsByTagName("textarea"); foreach($textareas AS $textarea){ print($textarea->getAttribute("value")); } <textarea><img src="foobar" /></textarea> -- Edit bug report at http://bugs.php.net/?id=44768&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44768&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44768&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44768&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44768&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44768&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44768&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44768&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44768&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44768&r=support Expected behavior: http://bugs.php.net/fix.php?id=44768&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44768&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44768&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44768&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44768&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44768&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44768&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44768&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44768&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44768&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44768&r=mysqlcfg