|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-02 03:41 UTC] drgroove at gmail dot com
[2012-04-02 04:13 UTC] aharvey@php.net
-Status: Open
+Status: Suspended
[2012-04-02 04:13 UTC] aharvey@php.net
[2016-02-04 07:45 UTC] cweiske@php.net
[2020-01-31 13:56 UTC] matthewheroux at gmail dot com
[2021-07-21 00:48 UTC] apostnikov at gmail dot com
[2021-07-21 13:24 UTC] apostnikov at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 16:00:01 2025 UTC |
Description: ------------ Loading HTML documents through DOMDocument->loadHTMLFile(), when the HTML file contains certain new HTML5 tags, results in this error: Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here} <footer> is a new HTML5 tag. The error appears for other HTML5 tags as well (eg, <header>). Test script: --------------- // TEST.html <header> Some text here </header> // TEST.php <?php $dom_document = new DOMDocument(); $dom_document->loadHTMLFile("TEST.html"); ?> Expected result: ---------------- DOMDocument should not fail on HTML5 tags. Actual result: -------------- Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: Tag footer invalid in {file path here}