Opened 13 years ago
Last modified 12 years ago
#8189 confirmed Bug
Empty [link] tag causes content and structure loss
Reported by: | spgard | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.1 |
Keywords: | Cc: |
Description
In the demo or nightly demo, go into source view, delete existing HTML, and paste in the following:
<table> <tr> <td> Left cell</td> <td> <p>First paragraph.</p> <p>Second paragraph, with an empty link tag in it <link />.</p> <p>Third paragraph.</p> </td> <td>Right cell</td> </tr> </table>
Switch to WYSIWYG view. The table, row, and cells are gone, as is the content for the left cell and the first 2 paragraphs of the center cell. I've gotten this result on the latest versions of Opera, Firefox, Chrome, IE, and Safari (all on Windows).
This is skeleton HTML for what we've seen from several of our clients. The empty <link /> tag is the problem - everything is fine if you remove that. I know that shouldn't be there but we have clients who are getting it by copying and pasting content from web pages that already have it in them. One source of this content was Up!CMS. Browsers correctly handle the empty link tag, but CKEditor goes a bit nuts with it.
Change History (2)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | → 3.1 |
The code provided by user:
Produces, when switching from Source to WYSIWYG, the following HTML:
From version 3.1 till 3.5.3 rev [6628]:
From version 3.5.3 rev [6629]:
Issue is reproducible in all browsers.
I have also tried to use this code in page which has set contenteditable to true but it was working fine there.