note 54777 added to ref.dom
| From: | php at webdevelopers dot cz | Date: | Thu, 14 Jul 2005 19:05:37 +0000 |
| Subject: | note 54777 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91984@lists.php.net to get a copy of this message | ||
Never use
$dom->resolveExternals=true;
when parsing XHTML document that has the DOCTYPE declaration with DTD URL specified in it.
Otherwise parsing the XHTML with DOCTYPE like this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
will result in PHP/DOM downloading the DTD file from W3C site when parsing your document. It will
add extra delay to your script - I experienced that $dom->load()'s total time was from 1 to
16 seconds.
elixon
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54777
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54777&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54777&report=yes
Search -- http://master.php.net/manage/user-notes.php