title: Why is nodeName sometimes all-caps in javascript DOM?
body: <p>So I have a DOM document that looks essentially like this</p>
  
  <pre><code>&lt;categories&gt;
      &lt;category id="1"/&gt;
      &lt;category id="2"/&gt;
  &lt;/categories&gt;
  </code></pre>
  
  <p>This is how the document previews in Firebug, as I would expect.</p>
  
  <p>However, when I POST this to the server, I get</p>
  
  <pre><code>&lt;categories&gt;
      &lt;CATEGORY id="1"/&gt;
      &lt;CATEGORY id="2"/&gt;
  &lt;/categories&gt;
  </code></pre>
  
  <p>Indeed, doc.documentElement.firstChild.nodeName returns "CATEGORY".  The nodes are added using jQuery.append('&lt;category/&gt;').</p>
  
  <p>Why are the child tags returned in all caps?</p>