RESOLVED WONTFIX 45545
Safari turns return in designMode into break inclosed in div
https://bugs.webkit.org/show_bug.cgi?id=45545
Summary Safari turns return in designMode into break inclosed in div
lvschie
Reported 2010-09-10 08:43:35 PDT
When entering designMode, Safari turns an enter into a < div > < br > < /div > while it should just create a < br > or a paragraph < p > < / p >. Other browsers like FireFox do handle this in the right way.
Attachments
Gavin Barraclough
Comment 1 2011-06-17 00:21:45 PDT
Not sure what component this should be in, but doesn't look like a JSC bug!
Ryosuke Niwa
Comment 2 2012-05-01 23:18:27 PDT
I'm not sure if we can fix this bug because we do need a placeholder br for empty divs. I'm inclined to say we won't fix this bug.
Aryeh Gregor
Comment 3 2012-05-01 23:27:29 PDT
The extra <br> is needed initially. It should be removed as soon as there's other content to stop the div/p from collapsing. Firefox and Opera both also use <br> for this purpose; IE uses &nbsp; (but it's somewhat magical and is prone to disappear depending on how you look at it). By default WebKit should be emitting <p> per spec (and per IE/Opera), not <div>, but that's a separate issue. Firefox is wrong for emitting <br>. This was discussed extensively and the conclusion was to go with IE/Opera's behavior: <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-May/031577.html>. I'm working on fixing Firefox to match the spec better: <https://bugzilla.mozilla.org/show_bug.cgi?id=748303>.
Ryosuke Niwa
Comment 4 2012-05-01 23:37:41 PDT
Thanks for the confirmation, Aryeh. We won't fix this bug because <br> inside the div is needed.
Note You need to log in before you can comment on or make changes to this bug.