<?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>5367</bug_id>
          
          <creation_ts>2005-10-13 09:28:36 -0700</creation_ts>
          <short_desc>appendChild() on images created with new Image() fails (Image != HTMLImageElementImpl)</short_desc>
          <delta_ts>2006-01-16 15:25:57 -0800</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>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>3869</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Willison">swillison</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21980</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Willison">swillison</who>
    <bug_when>2005-10-13 09:28:36 -0700</bug_when>
    <thetext>Images created using new Image() that are appended to another node with appendChild throw a &quot;DOM 
Exception 8&quot;, a.k.a. DOM_NOT_FOUND_ERR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21981</commentid>
    <comment_count>1</comment_count>
      <attachid>4346</attachid>
    <who name="Simon Willison">swillison</who>
    <bug_when>2005-10-13 09:29:40 -0700</bug_when>
    <thetext>Created attachment 4346
Example HTML file demonstrating this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26860</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-27 15:30:38 -0800</bug_when>
    <thetext>This is due to &quot;Image&quot; not actually being an HTMLImageElementImpl.  khtml (on the KDE side) has already 
moved away from this.  We should do the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27734</commentid>
    <comment_count>3</comment_count>
    <who name="Maks Orlovich">maksim</who>
    <bug_when>2006-01-04 11:53:08 -0800</bug_when>
    <thetext>Note that the patch I merged is actually from andersca, and you have that in 
your bugzilla (along with some more copies of this same bug) 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28625</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2006-01-16 15:25:57 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 3869 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4346</attachid>
            <date>2005-10-13 09:29:40 -0700</date>
            <delta_ts>2005-10-13 09:29:40 -0700</delta_ts>
            <desc>Example HTML file demonstrating this bug.</desc>
            <filename>safari-appendChild-Image-bug.html</filename>
            <type>text/html</type>
            <size>1146</size>
            <attacher name="Simon Willison">swillison</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPHRpdGxlPlNh
ZmFyaSBhcHBlbmRDaGlsZCBuZXcgSW1hZ2UgYnVnPC90aXRsZT4KPHNjcmlwdCB0eXBlPSJ0ZXh0
L2phdmFzY3JpcHQiPgp3aW5kb3cub25sb2FkID0gZnVuY3Rpb24oKSB7CiAgYWRkQ3JlYXRlZElt
YWdlKCk7CiAgYWRkTmV3SW1hZ2UoKTsKfQoKZnVuY3Rpb24gYWRkQ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