Strange IE! Show Blank Page for Wrong Closing Tag</h1> <div class="info"> <span class="date r-fl lc">Sep 30th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <div class="ads" style="padding:5px 0;border-bottom:1px dotted #ccc;margin-bottom:10px"> <script type="text/javascript"><!-- google_ad_client = "pub-4441905138518539"; /* 468x60, below-title 8/25/10 */ google_ad_slot = "4342187704"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> <div class="commentBlock">Internet Explorer is really strange browser. It was showing me blank page when my <title> tag was not properly closed. I need to change the title tag, and some other HTML tag, dynamically for a cached page. In the script, instead of using variable for closing <title> tag, I pasted wrong variable. When you double click a variable in EditPlus editor, then variable name will be highlighted without $ sign. So, it happened to me and inside the double quotes it becomes like this:<br /><$startTag> (..a page title...)</endTag><br />and for title, it resulted in this:<br /><title>(..a page title...) </endTag>.<br />and for this, Firefox has not created problem in loose Doctype. But in Internet Explorer 7 (IE7), it was showing me complete blank page. Funny!</div> <script type="text/javascript">AKPC_IDS += "297,";</script> <div style="padding:5px 0px;margin-top:8px;"> <a class="l-fl" href="http://twitter.com/share?url=http://www.satya-weblog.com%2F2008%2F09%2Fstrange-ie-show-blank-page-for-wrong.html&text=Strange IE! Show Blank Page for Wrong Closing <Title> Tag&via=satya61229&related=webscripting" target="_blank"><img src="http://lh3.ggpht.com/_Ve5n9uU6iBI/TGWNgnlv6II/AAAAAAAABIo/dbXSzhuDARw/s800/twitter.png" width="65px" height="23px"/></a> <div class="l-fl" id="fbdiv" style="visibility:hidden;width:300px;margin-left:25px"><fb:like show_faces="false" width="300" font="verdana" ></fb:like></div> <div class="r-fl share"> <script> document.write('<a class="a2a_dd" href="http://www.addtoany.com/share_save">Share & Bookmark</a><'+'script type="text/javascript" src="http://static.addtoany.com/menu/page.js"'+'><'+'/script>'); </script> </div> </div> <div style="margin-top:10px"> <p class="ads" class="robots-nocontent" style="margin-top:8px;"> <script type="text/javascript"><!-- google_ad_client = "pub-4441905138518539"; /* 336x280, ws-belowpost 3/8/10 */ google_ad_slot = "4194774871"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <div class="clear"> </div> </div> <script type="text/javascript"> // <![CDATA[ var disqus_shortname = 'webscripting'; var disqus_domain = 'disqus.com'; (function () { var nodes = document.getElementsByTagName('span'); for (var i = 0, url; i < nodes.length; i++) { if (nodes[i].className.indexOf('dsq-postid') != -1) { nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel')); url = nodes[i].parentNode.href.split('#', 1); if (url.length == 1) url = url[0]; else url = url[1] nodes[i].parentNode.href = url + '#disqus_thread'; } } var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = 'http://' + disqus_domain + '/forums/' + disqus_shortname + '/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); //]]> </script> <div><b class="hc">Possibly Related posts:</b></div><ul id="rpost"><li><a href='http://www.satya-weblog.com/2008/09/hide-ad-from-home-page-and-show-your.html' rel='bookmark' title='Permanent Link: Hide ad from home page and show your advertisement (any content) on other pages'>Hide ad from home page and show your advertisement (any content) on other pages</a></li> <li><a href='http://www.satya-weblog.com/2010/03/writing-clean-and-maintainable-code.html' rel='bookmark' title='Permanent Link: Writing Clean and Maintainable Code'>Writing Clean and Maintainable Code</a></li> <li><a href='http://www.satya-weblog.com/2008/09/customize-your-new-blogger-blogspot.html' rel='bookmark' title='Permanent Link: Customize your New Blogger’s (blogspot) Blog Title'>Customize your New Blogger’s (blogspot) Blog Title</a></li> </ul><div style="border:1px solid #ccc;"></div> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div id="postnavi"> <span class="prev"><a href="http://www.satya-weblog.com/2008/11/play-with-unicode-characters.html" rel="next">Prev</a></span> <span class="next"><a href="http://www.satya-weblog.com/2008/08/javascript-remove-delete-select-option.html" rel="prev">Next</a></span> <div class="fixed"></div> </div> <script type="text/javascript" src="http://www.satya-weblog.com/wp-content/themes/simple/js/comment.js"></script> <div class="messagebox"> Comments are closed. You are welcome to write on <a href="http://www.facebook.com/pages/Web-Scripting/176350059435" rel="external">Facebook page.</a> </div> <!-- google_ad_section_end --> </div> <!-- main END --> <!-- sidebar START --> <div id="sidebar"> <!-- sidebar north START --> <div id="northsidebar" class="sidebar"> <!-- showcase --> <div class="widget"> <div class="sideheader">New WP Plugin by WS</div> <div class="content"> <b><u><a href="http://wordpress.org/extend/plugins/performance-optimization-order-styles-and-javascript/">Performance Optimization: Ordering Stylesheet and Javascript</a></u></b> plugin based on Google's page-speed. <a href="/2010/08/website-performance-optimization-plugin-ordering-stylesheet-javascript.html"><u>Discussion</u></a>. <br/> <b><u><a href="http://wordpress.org/extend/plugins/escape-html/">Escape HTML plugin</a></u></b> - For those who posts code online. <u><a href="/2010/09/new-wordpress-plugin-escape-html.html">Discussion</a></u>. </div> </div> <div id="yarpp_widget-4" class="widget widget_yarpp_widget"><div class="sideheader">Related Posts</div> <ol><li><a href="http://www.satya-weblog.com/2008/09/hide-ad-from-home-page-and-show-your.html" rel="bookmark">Hide ad from home page and show your advertisement (any content) on other pages</a></li><li><a href="http://www.satya-weblog.com/2010/03/writing-clean-and-maintainable-code.html" rel="bookmark">Writing Clean and Maintainable Code</a></li><li><a href="http://www.satya-weblog.com/2008/09/customize-your-new-blogger-blogspot.html" rel="bookmark">Customize your New Blogger’s (blogspot) Blog Title</a></li></ol></div><div id="text-12" class="widget widget_text"><div class="sideheader">Connect</div> <div class="textwidget"><fb:like-box profile_id="176350059435" width="300" height="155"connections="5" stream="false" header="false"></fb:like-box></div> </div><div id="ad-sidebar300250" class="widget �lambda_4"><div style="text-align:left"> <script type="text/javascript"><!-- google_ad_client = "pub-4441905138518539"; /* 300x250, tech1/31/10 */ google_ad_slot = "8422749194"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div></div><div id="text-6" class="widget widget_text"> <div class="textwidget"><script type="text/javascript"> var jobthread_widget_title = " "; var jobthread_widget_outer_style = "width:310px;"; var jobthread_widget_inner_style = "background-color:transparent"; var jobthread_widget_title_style = "display:none"; var jobthread_widget_link_style = "color:#2970A6;text-decoration:none;border:none;"; var jobthread_widget_top_style = "padding-top:0px;"; var jobthread_widget_bottom_style = "padding-bottom:0px;"; document.write(unescape('%3Cdiv class="sideheader"%3EAvailable Jobs%3C/div%3E')); document.write(unescape("%3Cscript src='http://syndication.jobthread.com/widget/?id=e8c78e&num_jobs=8' type='text/javascript'%3E%3C/script%3E")); </script></div> </div></div> <!-- sidebar north END --> <!-- sidebar south START --> <div id="southsidebar" class="sidebar"> <div id="akpc-widget-11" class="widget akpc-widget"><div class="sideheader">Recently Popular (90 days)</div> <div class="akpc_report" rel=""> <ol> <li><span>41%</span><a href="http://www.satya-weblog.com/2010/07/eclipse-error-failed-to-load-the-jni-shared-library-cprogram-files-x86javajre6binclientjvm-dll.html">Eclipse Error - Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll"</a></li><li><span>5%</span><a href="http://www.satya-weblog.com/2010/06/google-font-api-font-viewer-2.html">Google Font API: Fonts Viewer - Preview all available Fonts in Google Directory</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/06/junk-character-problem-iso-8859-1-latin1-encoding.html">Junk Character Problem with ISO-8859-1 (Latin1) Encoding</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/06/wordpress-3-0-benefits-custom-fields.html">Wordpress 3.0 Benefits: Custom Fields</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/06/google-font-api-font-viewer-1.html">Google Font API: Why it exists and How it is useful!</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/07/php-curl-get-returned-content-mime-type.html">PHP + CURL: Get Returned Content Mime Type</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/07/display-broken-images-in-firefox.html">How to Display Broken Images in Firefox?</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/08/website-performance-optimization-plugin-ordering-stylesheet-javascript.html">Website Optimization plugin: Ordering Stylesheet and Javascript</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/07/editplus-text-editor-encoding-support.html">EditPlus Text Editor's Encoding support</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/07/google-analytics-track-outbound-links-special-pages.html">Google Analytics: Track Outbound Links And Special Pages</a></li> </ol> </div> </div></div> <!-- sidebar south END --> </div> <!-- sidebar END --> <div class="fixed"></div> </div> <!-- content END --> <!-- footer START --> <div id="footer"> <!-- google_ad_section_start(weight=ignore) --> <a id="gotop" href="#" onclick="MGJS.goTop();return false;">⇑ Top</a> <div id="fo-box1"> <p><b class="hc">Blog Stat.</b> </p> <p> <i><div class="generalstats-refreshable-output">Posts:298   Comments:411   </div></i> </p> <p> <a href="http://www.satya-weblog.com/2010/07/blog-stats.html">More on stats</a> </p> <p><b>Other links:</b></p> <p><a href="http://www.managednetworks.co.uk/it-support/regional-it-support/north-west/manchester/" title="UK support, IT management, and hosted desktop services" rel="external" target="_blank">IT Support Manchester</a></p> <p><a href="http://only-your-views.blogspot.com/" rel="external" target="_blank">My another blog</a></p> </div> <div id="fo-box2"> <p><b class="hc">Blogroll</b></p> <p><a href="http://www.sitepoint.com/" target="_blank" rel="external">Sitepoint</a></p> <p><a href="http://php.net/" target="_blank" rel="external">PHP official Site</a></p> <p><a href="http://www.devarticles.com/" target="_blank" rel="external">Dev Articles</a></p> <p><a href="http://www.labnol.org/" target="_blank" rel="external">Digital Inspiration</a></p> <p><a href="http://dev.mysql.com/" target="_blank" rel="external">MySQL Dev Zone</a></p> <p><a href="http://httpd.apache.org/docs/1.3/mod/directives.html" target="_blank" rel="external">Apache Docs</a></p> <p><a href="http://www.satya-weblog.com/blogroll" >more...</a></p> </div> <div id="fo-box3"> <p><b class="hc">Categories</b></p> <p><a href="http://www.satya-weblog.com/category/blogger" title="Blogspot, wordpress, related to blogging">Blogger/WP</a> (41)</p> <p><a href="http://www.satya-weblog.com/category/lamp" title="PHP, MySQL, Apache and Linux">LAMP</a> (89)</p> <p><a href="http://www.satya-weblog.com/category/security" title="about security, client side, server side">Security</a> (9)</p> <p><a href="http://www.satya-weblog.com/category/seo" title="search engine optimization">SEO</a> (15)</p> <p><a href="http://www.satya-weblog.com/category/tech-talk" title="tech news, new events etc">Tech Talk</a> (100)</p> <p><a href="http://www.satya-weblog.com/category/tools" title="any kind of web development related tools">Tools</a> (15)</p> <p><a href="http://www.satya-weblog.com/category/web-2" title="web2/3 or newer related technologies ">Web 2</a> (9)</p> <p><a href="http://www.satya-weblog.com/category/web-design" title="HTML, JavaScript, and CSS">Web Design</a> (70)</p> <p><a href="http://www.satya-weblog.com/category/xml" title="XML and related technologies">XML</a> (5)</p> </div> <div id="fo-box4"> <p><b class="hc">Information</b></p> <p><a href="/about">About</a></p> <p><a href="/feedback">Contact/Feedback</a></p> <p><a href="/ws_privacy_policies.php">Privacy</a></p> <p><a href="/terms-and-conditions">T & C</a></p> <p> <a href="/disclaimer">Disclaimer</a></p> </div> <div id="fo-box5"> <!-- < p> < a href="http://feeds.feedburner.com/satya-weblog/scripting"><img src="http://feeds.feedburner.com/~fc/satya-weblog/scripting?bg=99ccff&fg=333333&anim=0" height="26" width="88" style="border:0" alt="" /></a> < /p> --> <p> <a href="http://www.facebook.com/pages/Web-Scripting/176350059435"><img src="http://lh3.ggpht.com/_Ve5n9uU6iBI/TC4LUlM-CkI/AAAAAAAABEA/uGTebjpOU3M/s800/fb-facebook88-31.gif" alt="FB page" width="88px" height="31px" border="0"/></a> </p> <p> <a href="https://www.google.com/adplanner/site_profile?s=satya-weblog.com&b=1"><img src="http://www.gstatic.com/ads/branding/adplanner/adp80_15.gif" border=none width="80" height="15" border="0" title="Find my site on Google Ad Planner"></a> </p> </div> <div style="clear:both"></div> <div style="position:absolute;bottom:11px;left:15px;vertical-align:bottom;"> <a href="/sitemap.xml">Sitemap</a> | <a id="powered" href="http://wordpress.org/">Powered by WordPress</a> | Copyright © 2005-2010  <a href="http://www.satya-weblog.com/satya-prakash">Satya Prakash</a> </div> <!-- google_ad_section_end --> </div> <!-- footer END --> </div> <!-- container END --> </div> <!-- wrap END --> <script class="javascript" src="http://blog.satya-weblog.com/ws/g_sytx/shCore.js" ></script> <script class="javascript" src="http://blog.satya-weblog.com/ws/g_sytx/shBrush_min.js" ></script> <script class="javascript"> dp.SyntaxHighlighter.ClipboardSwf = 'http://blog.satya-weblog.com/ws/g_sytx/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); </script> <script type="text/javascript"> jQuery(function() { jQuery.post("index.php",{ak_action:"api_record_view", ids: AKPC_IDS, type:"single"}, false, "json"); }); </script> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '186008947609', status: true, cookie: true, xfbml: true}); document.getElementById('fbdiv').style.visibility='visible'; }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); </script> <script type="text/javascript"> /* Outgoing link tracking */ jQuery(function() { jQuery("a[href^=http]").not('a[href*="satya-weblog.com"]').click(function() { _gaq.push(['_trackEvent', 'outgoing', 'Links' ,"'" + this.href + "'"]); }); }); /* GA original code */ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga); })(); </script> </body> </html>