Results 1 to 1 of 1

Thread: You've got divs in your head and facebook

  1. #1

    Default You've got divs in your head and facebook

    Or in other words the HTML output of the forum is quite broken. There's a facebook "reset" container div lodged in the head of the forum output, which in HTML-tag-soup-mode means the rest of the stuff from thereon out is considered the body. This in turn places your title and most of your script/CSS resource linkage (<link> and <script> tags) that were previously part of the head in body, which is probably not what you want. By the way the facebook JavaScript explicitly looks for the first script element of the html element and then inserts itself before that, which doesn't strike me as such a good idea either:
    Code:
    <!-- Begin Facebook Javascript code -->
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    Luckily no browser ever does validation of this HTML thing by default, but should whatever facebook integration/snooping you have going on suddenly break/start to work/eat you alive... well, you have been warned.
    Last edited by Tellos Athenaios; 07-12-2013 at 17:58.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO