Ticket #7916 (closed Bug: fixed)

Opened 4 years ago

Last modified 4 years ago

kupu breaks strong/em tags with class names, on firefox

Reported by: pfurman Owned by: duncan
Priority: minor Milestone: 3.1
Component: Visual Editor Keywords:
Cc:

Description

Kupu on Firefox 2.0.0.12 breaks tags "strong" and "em" (and maybe other?) if they contains class names. For example, try to paste this as a HTML source:

<strong class="xxx">Aa</strong>
Bb
<strong class="xxx">Cc</strong>

Then switch to edit view, and back again to source view. HTML will be replaced with

<strong class="xxx">Aa
Bb
<strong class="xxx">Cc</strong></strong>

Even stranger behaviour occurs with lists. This code:

<ul>
<li><strong class="xxx">Aa</strong></li>
<li><strong class="xxx">Bb</strong></li>
</ul>

will be replaced with:

<ul>
<li><strong class="xxx">Aa</strong></li>
<li><strong class="xxx"><strong class="xxx">Bb</strong></strong></li></ul>

Each next "strong" will be multiplied. The same happens with "em" tag.

Those errors won't happen if there are single "strong" tags, without class names. They also won't occures on IE 6.

Change History

comment:1 Changed 4 years ago by duncan

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in svn

Note: See TracTickets for help on using tickets.