WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
12320
Markup from another webkit page is always pasted to editable div
https://bugs.webkit.org/show_bug.cgi?id=12320
Summary
Markup from another webkit page is always pasted to editable div
Dan Wood
Reported
2007-01-18 12:38:02 PST
To reproduce: 0. Launch Blot_editableDiv_showSource, my modified version of "Blot" available from <
http://dan.karelia.com/webkit/Blot_editableDiv_showSource.zip
> with DYLD_FRAMEWORK_PATH pointing to TOT. (I'm using
r18941
) 1. Copy some text from this bug report, such as this text right here, (asuming you're running Safari) 2. Click on the top panel in the modified Blot 3. Paste. Results: Note that the markup and styles from the source's HTML is preserved in the resulting HTML - in this case, note that the text is within a <pre id="comment_text_0"> tag. This might be desired in some cases, but if the user is just getting rich text, they don't necessarily want to carry all of the HTML baggage from the source markup. It would be better to (optionally) have the text pasted in a rich text only, and then let WebKit re-build its HTML based on the rich text. This is especially problematic when the source text contains structural markup tags, such as <h1> <h2> that don't belong in that place in an editable div of text.
Attachments
Add attachment
proposed patch, testcase, etc.
Justin Garcia
Comment 1
2007-03-06 22:17:37 PST
So you want to see pasted content that's visually identical to what was copied, but made up internally of something consistent (like all attribute-less divs or ps)?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug