This is a proposal in response to this bug, which came up when someone named a child view &quot;layout&quot;, and got<br>unexpected results in a view.<br clear="all"><br><a href="http://jira.openlaszlo.org/jira/browse/LPP-5799">http://jira.openlaszlo.org/jira/browse/LPP-5799</a><br>
<br>The current compiler behavior is that it will allow you to declare a child with the same name as an attribute,<br>as long as the attribute has a null default value. <br><br>This proposal is that we add a new LZX attribute type, &quot;node&quot;, which you can use to declare that<br>
an attribute name can have the same name as child node.<br><br>So for example you could have<br><br>&lt;class name=&quot;myclass&quot;&gt;<br>&nbsp;&nbsp; &lt;attribute name=&quot;titleview&quot; type=&quot;node&quot;/&gt;<br><br>&nbsp;&nbsp; &lt;handler name=&quot;oninit&quot;&gt;<br>
<br>&lt;/class&gt;<br><br><br><br><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>