|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits              [2014-09-24 20:08 UTC] fmargaine@php.net
 
-Assigned To:
+Assigned To: fmargaine
  [2014-10-09 09:02 UTC] fmargaine@php.net
  [2014-11-17 14:46 UTC] fmargaine@php.net
 
-Status: Assigned
+Status: Closed
  [2014-11-17 14:46 UTC] fmargaine@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
Description: ------------ DOMNodeList should implement ArrayAccess. The write methods should either silently fail or throw a DOMException (probably the latter). It would probably also be an idea to implement Countable at the same time, allowing for better interop between node lists and arrays of nodes. Test script: --------------- <?php $html = <<<HTML <div>data</div> HTML; $doc = new DOMDocument; $doc->loadHTML($html); var_dump($doc->getElementsByTagName('div')[0]->textContent); Expected result: ---------------- string(4) "data" Actual result: -------------- Fatal error: Cannot use object of type DOMNodeList as array in...