Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#23359 closed defect (bug) (duplicate)

Remove format button removes more then format

Reported by: mark-k Owned by:
Priority: normal Milestone:
Component: TinyMCE Version:
Severity: normal Keywords:
Cc: Focuses:

Description

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

Change History (1)

#1 @SergeyBiryukov
14 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #22799.

Note: See TracTickets for help on using tickets.