[Webkit-unassigned] [Bug 30267] editing\pasteboard\paste-xml.xhtml should not be skipped for windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 12 13:47:10 PDT 2009


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





--- Comment #8 from Darin Adler <darin at apple.com>  2009-10-12 13:47:10 PDT ---
(In reply to comment #7)
> That's because the fragment child is not a text node:
> if (!fragment.firstChild() || fragment.firstChild() != fragment.lastChild() ||
> !fragment.firstChild()->isTextNode())
> 
> Mac version pastes this as text due to the workaround while Windows pasting
> this as HTML fragment.

The fragment does contain more than just a single text node. But I also think
it could qualify for this simple case, because what it contains is simple
enough. Probably a single text node inside a simple <div> wrapper — not sure of
the details. If we figure out how to make the simple case work when the
fragment contains a bit more than just a text node, but nothing that affects
the pasting, then we'd have both working the same.

On the other hand, we can probably just land results for Windows that expect
this different behavior for now. It's a shame to have this using the slow case
for no good reason though.

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