[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
Thu Feb 4 00:03:18 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=26937





--- Comment #17 from Tony Chang (Google) <tony at chromium.org>  2010-02-04 00:03:13 PST ---
(In reply to comment #15)
> It looks nice but is it guaranteed that sourceDocumentStyleSpan always has a
> child?  What if the fragment was <span class="Apple-style-span"
> style="..."> </span>?

You're right; I hadn't run the layout tests yet.  This version handles that by
copying the span tag to each child that's not a block (like text nodes) so in
those cases, it's not much different than before (i.e., the generated HTML will
be the same as before).

> Another concern is that the fact that malformed
> HTML is copied into clipboard will be forgotten if this bug was fixed at the
> pasting time. I think we should file another bug that address this issue if
> there isn't one already.

Ok, but 34564 filed.

New patch that passes layout tests up.

-- 
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