xml:id and getElementById Issue
[email protected] (C Drozdowski) Wed, 16 Mar 2005 10:50:52 -0500
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <2005031610505275249%cd@earthlinknet> |
Howdy, As per the discussion at http://blog.bitflux.ch/wiki/Talk:GetElementById_Pitfalls, DOMDocument::getElementByID() doesn't work with xml:id if the DOMDocument is being created in code. It only works when the document is either loaded from a string or from a file. As per the discussion, this is an issue with libxml2. As of libxml2.6.17, it still doesn't work. I'm curious as to whether the libxml2 developers are aware of this and what the reason is for this because it really stinks. BTW- I read somewhere that it minimum libxml2 version for PHP 5.1 should be 2.6.0. Based on my brief experience, I would strongly urge the minimum to be > 2.6.9. It would save many headaches for developers. Thanks for the help.