xml:id and getElementById Issue
| From: | C Drozdowski | Date: | Wed, 16 Mar 2005 15:50:52 +0000 |
| Subject: | xml:id and getElementById Issue | ||
| Groups: | php.xml.dev | ||
| Request: | Send a blank email to php-xml-dev+get-547@lists.php.net to get a copy of this message | ||
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.