|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46136 DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID xxx already defined
Submitted: 2008-09-20 11:41 UTC Modified: 2008-09-20 14:52 UTC
From: mathieu dot lagana at gmail dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.2.6 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mathieu dot lagana at gmail dot com
New email:
PHP Version: OS:


 [2008-09-20 11:41 UTC] mathieu dot lagana at gmail dot com
Set warning on anchor id 

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID xxx already defined in, line: 428

Reproduce code:

$dom=new DOMDocument();
//idem for loadHTML()

Expected result:

Actual result:
DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID technologies already defined in, line: 94

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID news already defined in, line: 264

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID search already defined in, line: 315

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID contents already defined in, line: 332

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID Offices already defined in, line: 428

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID systems already defined in, line: 482

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID donors already defined in, line: 493

DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: ID footnotes already defined in, line: 496


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-20 14:29 UTC]
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 14:52 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

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.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 02:01:23 2020 UTC