Opened 17 years ago

Closed 16 years ago

#176 closed Bug (wontfix)

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 (3)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added
Version: 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.

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Reporter: changed from Frederico Caldeira Knabben to neym@…

comment:3 Changed 16 years ago by Martin Kou

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy