title: Javascript HierarchyRequestError
body: <p>FF JS interpreter does not like this code:</p>
  
  <pre><code>var dialog = "&lt;div id=\"dialog\" title=\"Dimensions\"&gt;&lt;p&gt;new width = " + r[0] + "mm&lt;/p&gt;&lt;p&gt;new height = " + r[1] + "mm&lt;/p&gt;&lt;/div&gt;";
  $("body").append(dialog).dialog({ resizeable:false, modal:true, buttons:{"OK":function(){ $(this).dialog("close"); }} });
  </code></pre>
  
  <p>Why is this problematic?</p>
  
  <blockquote>
    <p>HierarchyRequestError: Node cannot be inserted at the specified point
    in the hierarchy</p>
  </blockquote>