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

From: Date: Fri, 22 May 2009 12:53:55 +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-137640@lists.php.net to get a copy of this message
 ID:               48352
 Comment by:       php at xxlwebdesign dot de
 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 very nice!


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

[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 (#137640) next »