#50362 [Com]: documentation bug DOMAttr DOMNode

From: Date: Fri, 11 Dec 2009 22:18:17 +0000
Subject: #50362 [Com]: documentation bug DOMAttr DOMNode
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3454@lists.php.net to get a copy of this message
ID: 50362 Comment by: daniel dot egeberg at gmail dot com Reported By: tlaguz at wp dot pl Status: Open Bug Type: Documentation problem Operating System: Vista x64 PHP Version: 5.2.11 New Comment: That's the case in PHP as well. daniel@daniel-laptop:~$ php -r "var_dump(is_subclass_of('DOMAttr', 'DOMNode'));" bool(true) which is also documented in the PHP manual: http://php.net/manual/en/class.domattr.php Previous Comments: ------------------------------------------------------------------------ [2009-12-10 09:59:58] Dormilich at netscape dot net according to the DOM (http://www.w3.org/TR/DOM-Level-2-Core/idl-definitions.html), DOMNamedNodeMap::item returns a DOMNode, which is the parent of DOMAttr. ------------------------------------------------------------------------ [2009-12-02 19:09:30] tlaguz at wp dot pl Description: ------------ Now: DOMNode DOMNamedNodeMap::item ( int $index ) It should be: DOMAttr DOMNamedNodeMap::item ( int $index ) My PHP returns that value (DOMAttr). Reproduce code: --------------- --- From manual page: domnamednodemap.item#Description --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50362&edit=1

« previous php.doc.bugs (#3454) next »