From: queen dot zeal at gmail dot com Operating system: PHP version: 5.2.8 PHP Bug Type: DOM XML related Bug description: Re: DOMDocument's inferior parsing of malformed HTML
Description: ------------ Re: http://bugs.php.net/bug.php?id=47209 I don't agree with the closure of the bug report and since it would appear that I cannot make further posts since the report has been closed, I'm making a new one. Anyway, that the HTML in the above bug report is invalid doesn't mean that it's processing can't be improved upon. Dismissing this as even a bug is rather like dismissing a buffer overflow in unserialize() because the input is invalid. In both cases, the processing of invalid input needs improvement. In this case, it's not a security issue, but that doesn't mean it's not an issue, all the same. Closing the bug report saying, simply, that it's invalid HTML, and leaving it at that is rather like the Firefox developers saying "it's invalid HTML" and leaving it at that. Seriously, half the web contains invalid HTML - browsers parse it, for the most part, without any problems. Maybe you think Firefox should just refuse to render any HTML that's invalid? If they did that, I can guarantee you that people would begin to abandon Firefox left and right and Internet Explorer would regain the market dominance they once had. -- Edit bug report at http://bugs.php.net/?id=47210&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47210&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47210&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47210&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47210&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47210&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47210&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47210&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47210&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47210&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47210&r=support Expected behavior: http://bugs.php.net/fix.php?id=47210&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47210&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47210&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47210&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47210&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47210&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47210&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47210&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47210&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47210&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47210&r=mysqlcfg