WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
92130
Outdenting a blockquote containing multiple paragraphs leaves a blockquote between each paragraph
https://bugs.webkit.org/show_bug.cgi?id=92130
Summary
Outdenting a blockquote containing multiple paragraphs leaves a blockquote be...
Shezan Baig
Reported
2012-07-24 09:11:49 PDT
Created
attachment 154080
[details]
test case See the attached example. There are blockquotes between each line (except that last). The correct behavior is to not create any blockquotes between the lines. I have a patch for this (SplitElementCommand should be a no-op if m_atChild == m_element2->firstChild)
Attachments
test case
(286 bytes, text/html)
2012-07-24 09:11 PDT
,
Shezan Baig
no flags
Details
Reduction of breakage of outdent-selection
(211 bytes, text/html)
2012-07-30 13:11 PDT
,
Shezan Baig
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Shezan Baig
Comment 1
2012-07-24 12:02:01 PDT
Hmm it turns out that this fix breaks the outdent-selection.html and break-out-of-empty-list-item.html tests. I'm investigating why this breaks
Shezan Baig
Comment 2
2012-07-30 13:11:30 PDT
Created
attachment 155346
[details]
Reduction of breakage of outdent-selection I've resolved the issue that caused the breakage in break-out-of-empty-list-item.html However, the breakage in outdent-selection.html is a little more complicated, and it has to do with a preexisting unrelated bug w.r.t. preserving the selection after outdent. See the attached reduction. The selection is not maintained correctly (the last character is not selected). This happens whenever <br> is added after an inline node that ends with '\n'. The '\n' gets treated as an uncollapsable space, which in turn causes the endIndex in ApplyBlockElementCommand::doApply to become off by one. I found
bug 21545
, which describes issues with visual selection with outdent, but that bug has to do with lists (ol and ul), so I think the issue here is completely different. I'll enter a new bug for the issue here.
Shezan Baig
Comment 3
2012-07-30 13:22:01 PDT
Created
bug 92672
. I'll need to fix that issue before I can submit the patch for this issue.
Ahmad Saleem
Comment 4
2024-06-24 06:58:00 PDT
Fixed recently in Blink -
https://chromium-review.googlesource.com/c/chromium/src/+/5271512
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