title: I'm having trouble placing a Dojo widget in the page
body: <p>I've got a simple widget:</p>
  
  <pre><code>define(["dojo/_base/declare", "dijit/_WidgetBase", "dojo/dom-construct"],
  function(declare, WidgetBase, domConstruct){
  
      return declare("gijit.workflow.debug.combi", [WidgetBase], {
          startup: function(){
              alert("started");
          },
          buildRendering: function(){
  
              var container = domConstruct.create("div", {innerHTML:"test"}, this.domNode, "first");
              var rad1 = domConstruct.create("input", {type:"radio"}, container, "first");
              var rad1 = domConstruct.create("input", {type:"radio"}, container, "last");
          }
      });
  });
  </code></pre>
  
  <p>and a simple loading page:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html &gt;
  &lt;head&gt;
  
  &lt;link rel="stylesheet" href="../../../css/tcs-style-dijit.css" /&gt;
  
  &lt;script&gt;dojoConfig = {parseOnLoad: false}&lt;/script&gt;
  &lt;script src="../../../js/dojo/dojo.js" data-dojo-config="async: true"&gt;&lt;/script&gt;
  &lt;!-- &lt;script src="../../../js/gijit/workflow/debug/combi.js"&gt;&lt;/script&gt; --&gt;
  &lt;script&gt;
  require(["dojo/dom", "gijit/workflow/debug/combi", "dojo/parser",
          "dojo/_base/window"], function(dom, combi, parser, window) {
      var widget = new combi();
      widget.placeAt(window.body());
  //  widget.startup();
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body id="dd" class="tcs"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However, I get the following error:</p>
  
  <p>Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLBodyElement.appendChild]
  domain">http://<em>domain</em>: <em>port</em>/js/dojo/dojo.js
  Line 15</p>
  
  <p>I have isolated the error to the point where I try to place the widget in the HTML:</p>
  
  <pre><code>widget.placeAt(window.body());
  </code></pre>
  
  <p>I am unable to figure out what is causing the issue, and would appreciate some help</p>