WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
16067
Image loses all properties when moved around in designMode
https://bugs.webkit.org/show_bug.cgi?id=16067
Summary
Image loses all properties when moved around in designMode
Anders Jenbo
Reported
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.).
Attachments
Add attachment
proposed patch, testcase, etc.
Anders Jenbo
Comment 1
2007-11-20 10:29:11 PST
To test
http://rtef.info/demo.htm
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.
Robert Blaut
Comment 2
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?
Anders Jenbo
Comment 3
2008-03-18 16:26:57 PDT
The issue is still there Go to
http://rtef.info/demo.htm
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 -> 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.
Robert Blaut
Comment 4
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!
Anders Jenbo
Comment 5
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.
Robert Blaut
Comment 6
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.
Alexey Proskuryakov
Comment 7
2008-03-19 00:14:06 PDT
<
rdar://problem/5807008
>
Anders Jenbo
Comment 8
2008-03-19 14:21:48 PDT
Yep i got the same here, its on vista and xp, but not on OS 10.4
webkit
Comment 9
2009-03-31 12:59:34 PDT
Windows only. Confirmed with the CKEditor nightly build:
http://nightly.ckeditor.com/latest/ckeditor/_samples/replacebyclass.html
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug