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

From: Date: Fri, 22 May 2009 10:49:42 +0000
Subject: #48352 [Opn]: Method registerNodeClass does not work with DOMNodeList
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137638@lists.php.net to get a copy of this message
 ID:               48352
 Updated by:       rrichards@php.net
 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



Thread (9 messages)

« previous php.bugs (#137638) next »