This is a proposal in response to this bug, which came up when someone named a child view "layout", 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, "node", 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><class name="myclass"><br> <attribute name="titleview" type="node"/><br><br> <handler name="oninit"><br>
<br></class><br><br><br><br><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br>