[wp-trac] [WordPress Trac] #23359: Remove format button removes more then format

WordPress Trac noreply at wordpress.org
Fri Feb 1 15:41:55 UTC 2013


#23359: Remove format button removes more then format
-----------------------------+--------------------------
 Reporter:  mark-k           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  TinyMCE
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Remove format button will remove color styling, strip the strong and em
 tags, but will leave the del tag alone.

 As far as my understanding of HTML5 goes, strong and em are semantic
 elements and not styling elements, therefor should not be stripped. OTOH
 del is not stripped so at least the behaviour is not very consistent.

 A major problem is that something like the removal works inside a del tag:

 {{{
 <del>this is <strong>Important</strong></del>
 }}}

 will become

 {{{
 <del>this is Important</del>
 }}}

 changing the importance attributed to the word "Important" before the
 deletion

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23359>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list