Ticket #540 (closed Bug: duplicate)

Opened 18 months ago

Last modified 18 months ago

Problems with XML within HTML

Reported by: lizl Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

FCKeditor is not supporting XML within HTML -

* In IE, insert

<xml id="note" src="note.xml"></xml> in FCKeditor's source mode. Switch to WYSIWYG mode and then switch to source mode. The inserted fragment is replaced with <!--Element not supported - Type: 9 Name: #document-->

* In Firefox, insert

<xml id="note" src="note.xml"></xml> in FCKeditor's source mode. Switch to WYSIWYG mode and then switch to source mode. The inserted fragment is preserved.

* In IE, insert

<?xml:namespace prefix = st1 /> in FCKeditor's source mode. Switch to WYSIWYG mode and then switch to source mode. The inserted fragment is removed.

* In Firefox, insert

<?xml:namespace prefix = st1 /> in FCKeditor's source mode. Switch to WYSIWYG mode and then switch to source mode. The inserted fragment is removed.

Change History

Changed 18 months ago by fredck

  • keywords XML removed
  • status changed from new to closed
  • resolution set to duplicate

FCKeditor is a HTML editor. <xml> is not a valid HTML tag so, there is no way to correctly support it in all browsers (specially in IE).

But, it is quite common to have <xml> in the source, mainly when pasting data from Word. So, we have decided to partially support it. See ticket #239.

For the namespace declaration, if you really need it, just use the Protect Source feature. Check out the fckconfig.js file.

Note: See TracTickets for help on using tickets.