title: True client-side HTML includes
body: <p>HTML doesn't support client-side inclusion of other HTML, such as one gets for C with the <code>#include</code> directive.
  Instead, the dominant tools for client-side HTML inclusion appear to be <code>iframe</code>, <code>object</code>, and especially jQuery's <code>.load</code>.
  See <a href="https://stackoverflow.com/questions/8988855/include-another-html-file-in-a-html-file">this thread</a> for examples.</p>
  
  <p>Unfortunately, none of these methods seem to produce exactly the same DOM one would get from a  <code>#include</code>.
  In particular, <code>iframe</code> and <code>object</code> wrap the included content in their respective tags.
  Also, the jQuery solution proposed in the example thread still results in a DOM with an extra <code>div</code>.</p>
  
  <p>For example, consider the thread's jQuery solution:</p>
  
  <p>a.html:</p>
  
  
  
  <pre><code>&lt;html&gt; 
    &lt;head&gt; 
      &lt;script src="jquery.js"&gt;&lt;/script&gt; 
      &lt;script&gt; 
      $(function(){
        $("#includedContent").load("b.html"); 
      });
      &lt;/script&gt; 
    &lt;/head&gt; 
  
    &lt;body&gt; 
       &lt;div id="includedContent"&gt;&lt;/div&gt;
    &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>b.html:</p>
  
  <pre><code>&lt;p&gt; This is my include file &lt;/p&gt;
  </code></pre>
  
  <p>This will create a DOM where the body part looks like:</p>
  
  <pre><code>&lt;body&gt; 
    &lt;div id="includedContent"&gt;
      &lt;p&gt; This is my include file &lt;/p&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>but a true <code>#include</code> would not include the wrapping <code>div</code>, so the DOM would look like:</p>
  
  <pre><code>&lt;body&gt; 
    &lt;p&gt; This is my include file &lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Any idea how to do a client-side include without the wrapper tags?</p>
  
  <p>EDIT: I don't want to assume knowledge of the surrounding tags.
  For example, in this case the surrounding tag is <code>body</code>, but it won't be in all cases.</p>