+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Generic Content: Rendering extra non-existent HTML tags

Generic Content: Rendering extra non-existent HTML tags

4 posts, 0 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    21 Dec 2009
    Link to this post
    Hi,

    We've got a Generic Content control on a page that uses "shared content". When viewed in the browser it renders the following HTML:

    1 <div class="callOut callOutGrayBox"
    2    <h3>Media Center</h3> 
    3    <p> 
    4       <href="../MediaCentre/MediaSummaries.aspx" title="Media Center">Follow the latest news. Click here for recent news stories, company releases, publications and media 
    5       <br/> 
    6 appearances.  <img src="/Images/bulletBlueArrow.gif" alt="See all recent and archived press releases, speeches and other news stories" style="display: inline-block; vertical-align: bottom;"/> 
    7       </a> 
    8    </p> 
    9 </div> 

    On another page we drop another Generic Content control and choose "select shared content". We then choose the exact same content as before but the resulting HTML looks like this: 

    1 <div class="callOut callOutGrayBox"
    2     <strong><strong></strong></strong
    3     <h3> 
    4         <strong _moz-rs-heading=""><strong _moz-rs-heading="">Media Center</strong></strong></h3> 
    5     <strong><strong></strong></strong
    6     <p> 
    7         <strong><strong><href="../MediaCentre/MediaSummaries.aspx" title="Media Center">Follow 
    8             the latest news at The Dominion. Click here for recent news stories, company releases, 
    9             publications and media 
    10             <br /> 
    11             appearances. 
    12             <img src="/Images/bulletBlueArrow.gif" alt="See all recent and archived press releases, speeches and other news stories" 
    13                 style="display: inline-block; vertical-align: bottom;" /></a></strong></strong></p> 
    14     <strong><strong></strong></strong
    15 </div> 

    What would cause this behavior? Why are there so many extra HTML tags being rendered between one page and the next considering the fact that this is shared content (the same shared content)? 

    Regards,
    Jacques
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Dec 2009
    Link to this post
    Hello J.Hov,

    This does not seem to be the whole html you use,  because _moz-rs-heading attribute is added when the browser (FireFox) is trying to fix your HTML. Most probably you have invalid HTML and the RadEditor and the browser are trying to fix it, but they can only guess what you actually meant to a certain extent. You can validate your HTML here http://validator.w3.org/

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    22 Dec 2009
    Link to this post
    Hi Ivan,

    You're right on that one. We found a stray unclosed HTML element that was causing all the problems. Are you saying this is actually Firefox that adds all the extra HTML elements in an attempt to fix things? So it's not Sitefinity? 

    Regards,
    Jacques
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Dec 2009
    Link to this post
    Hi J.Hov,

    Yes, this is the case. You can try the same thing with editable iframe object on a blank html/aspx page and you will see the same behavior. 

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered