Ticket #200 (closed Bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

Self-closing XHTML tags parse wrongly

Reported by: dustball Owned by:
Priority: High Milestone:
Component: General Version:
Keywords: Cc:

Description

This bug is affecting many users. The HTML in question may be being introduced when people cut & paste content into the editor.

1. Load the latest build, i.e.  http://klug.pbwiki.biz/FCKeditor/2_4/_samples/default.html

2. Switch to source mode, paste this in:

<p><u><font face="Arial" /></u></p>
<p><u><font face="Arial" /></u></p>
<p><u><font face="Arial" /></u></p>
<p><u><font face="Arial" /></u></p>
<p>Hello!</p>

3. Switch to normal mode, and switch back. You will see:

<p><u></u></p>
<p><font face="Arial"><u></u></font></p>
<p><font face="Arial"><font face="Arial"><u></u></font></font></p>
<p><font face="Arial"><font face="Arial"><font face="Arial"><u></u></font></font></font></p>
<p><font face="Arial"><font face="Arial"><font face="Arial"><font face="Arial">Hello!</font></font></font></font></p>

You can also try it with DIVs and other tags, not just FONT. You can also try it without the U tags for a different test case.

Also - is there any chance the editor will be able to remove the nesting in "<font face="Arial"><font face="Arial">...</font></font>"? This bug has resulted in many pages being littered with markup - sometimes 30-40 nested font tags like this.

Change History

Changed 3 years ago by fredck

  • keywords StyleSystem removed
  • status changed from new to closed
  • resolution set to duplicate

DUP of #152

Note: See TracTickets for help on using tickets.