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.
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 circumstanceselemcan be NULL).Source:
valid.con the libxml distribution.