title: jQuery parseHTML and parseXML behavior
body: <p>In my <a href="https://stackoverflow.com/questions/22401311/parsexml-cannot-parse-xml-with-script-tag-inside">previous question</a> I was looking for the reason why <code>$.parseXML</code> throws exception when it encounters a <code>script</code> tag inside a BPMN file. I though this is an issue with jQuery and also posted this on their issue tracker and got a suggestion to try <code>$.parseHTML</code>.</p>
  
  <p>The difference is that <code>$.parseHTML</code> doesn't throw any exception but it silently ignores the tags after the first <code>script</code> tag. Here is the valid XML I used for testing:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;someroot&gt;
      &lt;firsttag&gt;
             &lt;peacefultag&gt;&lt;/peacefultag&gt;
      &lt;/firsttag&gt;
      &lt;secondtag&gt;
          &lt;a&gt;asdsa&lt;/a&gt;
      &lt;/secondtag&gt;
  &lt;/someroot&gt;
  </code></pre>
  
  <p>and the following simple selectors:</p>
  
  <pre><code>$(result1).find('firsttag').length; // 1
  $(result1).find('secondtag').length; // 1
  </code></pre>
  
  <p>If you replace the <code>peacefultag</code> in the above XML with <code>script</code> this happens:</p>
  
  <pre><code>$(result1).find('secondtag').length; // becomes 0.
  </code></pre>
  
  <p>Here is the fiddle: <a href="http://jsfiddle.net/k7m6w/" rel="nofollow noreferrer">http://jsfiddle.net/k7m6w/</a></p>
  
  <p>Am I missing something, is this the expected behavior?</p>