[wp-trac] [WordPress Trac] #26332: TinyMCE stripping attributes and removing tags

WordPress Trac noreply at wordpress.org
Sat Feb 22 04:49:23 UTC 2014


#26332: TinyMCE stripping attributes and removing tags
--------------------------+------------------------------
 Reporter:  Ipstenu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by azaozz):

 Generally empty inline tags are considered "cruft" in HTML. They are
 "invisible" when the HTML is rendered (both on the front-end and inside
 TinyMCE), cannot be created using the editor and cannot be selected or
 edited inside the editor. Also, can be deleted without the user realizing
 it.

 The reason an empty `<a>` tag is replaced with ` ` is because the
 `<a>` is wrapped in a `<p>` on switching to the Visual editor. Then on
 switching to the Text editor the content is cleaned up, the `<a>` is
 stripped and the empty `<p>` is preserved (by popular demand) by inserting
 ` `.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26332#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list