|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-12 02:56 UTC] schwier at bigfoot dot com
[2002-06-12 07:14 UTC] chregu@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 14:00:01 2025 UTC |
Reopening this bug. I understand that the function should use the id hash as built from reading the DTD, which this function now attempts to do. However, now the result of get_element_by_id is NULL Here is the output running the bleeding edge version of domxml from the following code: output: NULL code: <?php $string = <<< _END <!DOCTYPE html [ <!ATTLIST span id ID #REQUIRED> ]> <html> <head><title> Test </title></head> <body> <h1>Test</h1> <span id="test">Foo</span> </body> </html> _END; $xml = domxml_open_mem($string); $n = $xml->get_element_by_id("test"); var_dump($n); ?> Clearly something is happening. If I run $xml->ids() I get an array of one domnode, just as I would expect.