php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #44887 Improve DOM loadHTML loading speed
Submitted: 2008-05-02 02:00 UTC Modified: 2008-05-02 10:02 UTC
From: xwisdom at yahoo dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
 [2008-05-02 02:00 UTC] xwisdom at yahoo dot com
Description:
------------
I would like to see some speed improvement for DOMDocument->loadHTML(). At the moment it takes a much longer time to load an xhtml document than would loadXML().

Make the loading/parsing much faster will be a great improvement for PHP DOM processing.






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-02 10:02 UTC] rrichards@php.net
Functionality provided by third party lib. Due to HTML being "broken 
syntax" the loadHTML method needs to perform numerous checks and then 
try to fix things in attempt to create proper XML, unlike using the 
loadXML method where proper XML is assumed so parser does not need to 
perform many of the checks nor try to fix things.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 02:01:28 2024 UTC