Bug 49592 - ContentEditable image drap&drop looses wrapping anchor
Summary: ContentEditable image drap&drop looses wrapping anchor
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 05:58 PST by Tobiasz Cudnik
Modified: 2022-12-17 17:28 PST (History)
4 users (show)

See Also:


Attachments
TC page for reproduction (162 bytes, text/html)
2010-11-16 05:59 PST, Tobiasz Cudnik
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobiasz Cudnik 2010-11-16 05:58:09 PST
In contentEditable mode (design mode) after an image drap&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.
Comment 1 Tobiasz Cudnik 2010-11-16 05:59:08 PST
Created attachment 73987 [details]
TC page for reproduction
Comment 2 Tobiasz Cudnik 2010-11-16 06:01:02 PST
This is a follow up of the ticket on a CKEditor's issue tracker. 
http://dev.ckeditor.com/ticket/6679
Comment 3 Daniel Bates 2011-10-02 20:01:50 PDT
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.
Comment 4 Ahmad Saleem 2022-12-17 17:28:13 PST
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 <a> wrapper from <image>.

It is also an issue with Chrome Canary 111 and only Firefox Nightly 110 keeps the wrapper around <img> tag. Just wanted to share latest testing result. Thanks!