title: Unable to detect empty paragraph
body: <p>I am using the following code to check for an empty paragraph but it never returns true. Why?</p>
  
  <pre><code>var isEmpty = pageChildren[i].outerHTML.toUpperCase() === "&lt;P&gt;&lt;/P&gt;";
  var isSpace = pageChildren[i].outerHTML.toUpperCase() === "&lt;P&gt; &lt;/P&gt;";
  var isNbsp = pageChildren[i].outerHTML.toUpperCase() === "&lt;P&gt;&amp;NBSP;&lt;/P&gt;";
  if(!isEmpty &amp;&amp; !isSpace &amp;&amp; !isNbsp){
     //do something
  }else{
     //do something else
  }
  </code></pre>
  
  <p>This is a copy paste of what IE8 debug tools tells me is in the outerHTML: <code>"&lt;P&gt;&lt;/P&gt;"</code></p>
  
  <p>This is being read from an iFrame so i need to remove the <code>&lt;p&gt;&lt;/p&gt;</code> tags also as the function above this triggers off of the number of children elements in the body of the frame.</p>
  
  <p>Additionally this runs in an HTA application on IE only. The userbase/configuration is highly controlled.</p>