Open Bug 1713064 Opened 4 years ago Updated 1 year ago

Unexpected <br> element is inserted when removing character between contenteditable=fasle

Categories

(Core :: DOM: Editor, defect)

Unspecified
All
defect

Tracking

()

People

(Reporter: m_kato, Unassigned)

References

(Blocks 1 open bug)

Details

When adding the following test case to editing/data/forwarddelete.js in WPT,

["<span contenteditable=false>foo</span>[]X<span contenteditable=false>bar</span>",
    [["forwarddelete",""]],
    "<span contenteditable=false>foo</span>{}<span contenteditable=false>bar</span>",
    [true],
    {"forwarddelete":[false,false,"",false,false,""]}],

Result is the following. <br> element is unexpectedly inserted.

/editing/run/forwarddelete.html?6001-last
  FAIL [["forwarddelete",""]] "<span contenteditable=false>foo</span>[]X<span contenteditable=false>bar</span>" compare innerHTML - assert_equals: Unexpected innerHTML (after normalizing inline style) expected "<span contenteditable=false>foo</span><span contenteditable=false>bar</span>" but got "<span contenteditable=\"false\">foo</span><br><span contenteditable=\"false\">bar</span>"
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.