title: DomxPath query do not return a nodelist
body: <p>I've been working on some practice application involving xPaths and Retrieving elements from other website.</p>
  
  <p>I used DomXpath for it but it is not returning a result or nodelist.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>$DOM = new DOMDocument();
  @$DOM-&gt;loadHTML($html);
  $xpath = new DOMXPath($DOM);
  $nodes = $xpath-&gt;query("//span[contains(@style,'font-size:25px;')]");
  foreach ($nodes as $node) {
      echo $node-&gt;nodeValue;
  }
  </code></pre>
  
  <p>The page source of the example:</p>
  
  <pre><code>    &lt;div class="front-view-content full-post"&gt;
      &lt;p&gt;
        &lt;span style="font-size:25px; color:#98293D;"&gt;RED&lt;/span&gt;&lt;br&gt;
        &lt;span style="font-size:25px; color:#98293D;"&gt;BLUE&lt;/span&gt;&lt;br&gt;
        &lt;span style="font-size:25px; color:#98293D;"&gt;WHITE&lt;/span&gt;&lt;/p&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>it doesn't return anything just a plain blank.</p>