Summary: | contentEditable doesn't wrap elements around content until after the first line | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim McConnell <timmc> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | ap, ayg, enrica, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.mozilla.org/editor/midasdemo/ |
Description
Tim McConnell
2009-11-19 12:16:23 PST
I specced IE/Opera's behavior, which is to wrap every line in a <p>, including the current one as soon as the user hits enter: http://aryeh.name/spec/editing/editing.html#the-insertparagraph-command The relevant case is "If container is not editable or not in the same editing host as node or is not a single-line container:". This basically wraps the current line in a <p>, although admittedly that's unlikely to be clear on a casual read. I specced it this way because I agree that it's useful for every line to have a wrapper, so that they can be handled consistently. |