RESOLVED FIXED 25315
Outdenting a line following a BR tag inside an indented block moves that line above preceding content
https://bugs.webkit.org/show_bug.cgi?id=25315
Summary Outdenting a line following a BR tag inside an indented block moves that line...
Marcos Almeida
Reported 2009-04-21 16:09:37 PDT
1) go to http://www.mozilla.org/editor/midasdemo/ 2) check View HTML 3) enter "one<br>two" 4) uncheck View HTML 5) select all text inside the editable area 6) press the indent button --> both lines are indented. if you check View HTML, you'll see a blockquote with some styles was created wrapping the original HTML 7) put the cursor at the beginning of "two" 8) press the outdent button --> the "two" line is outdented, but also moved up above the "one" line. it should stay below.
Attachments
Julie Parent
Comment 2 2009-04-29 13:44:20 PDT
This issue isn't limited to BR's. If you replace one<br>two with <div>one</div><div>two</div> it also repros.
Julie Parent
Comment 3 2009-04-29 14:20:30 PDT
Other notes - also happens for non collapsed selections, and for selections anywhere inside of "two", so this isn't just a small broken edge case.
Julie Parent
Comment 4 2009-04-29 14:41:33 PDT
And it get worse. If the selection is inside the first div ('one'), then everything inside the blockquote gets indented.
Julie Parent
Comment 5 2009-04-29 15:46:45 PDT
A couple questions - * I've got a bunch of layout tests written for this - is there any value in getting them checked in without a fix? Or do you usually wait to add tests until you have a fix? * Should this be separated out into separate bug reports? It is hitting different code branches and one fix probably won't fix both issues, but both broken cases (moving outdented content to the wrong location and outdenting subsequent non selected blocks) seem related.
Julie Parent
Comment 6 2009-04-29 17:56:46 PDT
I've got a fix for the second issue, so I've separated that out into another bug: https://bugs.webkit.org/show_bug.cgi?id=25473
Ryosuke Niwa
Comment 7 2009-07-09 16:51:38 PDT
My patch for https://bugs.webkit.org/show_bug.cgi?id=25316 will fix this issue as well.
Ryosuke Niwa
Comment 8 2009-07-20 16:21:40 PDT
This problem has been fixed by http://trac.webkit.org/changeset/45886.
Note You need to log in before you can comment on or make changes to this bug.