note 86450 added to domdocument.loadhtml
| From: | jamesedwardcooke+php at gmail dot com | Date: | Mon, 20 Oct 2008 06:37:08 +0000 |
| Subject: | note 86450 added to domdocument.loadhtml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145497@lists.php.net to get a copy of this message | ||
Using loadHTML() automagically sets the doctype property of your DOMDocument instance(to the doctype
in the html, or defaults to 4.0 Transitional). If you set the doctype with DOMImplementation it will
be overridden.
I assumed it was possible to set it and then load html with the doctype I defined(in order to decide
the doctype at runtime), and ran into a huge headache trying to find out where my doctype was going.
Hopefully this helps someone else.
----
Server IP: 209.41.74.194
Probable Submitter: 24.174.73.191
----
Manual Page -- http://www.php.net/manual/en/domdocument.loadhtml.php
Edit -- https://master.php.net/note/edit/86450
Del: integrated -- https://master.php.net/note/delete/86450/integrated
Del: useless -- https://master.php.net/note/delete/86450/useless
Del: bad code -- https://master.php.net/note/delete/86450/bad+code
Del: spam -- https://master.php.net/note/delete/86450/spam
Del: non-english -- https://master.php.net/note/delete/86450/non-english
Del: in docs -- https://master.php.net/note/delete/86450/in+docs
Del: other reasons-- https://master.php.net/note/delete/86450
Reject -- https://master.php.net/note/reject/86450
Search -- https://master.php.net/manage/user-notes.php