#46136 [Opn->Bgs]: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID xxx already defined
| From: | rrichards@php.net | Date: | Sat, 20 Sep 2008 14:53:00 +0000 |
| Subject: | #46136 [Opn->Bgs]: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID xxx already defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129130@lists.php.net to get a copy of this message | ||
ID: 46136
Updated by: rrichards@php.net
Reported By: mathieu dot lagana at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: windows
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You're using HTML 4 rules to load an XHTML document. Either use the
load() method to parse as XML or the libxml_use_internal_errors()
function to ignore the warnings.
Previous Comments:
------------------------------------------------------------------------
[2008-09-20 14:29:13] tularis@php.net
Could you please explain what you believe the actual BUG is here? "Set
warning on anchor id" by itself doesn't tell me anything. Please explain
_why_ you believe what you see is wrong.
------------------------------------------------------------------------
[2008-09-20 11:41:24] mathieu dot lagana at gmail dot com
Description:
------------
Set warning on anchor id
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID xxx already
defined in http://www.w3.org, line: 428
Reproduce code:
---------------
<?php
$dom=new DOMDocument();
$dom->loadHTMLFile("http://www.w3.org");
//idem for loadHTML()
Expected result:
----------------
nothhing
Actual result:
--------------
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID technologies
already defined in http://www.w3.org, line: 94
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID news already
defined in http://www.w3.org, line: 264
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID search
already defined in http://www.w3.org, line: 315
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID contents
already defined in http://www.w3.org, line: 332
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID Offices
already defined in http://www.w3.org, line: 428
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID systems
already defined in http://www.w3.org, line: 482
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID donors
already defined in http://www.w3.org, line: 493
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID footnotes
already defined in http://www.w3.org, line: 496
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46136&edit=1