[Webkit-unassigned] [Bug 12315] Clearing out editable div leaves a a <br> tag inside

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 6 23:59:49 PST 2007


justin.garcia at apple.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

------- Comment #4 from justin.garcia at apple.com  2007-03-06 23:59 PDT -------
>In the source (created by dumping innerHTML of the document) leaves a
> <br> tag in the div.

Empty divs have no height.  That's why we insert placeholders.  The fact that
we prop open ones that are empty in the source is a convenience.

> I noticed that if you use a XHTML strict DTD, then the markup is even worse!
> <div><br class="webkit-block-placeholder"></div>
> The contents of the div shoudl be empty, and  yet instead we have this extra
> div tag

I can't reproduce this.

Finally, the fact that the placeholders have a special class on them is covered
in 12317.

Given all this, I'm closing this bug.  Re-open it if you can still reproduce
the bug where an *extra* div is inserted when the contents of the editable root
are removed.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list