|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-29 16:15 UTC] derick@php.net
[2007-07-29 21:10 UTC] linus dot martensson at elplan-gm dot se
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ DOMNamedNodeMap->getNamedItem() is case-sensitive, the ability to change this would be useful in templating systems. Add a second parameter for case-sensitive? Reproduce code: --------------- $xml = new DOMDocument(); $xml->loadXML('<html><head><!--yadayada--></head><body><div Id="testid"></div></body></html>'); $element = $xml->getElementById('testid'); echo $element->attributes->getNamedItem('id'); Expected result: ---------------- should echo "testid", the name of the element retrieved. Actual result: -------------- Echoes nothing, as the 'Id' in the xml is spelt with a capital I.