Bug 11697 - Extra whitespace added when pasting into editable inline-block DIV element
Summary: Extra whitespace added when pasting into editable inline-block DIV element
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2006-11-27 02:16 PST by Mark Rowe (bdash)
Modified: 2023-02-25 07:56 PST (History)
8 users (show)

See Also:


Attachments
Test case (328 bytes, text/html)
2006-11-27 02:17 PST, Mark Rowe (bdash)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2006-11-27 02:16:38 PST
Steps to reproduce:
1) Click inside the paragraph of text.  Hit Cmd-A to select all of the text.
2) Hit Cmd-V twice to paste the text twice.  Note where the second paragraph of text ends up.
3) Hit Cmd-V to paste the text a third time.  Boom!
Comment 1 Mark Rowe (bdash) 2006-11-27 02:17:34 PST
Created attachment 11639 [details]
Test case
Comment 2 mitz 2006-11-27 10:33:09 PST
On second paste:

ASSERTION FAILED: m_parentNode->isContentEditable() || !m_parentNode->attached()
(WebCore/editing/AppendNodeCommand.cpp:45 virtual void WebCore::AppendNodeCommand::doApply())

Comment 3 mitz 2007-01-20 23:05:00 PST
I can no longer reproduce on TOT.
Comment 4 Mark Rowe (bdash) 2007-01-20 23:17:38 PST
The behaviour has changed since this bug was initially opened.  What happens now is that a bunch of extra whitespace (roughly 8 or 10 spaces) is added to the end of the content on every paste.  The result is that hitting paste multiple times results in your pasted text being broken up by blocks of spaces.
Comment 5 Ahmad Saleem 2022-06-30 16:43:17 PDT
I am able to reproduce this in Safari 15.5 on macOS 12.4. All other browsers such as Chrome Canary 105 and Firefox Nightly 104 does not add any extra spaces at the end as mentioned in Comment 04. Thanks!
Comment 6 Radar WebKit Bug Importer 2022-07-26 19:38:40 PDT
<rdar://problem/97641709>
Comment 7 Ahmad Saleem 2023-02-25 07:56:23 PST
I am not able to reproduce this bug in Safari Technology Preview 164 anymore, it might have been fixed due to HTML Editing changes or Live Range Selection API. Marking this as "RESOLVED CONFIGURATION CHANGED".