This is a migrated thread and some comments may be shown as answers.

unwanted xml:namespace

2 Answers 45 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mike Bridge
Top achievements
Rank 1
Mike Bridge asked on 18 Feb 2011, 11:54 PM
We have some namespace-qualified tags which users enter in the radeditor (using some custom buttons and editing windows), but it turns out that the browser or the editor is automatically adding <?xml:namespace prefix="myprefix"?> before these elements in IE8 and Chrome. (But not in Firefox.)

Any idea what it is?  I can't find a standards document that defines "xml:namespace", mostly because colons don't seem to work in Google.) 

More importantly, is there an elegant way to turn it off, or to I need to write a content filter to remove it?

Thanks,

-Mike

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Feb 2011, 02:23 PM
Hello Mike,

Such xml:namespace prefixes are usually set by the Rich Text Editing engine of the browser to XML tags loaded in editable IFRAME elements like the content area of RadEditor. You should note that the editor is XHTML editor but not XML editor and XML custom tags are not supported.

To work and display XML tags you should set a namespace, some styling, e.g.

<cms:widget style="color:white;background-color: red; width: 100px;border: green 1px solid;" attributex="y">cms widget</cms:widget>

This is an requirement of Internet Explorer, explained in the following MSDN article: Using Custom Tags in Internet Explorer.

Let me know if you scenario is other and provide sample content and steps how to reproduce the problem.

Best regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Mike Bridge
Top achievements
Rank 1
answered on 23 Feb 2011, 06:51 PM
Yes, when I put your snippet into a RadEditor in IE8 it prepends <?xml:namespace prefix = cms />.

I can filter it out, but I was just wondering what it is and whether there was an easy way to turn it off. Since Google doesn't allow me to search for something with a colon in it, I couldn't find any mention for "xml:namespace" in any RFCs.  The article you referenced uses the standard "xmlns" attribute instead.

Hmmm...

-Mike
Tags
Editor
Asked by
Mike Bridge
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mike Bridge
Top achievements
Rank 1
Share this question
or