Ticket #176 (closed Bug: wontfix)

Opened 18 months ago

Last modified 3 weeks ago

Unterminated A tags sometimes break paragraphs on save

Reported by: neym@… Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.4
Keywords: SF IE Confirmed Cc:

Description

If the content looks like this:

<p><a href="linky">Text</p>
<p><a href="linky2">More Text</p>

Then saving with FCKeditor (IE version) will produce the following:

<p><a href="linky">Text<a href="linky2">More Text</p>
<p>&nbsp;</p>

This bug appears to only appear under the Internet Explorer version of IE (tested IE6). It does not happen under Firefox.

Steps to Reproduce:

  1. Open FCKeditor in IE and paste the above initial content (make sure that FCKeditor doesn't add back in the </a> tags on paste. If so, delete them).
  2. Save to a file/database and reload it in IE. It looks ok.
  3. Click source. Code becomes corrupted (I also believe it corrupts with any style changes on the page, but I have not tested this).

Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1631643&group_id=75348&atid=543653

Change History

Changed 18 months ago by fredck

  • keywords Confirmed added
  • version set to FCKeditor 2.4

The fact is that the browser is still the responsible for HTML parsing and DOM creation. FCKeditor interacts with the DOM to generate the output XHTML, and in your sample, the two <a>s are really both in the first paragraph in the IE DOM.

Providing invalid markup will always result on unexpected results, and an end user should not expect having better than that. The important to note is that a user will not be able to produce such code using the editor (of course, expect when going on the source view).

I don't see much chances to have such kind of (isolated) issue fixed, but I'm leaving this report open for a while so we can think a little about it.

Changed 18 months ago by fredck

  • reporter changed from fredck to neym@…

Changed 3 weeks ago by martinkou

  • status changed from new to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.