title: TypeError: this.$E_0.getElementsByTagName is not a function
body: <p>I am attempting to create a modal dialog in sharepoint 2010, but I'm getting this error:</p>
  
  <pre><code>TypeError: this.$E_0.getElementsByTagName is not a function
  </code></pre>
  
  <p>my code is:</p>
  
  <pre><code>var options = SP.UI.$create_DialogOptions();
  options.html = '&amp;lt;div class=&amp;quot;ExternalClass23FFBC76391C4EA5A86FC05D3D9A1904&amp;quot;&amp;gt;&amp;lt;p&amp;gt;RedConnect is now available.​&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;';
  options.width = 700;
  options.height = 700;
  SP.UI.ModalDialog.showModalDialog(options);
  </code></pre>
  
  <p>using firebug, i tried simply using the url field instead of the html field and it gave no error.</p>
  
  <p>also related to this, what does SP.UI.$create_DialogOptions() actually do? what is the difference between using it and simply using a dict of values for your options?</p>