Bug 16067 - Image loses all properties when moved around in designMode
Summary: Image loses all properties when moved around in designMode
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://rtef.info/demo.htm
Keywords: InRadar, PlatformOnly
Depends on:
Reported: 2007-11-20 04:41 PST by Anders Jenbo
Modified: 2009-03-31 12:59 PDT (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Anders Jenbo 2007-11-20 04:41:06 PST
When moving a image in designMode the image will loos all it's propertys except the src="", it would seam that the image is reinserted rathere then moved, this makes it an invalid image as it no longer has an alt="" atribute and might significaltly change it's representation on the page (float, margin etc.).
Comment 1 Anders Jenbo 2007-11-20 10:29:11 PST
To test
go to HTML mode, put in the code for an image with some funny style to it, go back in to designmode, drag the image on to a different part of the test and watch as your attribtues be striped away.
Comment 2 Robert Blaut 2008-03-18 14:09:42 PDT
I cannot confirm the issue in the latest Webkit r31114 on Mac OS X 10.5. Anders, is it still visible in the latest Webkit nightly or Safari 3.1 for Windows?
Comment 3 Anders Jenbo 2008-03-18 16:26:57 PDT
The issue is still there

Go to
Switch to HTML mode

Insert this code

<img src="http://www.google.com/intl/da_ALL/images/logo.gif" alt="important description" width="99" height="120" /> move it here -&gt;

Switch to RichText mode

Move the image to the other end of the text (drag and drop)

Result: image is moved and only the image url survives, all other properties are removed from the image and as alt is completely striped it isn't even valid any more.
Comment 4 Robert Blaut 2008-03-18 16:51:04 PDT
I still cannot confirm the bug on Mac OS X. So maybe the bug is PlatformOnly (visible only on Windows). I try to reproduce it on Windows tomorrow. Anyway, thank you for the details!
Comment 5 Anders Jenbo 2008-03-18 16:59:54 PDT
I belive I saw it first on XP and today on Vista, I'll try it on OS X 10.4 tomorrow, not sure it will be the nightly build though.
Comment 6 Robert Blaut 2008-03-19 00:09:36 PDT
I tested the issue in the latest Webkit nightly and I can confirm existence of the bug but only on Windows.
Comment 7 Alexey Proskuryakov 2008-03-19 00:14:06 PDT
Comment 8 Anders Jenbo 2008-03-19 14:21:48 PDT
Yep i got the same here, its on vista and xp, but not on OS 10.4
Comment 9 webkit 2009-03-31 12:59:34 PDT
Windows only. Confirmed with the CKEditor nightly build:

Just place an anchor anywhere in the text. Dragging it, on drop, it disappears, and the "magic" <img> tag gets outputted in the source view.