[Webkit-unassigned] [Bug 26937] Copying and pasting into a contenteditable area can create <div>s surrounded by <span>s
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 3 00:50:09 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=26937
--- Comment #13 from Tony Chang (Google) <tony at chromium.org> 2010-02-03 00:50:07 PST ---
(In reply to comment #12)
> Created an attachment (id=48000)
--> (https://bugs.webkit.org/attachment.cgi?id=48000) [details]
> Patch
This is an example of handling the extra span on paste. After this, I think
all the code paths in handleStyleSpans remove the style span. With this patch,
when I paste the example in comment #7 I get:
<div style="text-decoration: none;"> <div style="font-weight: bold;"><div
style="font-weight: bold; ">one</div><div style="font-weight: normal;
">two</div></div> </div>
The redundant font-weight:bold is a bit unfortunate, but it's better than
before.
I still need a layouttest, but I have to run now. Enrica, is this like what
you're suggesting?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list