<tbody> glitch in PHP Simple HTML DOM parser <p>I'm using PHP Simple HTML DOM Parser to scrape some data of a webshop (also running XAMPP 1.7.2 with PHP5.3.0), and I'm running into problems with <code>&lt;tbody&gt;</code> tag. The structure of the table is, essentialy (details aren't really that important):</p> <pre><code>&lt;table&gt; &lt;thead&gt; &lt;!--text here--&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;!--text here--&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Now, I'm trying to get to the <code>&lt;tbody&gt;</code> section by using code:</p> <pre><code>$element = $html-&gt;find('tbody',0)-&gt;innertext; </code></pre> <p>It doesn't throw any errors, it just prints nothing out when I try to echo it. I've tested the code on other elements, <code>&lt;thead&gt;</code>, <code>&lt;table&gt;</code>, even something like <code>&lt;span class="price"&gt;</code> and they all work fine (ofcourse, removing ",0" fails the code). They all give their correct sections. Outertext ditto. But it all fails on <code>&lt;tbody&gt;</code>.</p> <p>Now, I've skimmed through the Parser, but I'm not sure I can figure it out. I've noticed that <code>&lt;thead&gt;</code> isn't even mentioned, but it works fine. <em>shrug</em></p> <p>I guess I could try and do child navigation, but that seems to glitch as well. I've just tried running:</p> <pre><code>$el = $html-&gt;find('table',0); $el2 = $el-&gt;children(2); echo $el2-&gt;outertext; </code></pre> <p>and no dice. Tried replacing <code>children</code> with <code>first_child</code> and 2 with 1, and still no dice. Funny, though, if I try <code>-&gt;find</code> instead of <code>children</code>, it works perfectly.</p> <p>I'm pretty confident I could find a work-around the whole thing, but this behaviour seems odd enough to post here. My curious mind is happy for all the help it can get.</p>