[Tickets #4710] DOM handler may elicit notices on undefined variable tagName

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Nov 29 00:40:33 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4710
-----------------------------------------------------------------------
 Ticket             | 4710
 Created By         | wrobel at gentoo.org
 Summary            | DOM handler may elicit notices on undefined variable tagName
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
+New Attachment     | DOM.php
-----------------------------------------------------------------------


wrobel at gentoo.org (2006-11-29 00:40) wrote:

The property "tagName" is only defined for DOM objects of type DOMElement.

The call __get('tagname') on Horde_DOM_Node results in notices if the node
is something else than a DOMElement.

I'm not certain if the code should return an empty value or an error in
order to force the upstream class to check if it is an Element or another
node type.

I checked the original script but it seems to accept that there might be
notices:

http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt




More information about the bugs mailing list