Opened 18 years ago
Closed 16 years ago
#176 closed Bug (wontfix)
Unterminated A tags sometimes break paragraphs on save
Reported by: | 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> </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:
- 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).
- Save to a file/database and reload it in IE. It looks ok.
- 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 18 years ago by
Keywords: | Confirmed added |
---|---|
Version: | → FCKeditor 2.4 |
comment:2 Changed 18 years ago by
Reporter: | changed from Frederico Caldeira Knabben to neym@… |
---|
comment:3 Changed 16 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.