title: xpath not allowing id and name having same value
body: <p>I have some html like this</p>
  
  <pre><code>&lt;tr id="start_5672297" data-start-id="5672297" data-start-no="" class="start"&gt;
  ...
    &lt;td class="club"&gt;
      &lt;div&gt;
        &lt;a href="xxxx" name="start_5672297"&gt;xxxx&lt;/a&gt;
      &lt;/div&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>A <code>$doc = new DOMDocument(); $doc-&gt;loadHTML($text);</code> 
  gives the error </p>
  
  <blockquote>
    <p>ID start_5672297 already defined</p>
  </blockquote>
  
  <p>It seems like loadHTML does not distinguish between <code>ID=</code> and <code>name=</code></p>
  
  <p>If I "preprocess" the $text with <code>$text = str_replace('name="start', 'name="xstart', $text );</code> I can parse the text fine;</p>
  
  <p>Am I missing something obvious or is it a bug?</p>