Bug #18059 Updated: Strange output of contents of JS-script
| From: | vitya at viking-motors dot com dot ua | Date: | Sat, 29 Jun 2002 09:41:46 +0000 |
| Subject: | Bug #18059 Updated: Strange output of contents of JS-script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12514@lists.php.net to get a copy of this message | ||
ID: 18059
Updated by: vitya@viking-motors.com.ua
-Reported By: vitya@vikng-motors.com.ua
+Reported By: vitya@viking-motors.com.ua
Status: Open
Bug Type: Output Control
Operating System: FreeBSD 4.5-RC
PHP Version: 4.1.2
New Comment:
My email: vitya@viking-motors.com.ua
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 05:32:07] vitya@viking-motors.com.ua
My code:
-------------
<script language=javascript>
function img_view(url, w, h, t)
{
imagewin = window.open("","_blank","width="+w+",height="+h);
imagewin.document.write('bla-bla-bla');
}
</script>
--------------
I got this after php's work:
---------------
<script language=javascript>
function img_view(url, w, h, t)
{
imagewin = new Object() ;
imagewin.document.write('bla-bla-bla');
}
</script>
--------------------------
So, question is why php changed
imagewin = window.open("","_blank","width="+w+",height="+h);
with
imagewin = new Object() ;
???
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18059&edit=1