<?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>6640</bug_id>
          
          <creation_ts>2006-01-17 20:58:33 -0800</creation_ts>
          <short_desc>onload() event handler never called for created script element</short_desc>
          <delta_ts>2006-08-18 16:47:31 -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>JavaScriptCore</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5812</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10489</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Jesse Costello-Good">jesse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pshah</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28772</commentid>
    <comment_count>0</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2006-01-17 20:58:33 -0800</bug_when>
    <thetext>When loading a script file dynamically using the following common DOM technique, the onload() event 
handler is never called. 

var element = document.createElement(&quot;script&quot;);
element.src = &quot;/path/to/my/file.js&quot;;
element.type = &apos;text/javascript&apos;;
element.language = &apos;javascript&apos;;
element.onload = function() { window.alert(this.src + &quot; loaded&quot;); };
document.getElementsByTagName(&quot;head&quot;)[0].appendChild(element);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28774</commentid>
    <comment_count>1</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2006-01-17 20:58:56 -0800</bug_when>
    <thetext>I am evaluating Safari for a port of TIBCO(R) General Interface, a mature AJAX platform that is currently IE 
only. Fixing this bug would make the port more feasible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28775</commentid>
    <comment_count>2</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2006-01-17 21:00:05 -0800</bug_when>
    <thetext>I see that this bug is fixed in the most recent nightly build. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28788</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2006-01-17 22:02:13 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 5812 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38640</commentid>
    <comment_count>4</comment_count>
    <who name="Parag Shah">pshah</who>
    <bug_when>2006-04-05 19:30:00 -0700</bug_when>
    <thetext>*** Bug 8204 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>