<?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>49592</bug_id>
          
          <creation_ts>2010-11-16 05:58:09 -0800</creation_ts>
          <short_desc>ContentEditable image drap&amp;drop looses wrapping anchor</short_desc>
          <delta_ts>2022-12-17 17:28:13 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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="Tobiasz Cudnik">tobiasz.cudnik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dbates</cc>
    
    <cc>enrica</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>309694</commentid>
    <comment_count>0</comment_count>
    <who name="Tobiasz Cudnik">tobiasz.cudnik</who>
    <bug_when>2010-11-16 05:58:09 -0800</bug_when>
    <thetext>In contentEditable mode (design mode) after an image drap&amp;drop operation, anchor wrapping such image is lost.

Reproduced in Chromium 7.0.517.44 (0), using attached TC page.

Steps:
 1. Open TC page.
 2. Drag the image using the mouse to a different position that it was at the beggining.
 3. Use the inspector to see that a wrapping A element is now gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>309695</commentid>
    <comment_count>1</comment_count>
      <attachid>73987</attachid>
    <who name="Tobiasz Cudnik">tobiasz.cudnik</who>
    <bug_when>2010-11-16 05:59:08 -0800</bug_when>
    <thetext>Created attachment 73987
TC page for reproduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>309697</commentid>
    <comment_count>2</comment_count>
    <who name="Tobiasz Cudnik">tobiasz.cudnik</who>
    <bug_when>2010-11-16 06:01:02 -0800</bug_when>
    <thetext>This is a follow up of the ticket on a CKEditor&apos;s issue tracker. 
http://dev.ckeditor.com/ticket/6679</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476749</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-10-02 20:01:50 -0700</bug_when>
    <thetext>Confirmed that this issue also appears Mac nightly r96478.

Mac Firefox 7.0.1 and 6.0.2 preserve the anchor tag when dragging the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920306</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-12-17 17:28:13 -0800</bug_when>
    <thetext>I am able to reproduce this issue in Safari 16.2 and Safari Technology Preview 160 using instruction from Comment 0 and it does remove &lt;a&gt; wrapper from &lt;image&gt;.

It is also an issue with Chrome Canary 111 and only Firefox Nightly 110 keeps the wrapper around &lt;img&gt; tag. Just wanted to share latest testing result. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>73987</attachid>
            <date>2010-11-16 05:59:08 -0800</date>
            <delta_ts>2010-11-16 05:59:08 -0800</delta_ts>
            <desc>TC page for reproduction</desc>
            <filename>webkit-linkedimage-dragdrop.html</filename>
            <type>text/html</type>
            <size>162</size>
            <attacher name="Tobiasz Cudnik">tobiasz.cudnik</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5IGNvbnRlbnRFZGl0YWJsZT10cnVlPgoJZm9vIDxhIGhyZWY9IiNmb28iPjxp
bWcgc3JjPSJodHRwOi8vd3d3Lmdvb2dsZS5jb20vaW50bC9lbl9BTEwvaW1hZ2VzL3NycHIvbG9n
bzF3LnBuZyIgYWx0PSJJTUFHRSIgLz48L2E+IGJhcgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>