Bug 16067
Summary: | Image loses all properties when moved around in designMode | ||
---|---|---|---|
Product: | WebKit | Reporter: | Anders Jenbo <fuck> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, oliver, webkit, webkit |
Priority: | P2 | Keywords: | InRadar, PlatformOnly |
Version: | 525.x (Safari 3.1) | ||
Hardware: | PC | ||
OS: | Windows XP | ||
URL: | http://rtef.info/demo.htm |
Anders Jenbo
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
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
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
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
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
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
I tested the issue in the latest Webkit nightly and I can confirm existence of the bug but only on Windows.
Alexey Proskuryakov
<rdar://problem/5807008>
Anders Jenbo
Yep i got the same here, its on vista and xp, but not on OS 10.4
webkit
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.