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

[Solved] IE9 Empty Text Node

4 Answers 155 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Orest
Top achievements
Rank 1
Orest asked on 21 Jun 2011, 07:45 PM
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

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Jun 2011, 10:58 AM
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.

0
Orest
Top achievements
Rank 1
answered on 24 Jun 2011, 01:59 PM
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.
0
Rumen
Telerik team
answered on 24 Jun 2011, 03:07 PM
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.

0
Moojjoo
Top achievements
Rank 1
answered on 23 Apr 2013, 02:38 PM
I was having the same issue and came across this post and this solution does work.  Thank you.
Tags
Editor
Asked by
Orest
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Orest
Top achievements
Rank 1
Moojjoo
Top achievements
Rank 1
Share this question
or