XML/EXPAT patches for empty elements

From: Date: Mon, 30 Apr 2001 17:54:08 +0000
Subject: XML/EXPAT patches for empty elements
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53109@lists.php.net to get a copy of this message
Hi! The problem is: expat parser produces no reports on the score of situation when the document contains <img .../> <body .../> etc. tags where there is no data and end tag. So, the workaround was to add a new function to expat, which is called by the PHP parser every time for empty entries when the end tag handler function launches (BEFORE THE END TAG HANDLER!!!!!!). This avoids the situation of <img></img> in resulting HTML. I've uploaded patches for current PHP(CVS) and expat(CVS) versions to <a href=http://www.legko.ru/Soft target=Soft>http://www.legko.ru/Soft</a> Have a nice day!

« previous php.dev (#53109) next »