#48352 [Com]: Method registerNodeClass does not work with DOMNodeList

From: Date: Sun, 20 Sep 2009 21:17:13 +0000
Subject: #48352 [Com]: Method registerNodeClass does not work with DOMNodeList
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142617@lists.php.net to get a copy of this message
 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] rrichards@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



Thread (9 messages)

« previous php.bugs (#142617) next »