bug in domxml_get_element_by_id

From: Date: Thu, 06 Jun 2002 10:38:08 +0000
Subject: bug in domxml_get_element_by_id
Groups: php.dev 
Request: Send a blank email to php-dev+get-84928@lists.php.net to get a copy of this message
Recently the function domxml_get_element_by_id was changed from using an xpath query //*[@ID = '%s'] to actually using the ID hash from the DTD, which makes perfect sense. But for the following string: <!DOCTYPE doc [ <!ATTLIST child id ID #REQUIRED> ]> <doc> <child id="2">foo</child> <child id="4"> <entry>foo</entry> <title>hey there</title> </child> </doc> I get for $xml->ids() a list nodeset of 2 nodes, but nothing for $xml->get_element_by_id("4"); Broken? Dan -- ________________________________________________________________ Daniel Allen, <dan@mojavelinux.com> http://www.mojavelinux.com/ ________________________________________________________________ Real programmers don't change their wardrobe too often: there are no clothes stores that are open at two o'clock in the morning. ________________________________________________________________

« previous php.dev (#84928) next »