IE9 Empty Text Node

5 posts, 0 answers
  1. Orest
    Orest avatar
    31 posts
    Member since:
    Apr 2009

    Posted 21 Jun 2011 Link to this post

    I have very simple markup on my editor that worked grate for last few years. Now with ie9 I see an spacing issue.  According to Developer Tools  (F12) <br> is surrounded with “Text - Empty Text Node” this is happening in IE9 only. IE7,8 and FF works correctly.
    Can you please help to resolve this
    <div class="prprod_name "><strong><span class="prlabel">Name: </span></strong>Test </div>
    <br />
    <div  class="prprod_desc"><strong><span class="prlabel">Description: </span></strong>Desc Test</div>
    <br />

    Thank you
    Orest
  2. Rumen
    Admin
    Rumen avatar
    13902 posts

    Posted 24 Jun 2011 Link to this post

    Hello Orest,

    The reported IE9 problem is not due to the empty text nodes because if you strip the empty spaces and new lines in the content

    <div class="prprod_name "><strong><span class="prlabel">Name: </span></strong>Test</div><br /><div  class="prprod_desc"><strong><span class="prlabel">Description: </span></strong>Desc Test</div><br />

    and disable the content filters of RadEditor (ContentFilters="None") the rendering issue is still reproducible in IE9 as well as in an editable IFRAME element.

    What you can do is to render the page in IE8 mode in IE9 using the following meta tag:

    <head runat="server">
        <title></title>    
        <meta http-equiv="X-UA-Compatible" content="IE=8" />

    All the best,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Orest
    Orest avatar
    31 posts
    Member since:
    Apr 2009

    Posted 24 Jun 2011 Link to this post

    Can I set that on editor iframe somehow? We have dynamic page loading and all pages in the webapp use the same default page for that.
  4. Rumen
    Admin
    Rumen avatar
    13902 posts

    Posted 24 Jun 2011 Link to this post

    Hello Orest,

    I loaded the following content in RadEditor and noticed that the contents inside the editable iframe are not loaded in IE8 mode which means that it is not possible to apply this meta tag to the content area only:

    <html>
        <head>
        <title></title>   
        <meta http-equiv="X-UA-Compatible" content="IE=8" />
        </head>
        <body>
            <div class="prprod_name "><strong><span class="prlabel">Name: </span></strong>Test </div>
            <br />
            <div  class="prprod_desc"><strong><span class="prlabel">Description: </span></strong>Desc Test</div>
            <br />
        </body>
    </html>

    You should put the meta inside the head tag of the default page.

    All the best,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Moojjoo
    Moojjoo avatar
    1 posts
    Member since:
    Jul 2012

    Posted 23 Apr 2013 Link to this post

    I was having the same issue and came across this post and this solution does work.  Thank you.
Back to Top