From: c00lways at gmail dot com Operating system: windows 2000 PHP version: 5.2.0 PHP Bug Type: DOM XML related Bug description: loadhtml problem when html contains javascript that contain tag in string var
Description: ------------ odd problem with javascript which contains tag within the string, example: ----------- <html> <body> <script> var xx; xx = "<select name='aa' id='aa'></select>"; </sript> </body> </html> ------------ domdocumentobject->loadHTML( _the_string_above_ ); when saveHTML, will return ( missing </select> ) <html> <body> <script> var xx; xx = "<select name='aa' id='aa'>"; </sript> </body> </html> it happens to all kind of close tag within the javascript. i'm currently doing a workaround by joining the string instead of a direct close tag xx = "<select name='aa' id='aa'><" + "/select>"; please advice, thank you :) best regards, James -- Edit bug report at http://bugs.php.net/?id=39409&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39409&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39409&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39409&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39409&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39409&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39409&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39409&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39409&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39409&r=support Expected behavior: http://bugs.php.net/fix.php?id=39409&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39409&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39409&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39409&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39409&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39409&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39409&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39409&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39409&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39409&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39409&r=mysqlcfg