[wp-trac] [WordPress Trac] #22477: The WYSIWYG editor deletes all empty <span> tags

WordPress Trac noreply at wordpress.org
Sat Dec 22 00:38:12 UTC 2012


#22477: The WYSIWYG editor deletes all empty <span> tags
--------------------------+--------------------
 Reporter:  hali6sic6     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5.1
Component:  TinyMCE       |     Version:  3.4.2
 Severity:  major         |  Resolution:
 Keywords:  close         |
--------------------------+--------------------
Changes (by nacin):

 * severity:  normal => major
 * milestone:  Awaiting Review => 3.5.1


Comment:

 Replying to [comment:4 azaozz]:
 > Yes, TinyMCE treats all empty elements that don't have meaning in html
 as empty space, same as browsers treat them. `<span></span>`,
 `<div></div>`, even `<p></p>` are not displayed in the browser. If they
 have any attributes, they are not removed.

 Apparently that's not entirely the case, see comment:7.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22477#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list