dojo parser and registry issue
<p>Please take a look to this embarassing snippet of code:</p>

<p><a href="https://jsfiddle.net/nwatzos1/1/" rel="nofollow">https://jsfiddle.net/nwatzos1/1/</a></p>

<h2>html</h2>

<pre><code>&lt;div id="viewLogin" data-dojo-type="dojox/mobile/View" data-dojo-props="selected:true"&gt;    
  &lt;input id="txt" type="text" data-dojo-type="dojox/mobile/TextBox" data-dojo-props="selectOnClick:true, placeHolder:'pin'" name="pin" autocomplete="off" required&gt;    
&lt;/div&gt;
</code></pre>

<h2>js</h2>

<pre><code>require([
  "dijit/registry",
  "dojo/parser",
  "dojo/domReady!"
], function(registry, parser) {
    parser.parse();
  var text = registry.byId("txt");
  text.set("value", "hello");
});
</code></pre>

<h2>config</h2>

<pre><code>data-dojo-config="isDebug: true, async: true, parseOnLoad: false"
</code></pre>

<p>as you can see I get the error:</p>

<blockquote>
  <p>TypeError: text is undefined</p>
</blockquote>

<p>The same happens also if I set the <code>parseOnLoad</code> flag to <code>true</code> and comment the <code>parser.parse()</code> line.</p>

<p>I wait for the <code>domReady</code> then I parse it... why it cannot find the widgets?
To me, it seems very close to the first example in the Getting started documentation:</p>

<p><a href="https://dojotoolkit.org/documentation/tutorials/1.10/dojo_config/index.html" rel="nofollow">https://dojotoolkit.org/documentation/tutorials/1.10/dojo_config/index.html</a></p>

<p>I'm not able to view my error.</p>