title: XPath errors on empty link element
body: <p>I'm new to xpath and trying to extract from the header element in the code provided:</p>
  
  <pre><code>&lt;div class="description" itemprop="description"&gt;
        &lt;link id="tabscss" rel="stylesheet" onError="jQuery191('#tabs &gt; ul &gt; li').hide();&gt;
               &lt;ul&gt;
                   &lt;li&gt;
                                     &lt;a href="#tabs-1"&gt;WTF&lt;/a&gt;
                               &lt;/li&gt;
               &lt;/ul&gt;
              &lt;div class="description" id="tabs" itemprop="description"&gt;
               &lt;ul&gt;
                   &lt;li&gt;
                                     &lt;a href="#tabs-1"&gt;Description&lt;/a&gt;
                               &lt;/li&gt;
               &lt;/ul&gt;
               &lt;div id="tabs-1"&gt;
                   &lt;h1&gt;6 units/lot&lt;/h1&gt;
                   &lt;h1&gt;($ 3.25/unit)&lt;/h1&gt;
                   &lt;p&gt;Brings 2 liquid matte Gloss , 3 Matte lipsticks &amp;amp; a Bonus Matte lip liner &lt;/p&gt;
                   &lt;p&gt;Brings beauty guide for the perfect look &lt;/p&gt;
                   &lt;p&gt;&lt;strong&gt;**We can not guarantee the condition of any acrylic displays as they are extremely delicate and may get damaged during its delivery.**&lt;/strong&gt;&lt;/p&gt;
           &lt;/div&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried using the following:</p>
  
  <pre><code>//div[@class='description']//div[@id='tabs-1']/h1[1]
  </code></pre>
  
  <p>to extract the content of the header (h1[1]) element. I always get an empty result, EXCEPT if I remove the link element OR add a closing / to the link element. </p>
  
  <p>It appears the link element redirects the xpath query and doesn't allow it to parse the rest of the request. </p>
  
  <p>What I've read on link elements does provide an answer as to how to either avoid the link element or escape it.</p>
  
  <p>Thanks in advance</p>