IE9 and elements with namespace prefix.

2 posts, 0 answers
  1. Erik
    Erik avatar
    4 posts
    Member since:
    Oct 2011

    Posted 02 Nov 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14372 posts

    Posted 02 Nov 2011 Link to this post

    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
Back to Top