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

IE9 and elements with namespace prefix.

1 Answer 23 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 02 Nov 2011, 08:17 AM
Hi!

We are investigating if we can use the RadEditor to handle asp.net server controls in designtime example: <asp:Label runat="server" />. 

So far it seems to work with css-styling on those custom tags, that's great!

But in IE9 (using IE 9 documentMode) the (x)html-serialization of those custom tags with namespace prefix renders incorrectly. When clicking HTML the custom tag becomes <asp:ASP:LABEL runat="server"></asp:ASP:LABEL>

I have debugged the javascript code and found that bug. All IE versions have the node.scopeName property which contains "asp" in this case, and the RadEditor uses this property to build html in combination with node.nodeName property. BUT in IE9-mode the node.nodeName contains both scopeName and localName, thats why it renders wrong.

My bug fix suggestion when in IE9 mode and greater is to use the node.scopeName in combination with node.localName or just use node.nodeName.toLowerCase() like in other browsers...

Please confirm if this bug will be fixed, Thanks.
/Erik

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Nov 2011, 10:47 AM
Hi Erik,

Thank you for your suggestion.

We will improve the ConvertToXhtml filter to handle this scenario and to not duplicate the namespace. We do appreciate your feedback and I updated your Telerik points.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Erik
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or