Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 947949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:09:49+00:00 2026-05-15T23:09:49+00:00

The following is an unexpected warning message the server is giving me: Warning: DOMDocument::loadHTML()

  • 0

The following is an unexpected warning message the server is giving me:

Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: ID page3 already defined in Entity, line: 25 in C:\Program Files\Zend\Apache2\htdocs\joom\templates\valueTemplate\updateRecord.php on line 74
.

.

The above warning message is generated upon execution of the following code:

$html = new DOMDocument();
$html->loadHTML( $fetchedData[ 'content' ] );

.

The message is unexpected as there are no duplicate uses of ‘page3’ as an ID in the HTML document. ‘page3’, however, is used many times in the HTML document as the value of a name attribute. For example:

<li id="index00025" name="page3" class="fooBar"></li>

.

Any help on this would be wholeheartedly appreciated. Thanks in advance.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:09:49+00:00Added an answer on May 15, 2026 at 11:09 pm

    This is expected behavior. In HTML, the attribute “name” introduces an id, just like the attribute “id” itself, in case the element is a (I don’t know anything about libxml internals, so I don’t know under which circumstances elem can be NULL).

    /**
     * xmlIsID:
     * [...]
     *
     * Determine whether an attribute is of type ID. In case we have DTD(s)
     * then this is done if DTD loading has been requested. In the case
     * of HTML documents parsed with the HTML parser, then ID detection is
     * done systematically.
     * [...]
     */
    int
    xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
        [...]
        } else if (doc->type == XML_HTML_DOCUMENT_NODE) {
            if ((xmlStrEqual(BAD_CAST "id", attr->name)) ||
            ((xmlStrEqual(BAD_CAST "name", attr->name)) &&
            ((elem == NULL) || (xmlStrEqual(elem->name, BAD_CAST "a")))))
            return(1);
        return(0);    
        }
        [...]
    }
    

    Source: valid.c on the libxml distribution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an unexpected T_CONCAT_EQUAL error on a line of the following form: $arg1
I compiled the following program with gcc 4.4.1 and I get unexpected output (Well,
Just installed the SDK and ADK. while updating, it gives the following error: unexpected
I have tried with the following, but it just says & was unexpected at
I've setup-a-msysgit-server-with-copssh-on-windows, following Tim Davis' guide and I was now learning how to use
I have the following C++ code and when I run the program sometimes it
I'm Posting the following to the Solr Server: <add> <doc> <field name=uniqueid>5453543</field> <field name=modifieddate>2008-12-03T15:49:00Z</field>
I have the following code, and it's giving me a parse error when run.
One of our users received the following unexpected error yesterday whilst using our Silverlight
From rails console, running the following gives an unexpected result: User.where(:id => [1,2]).where(:id =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.