Bug 12153 - Display: inline contenteditable elements recieve new line when empty
Summary: Display: inline contenteditable elements recieve new line when empty
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-01-07 12:19 PST by Matt Lilek
Modified: 2022-07-06 16:00 PDT (History)
3 users (show)

See Also:


Attachments
Reduction (636 bytes, text/html)
2007-01-07 12:19 PST, Matt Lilek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Lilek 2007-01-07 12:19:18 PST
When a contenteditable element thats set to display: inline is emptied, it will return a new line as its innerText/innerHTML.  This is the same as a block element, except when content is placed in it, the block element's new line is removed but the inline element keeps the new line appended onto the end with no way to remove it.
Comment 1 Matt Lilek 2007-01-07 12:19:43 PST
Created attachment 12282 [details]
Reduction
Comment 2 Alexey Proskuryakov 2010-06-05 00:11:51 PDT
This is still an issue with current nightlies.
Comment 3 Brent Fulgham 2022-07-06 16:00:26 PDT
This is still an issue with Safari, Chrome, and Firefox in 2022. Is this actually a bug? Or is this correct behavior?