Open Bug 485466 Opened 16 years ago Updated 3 years ago

execCommand("outdent") unexpectedly removes <li> when <ul> is a child of it

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows XP
defect

Tracking

()

People

(Reporter: annie.sullivan, Unassigned)

References

()

Details

(Keywords: parity-chrome)

Steps to reproduce: 1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/ 2. Enter the following HTML: <ul><li>a<ul><li>b</li></ul></li></ul> 3a. Place cursor after "b". Press Outdent button. Result: List item is removed instead of outdenting (HTML: <ul><li>a<br>b</li></ul>) 3b. After step 2, place cursor after "a". Press Outdent button. Result: Nothing happens. Expected result: this should work the same as if the HTML were "<ul><li>a</li><ul><li>b</li></ul></ul>" (ul child of ul).
Priority: -- → P3

The behavior has changed, it now generates <ul><ul><li>a<br>b</li></ul></ul>.

Summary: Cannot outdent when <ul> is a child of <li> → execCommand("outdent") unexpectedly removes <li> when <ul> is a child of it
See Also: → 525888
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.