<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>14821</bug_id>
          
          <creation_ts>2007-07-30 17:51:11 -0700</creation_ts>
          <short_desc>document.write displays blank page when onclick</short_desc>
          <delta_ts>2007-08-03 05:22:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14709</dup_id>
          
          <bug_file_loc>http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pat">vincent.bradley</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3406</commentid>
    <comment_count>0</comment_count>
    <who name="Pat">vincent.bradley</who>
    <bug_when>2007-07-30 17:51:11 -0700</bug_when>
    <thetext>Also see
http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3405</commentid>
    <comment_count>1</comment_count>
      <attachid>15752</attachid>
    <who name="Pat">vincent.bradley</who>
    <bug_when>2007-07-30 17:54:06 -0700</bug_when>
    <thetext>Created attachment 15752
reduce test case

The text of the reduce test case:

&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function disp_prompt()
  {
  var name=prompt(&quot;Please enter your name&quot;,&quot;Harry Potter&quot;)
  if (name!=null &amp;&amp; name!=&quot;&quot;)
    {
    document.write(&quot;Hello &quot; + name + &quot;! How are you today?&quot;)
    }
  }
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type=&quot;button&quot; onclick=&quot;disp_prompt()&quot; value=&quot;Display a prompt box&quot; /&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3402</commentid>
    <comment_count>2</comment_count>
    <who name="Pat">vincent.bradley</who>
    <bug_when>2007-07-30 18:00:43 -0700</bug_when>
    <thetext>Tested on
MacOS 10.4.4
Safari 2.0.3 (417.8)

WinXP
Safari 3.0 (522.11.3)

S60 3.2
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3401</commentid>
    <comment_count>3</comment_count>
    <who name="Pat">vincent.bradley</who>
    <bug_when>2007-07-30 18:05:36 -0700</bug_when>
    <thetext>Fails on:
- MacOS 10.4.4 Safari 2.0.3 (417.8)
- WinXP Safari 3.0 (522.11.3)
- S60 3.2

Works on:
- IE 6.0
- Firefox 2.0.05

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3105</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-08-02 18:48:53 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 14709 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15752</attachid>
            <date>2007-07-30 17:54:06 -0700</date>
            <delta_ts>2007-07-30 17:54:06 -0700</delta_ts>
            <desc>reduce test case</desc>
            <filename>prompt_onclick.html</filename>
            <type>text/html</type>
            <size>376</size>
            <attacher name="Pat">vincent.bradley</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4NCmZ1bmN0aW9u
IGRpc3BfcHJvbXB0KCkNCiAgew0KICB2YXIgbmFtZT1wcm9tcHQoIlBsZWFzZSBlbnRlciB5b3Vy
IG5hbWUiLCJIYXJyeSBQb3R0ZXIiKQ0KICBpZiAobmFtZSE9bnVsbCAmJiBuYW1lIT0iIikNCiAg
ICB7DQogICAgZG9jdW1lbnQud3JpdGUoIkhlbGxvICIgKyBuYW1lICsgIiEgSG93IGFyZSB5b3Ug
dG9kYXk/IikNCiAgICB9DQogIH0NCjwvc2NyaXB0Pg0KPC9oZWFkPg0KPGJvZHk+DQoNCjxpbnB1
dCB0eXBlPSJidXR0b24iIG9uY2xpY2s9ImRpc3BfcHJvbXB0KCkiIHZhbHVlPSJEaXNwbGF5IGEg
cHJvbXB0IGJveCIgLz4NCg0KPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>