<xml> in html make IE truncate paragraphs (solution included)
|Reported by:||Guillaume Outters||Owned by:|
Example: IE6 or IE7, go to http://www.fckeditor.net/demo, Source, insert "<xml>toto</xml>" before "You", Source, Source.
Result: Everything has disappeared after the newly-introduced "<xml>" (well, it was transformed to an "<!-- Element not supported - Type: 9 Name: #document-->").
Analysis: While generating the DOM for something like "<p><span>s</span><xml>x</xml><span>s</span></p>", IE creates a document node in which it incorrectly includes, not only "<xml>", but its nextsiblings too. Thus FCK receives it as "<p><span>s</span><!-- Element […] --></p>".
Solution: Filter out those. On line 299 of internals/fck.js (revision 203), add "|XML" to sTags.
Why, oh why: Because we had a Word-generated HTML that included some "<xml><o:OLEObject>[…]</o:OLEObject></xml>", sometimes embracing the OLE into IE-specific conditional comments.
Change History (6)
comment:1 Changed 10 years ago by fredck
- Keywords Confirmed IE added
- Milestone set to FCKeditor 2.4.3
- Version set to FCKeditor 2.4.2