ID: 48352 Comment by: goetas at lignano dot it Reported By: php at xxlwebdesign dot de Status: Open Bug Type: Feature/Change Request Operating System: Gentoo PHP Version: 5.3CVS-2009-05-21 (snap) Assigned To: rrichards New Comment:
this would be really helpful! Previous Comments: ------------------------------------------------------------------------ [2009-05-22 12:53:55] php at xxlwebdesign dot de This would be very nice! ------------------------------------------------------------------------ [2009-05-22 10:49:41] rricha...@php.net This method was designed specifically for DOMNode based classes only. changing to feature request and I will consider and evaluate expanding its functionality. ------------------------------------------------------------------------ [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