ID:               15918
 Updated by:       [EMAIL PROTECTED]
-Summary:          DomAttribute missing "type" property
 Reported By:      [EMAIL PROTECTED]
 Status:           Assigned
 Bug Type:         DOM XML related
 Operating System: Linux
 PHP Version:      4.1.2
 Assigned To:      jtate
 New Comment:

Let me allow myself to be less ambiguous on the last comment I made. 
It would be nice if every class also consistently had a property for
the name (no need for function I guess, since it would not be in the
way of the current design to make a function to return every property).
 The reason I say this is because often times, in the case of classes
such as DomText, the name is actually just "#text" and DomDocument is
"#document".  There is a chart on the w3c page for the nodeNames that
correspond to the different classes and without this property
consistent for every php DOM class, I have to use a huge switch
statement to run through the different types of nodes and figure out
what the name would be.  Just seems like a trivial fix that would make
the classes more complete.  Thanks!


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

[2002-03-07 10:15:06] [EMAIL PROTECTED]

This should be a quick fix.

------------------------------------------------------------------------

[2002-03-06 19:37:26] [EMAIL PROTECTED]

It appears that the type property is missing from the DomAttribute
class, which makes it quite difficult to determine the type of node,
since it is necessary to code a workaround for cases where this
property is missing.  It would be nice if there was a function nodeType
that would return this, and possibly a function nodeName to return
other rather case sensitive results.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15918&edit=1

Reply via email to