Home » XML » XML_Tree » Bug #89
XML attribute names should not be treated as case-insensitive
Details
| Submitted | 2003-10-12 19:07 UTC |
|---|---|
| From | c960657 at hotmail dot com |
| Assigned | davey |
| Status | Closed |
| Package | XML_Tree |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2003-10-12 19:07 UTC] c960657 at hotmail dot com
Description:
------------
The Node::{get|set}Attribute() functions convert the attribute name to lower case before handling it. In XML attribute names are case-sensitive, i.e. <lorem foo="bar"> and <lorem FOO="bar"> are not equivalent.
When called on the element <lorem foo="bar">, $node->getAttribute('FOO') currently returns "bar" which is wrong. Instead it should return NULL.