• thenewts

    (@thenewts)


    I’m trying to add a twitter widget to my site and although my site is displaying fine in Firefox / Chrome and Opera, I’m getting the following error in Internet Explorer:

    Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917).

    The widget is located in sidebar.php, the code is as follows:

    <div id=”right”>

    <div id=”searchbox”>
    <form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/”>
    <input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” class=”swap_value” />
    <input type=”submit” id=”go” class=”bt” value=”Search” alt=”Search” title=”Search” />
    </form>
    </div>

    <?php include (TEMPLATEPATH . ‘/ads.php’); ?>

    <div id=”twitter”>

    <object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0&#8243; width=”265″ height=”384″ id=”TwitterWidget” align=”middle”>
    <param name=”allowScriptAccess” value=”sameDomain” />
    <param name=”allowFullScreen” value=”false” />
    <param name=”movie” value=”https://static.twitter.com/flash/widgets/profile/TwitterWidget.swf&#8221; />
    <param name=”quality” value=”high” />
    <param name=”bgcolor” value=”#000000″ />
    <param name=”FlashVars” value=”userID=19796478&styleURL=https://static.twitter.com/flash/widgets/profile/smooth.xml”>
    <embed src=”https://static.twitter.com/flash/widgets/profile/TwitterWidget.swf&#8221; quality=”high” bgcolor=”#000000″ width=”265″ height=”384″ name=”TwitterWidget” align=”middle” allowScriptAccess=”sameDomain” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”https://www.macromedia.com/go/getflashplayer&#8221; FlashVars=”userID=19796478&styleURL=https://static.twitter.com/flash/widgets/profile/smooth.xml”/>
    </object>

    </div>

    <div id=”twitpic”>

    <script type=”text/javascript” src=”https://twitpic.com/badge/v1.jsx?username=thenewts&count=3&size=mini&colorbg=141428&colorborder=332610&colorfont=66a4cc&colorlink=e0daa3&title=TwitPics”&gt;
    </script>

    </div>

    <div class=”tabber”>

    <div class=”tabbertab”>
    <h3>Categories</h3>

      <?php wp_list_cats(‘sort_column=name’); ?>
      <?php // wp_list_categories(‘show_count=1&title_li=<h2>Categories</h2>’); ?>

    <div style=”clear:both;”></div>
    </div>

    <?php if ( function_exists(‘wp_tag_cloud’) ) : ?>
    <div class=”tabbertab”>
    <h3>Tag Cloud</h3>
    <?php wp_tag_cloud(‘smallest=8&largest=22’); ?>
    <div style=”clear:both;”></div>
    </div>
    <?php endif; ?>

    <div class=”tabbertab”>
    <h3>Archives</h3>

      <?php wp_get_archives(‘type=monthly’); ?>

    <div style=”clear:both;”></div>
    </div>

    <?php if (function_exists(‘mdv_recent_comments’)) { ?>
    <div class=”tabbertab”>
    <h3>Comments</h3>

      <?php mdv_recent_comments(’10’); ?>

    <div style=”clear:both;”></div>
    </div>
    <?php } ?>

    </div>

    <?php include (TEMPLATEPATH . ‘/l_sidebar.php’); ?>

    <?php include (TEMPLATEPATH . ‘/r_sidebar.php’); ?>

    <div style=”clear:both;”></div>

    </div>

    If I remove the code associated with <div id=”twitter”> and <div id=”twitpic”> the site renders fine in IE.

    If anyone could help point me in the right direction and suggest alterations to get this past IE I’d be very grateful.

    I’m no ‘coder’ so simplest instructions would be great.

    Many thanks!

    Running 2.7 about to upgrade to 2.7.1
    https://www.thenewts.net

  • The topic ‘HTML Parsing Error in I.E.’ is closed to new replies.