ID:               48352
 Updated by:       [email protected]
 Reported By:      php at xxlwebdesign dot de
 Status:           Open
-Bug Type:         DOM XML related
+Bug Type:         Feature/Change Request
 Operating System: Gentoo
 PHP Version:      5.3CVS-2009-05-21 (snap)
-Assigned To:      
+Assigned To:      rrichards
 New Comment:

This method was designed specifically for DOMNode based classes only. 
changing to feature request and I will consider and evaluate expanding

its functionality.


Previous Comments:
------------------------------------------------------------------------

[2009-05-21 09:38:59] php at xxlwebdesign dot de

Description:
------------
The method DOMDocument->registerNodeClass does not work with
DOMNodeList

Reproduce code:
---------------
<?php

class MyNodeList extends DOMNodeList
{
        
}

$dom = new DOMDocument();
$dom->registerNodeClass('DOMNodeList', 'MyNodeList');

?>

Actual result:
--------------
Fatal error: DOMDocument::registerNodeClass() [<a
href='domdocument.registernodeclass'>domdocument.registernodeclass</a>]:
Class DOMNodeList is not derived from DOMNode. in ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48352&edit=1

Reply via email to