WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
39866
break out of nesting when inserting new paragraph
https://bugs.webkit.org/show_bug.cgi?id=39866
Summary
break out of nesting when inserting new paragraph
Tony Chang
Reported
2010-05-28 01:16:59 PDT
break out of nesting when inserting new paragraph
Attachments
Patch
(12.51 KB, patch)
2010-05-28 01:19 PDT
,
Tony Chang
ojan
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tony Chang
Comment 1
2010-05-28 01:19:36 PDT
Created
attachment 57302
[details]
Patch
Tony Chang
Comment 2
2010-05-28 01:21:58 PDT
This is the same as
bug 25002
, but expanding the coverage from just div tags to all block level tags except <blockquote>. Additional testing of
bug 25002
was suggested by Darin in
https://bugs.webkit.org/show_bug.cgi?id=38992#c4
. I also ran some tests on Firefox and it doesn't have any of these problems because it just uses <br> for new paragraphs. WebKit copies the block level node instead.
Ojan Vafai
Comment 3
2010-07-07 17:38:59 PDT
Comment on
attachment 57302
[details]
Patch I think this is a good incremental improvement on
http://trac.webkit.org/changeset/54395
, but I don't think the original patch was correct. Consider the following case: <style> #bar > div { color:blue; } #bar > div > div { color:green; } </style> <div contentEditable id='bar'><div><div>abc</div></div> The text is green. If you click at the end, hit enter and then type, the new text should be green. On trunk, it's blue. I think we need to find a way to fix copy-paste to not nest, but have enter use the old behavior.
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