PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Tree » Bug #89

XML attribute names should not be treated as case-insensitive

Details

Submitted2003-10-12 19:07 UTC
Fromc960657 at hotmail dot com
Assigneddavey
StatusClosed
PackageXML_Tree
PHP VersionIrrelevant
OSIrrelevant
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.