<div>Hi Laszlo Users,</div><div><br></div><div>This was discussed previously in a thread in Laszlo-Dev, but we realized we should probably get people's opinion</div><div>from Laszlo User before deciding on the 'correct' behavior. I need to resolve this bug by either changing</div>
<div>the regression test to match the current behavior or changing the behavior of the deleteNode method back to the</div><div>older behavior.</div><div><br></div><div>The bug is <a href="http://www.openlaszlo.org/jira/browse/LPP-7461">http://www.openlaszlo.org/jira/browse/LPP-7461</a></div>
<div><br></div><div>And was discussed on laszlo dev back in December: <a href="http://www.openlaszlo.org/pipermail/laszlo-dev/2008-December/018410.html">http://www.openlaszlo.org/pipermail/laszlo-dev/2008-December/018410.html</a></div>
<div><br></div><div>Currently, the documentation says </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: 'Courier New'; font-size: 14px; line-height: 16px; "><span class="methodclass" style="font-size: 1.08em; color: rgb(51, 51, 51); ">datapointer.</span><span class="methodname" style="font-size: 1.08em; color: rgb(51, 51, 51); font-weight: bold; ">deleteNode</span>();</span><br>
<span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 14px; line-height: 16px; ">Removes the node pointed to by the datapointer. If <code class="varname" style="font-family: 'Courier New', Courier, monospace; font-size: 1.08em; font-weight: bold; color: rgb(100, 100, 100); background-color: rgb(234, 234, 234); ">rerunxpath</code> is true and <code class="varname" style="font-family: 'Courier New', Courier, monospace; font-size: 1.08em; font-weight: bold; color: rgb(100, 100, 100); background-color: rgb(234, 234, 234); ">xpath</code> has been set, it will be re-evaluated. Otherwise, if the deleted node has a following sibling, the pointer is repositioned at that sibling. Otherwise the pointer is set to <code class="literal" style="font-family: 'Courier New', Courier, monospace; font-size: 1.08em; font-weight: bold; color: rgb(100, 100, 100); background-color: rgb(234, 234, 234); ">null</code>.</span><br>
</blockquote><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 14px; line-height: 16px; "><div class="refsect3" lang="en" style="margin-top: 7pt; "><a name="d0e161863"></a></div>
</span></div><div><br></div><div>However, the current behavior actually will back up the pointer to a previous sibling if there is no next sibling. </div><div><br></div><div><br></div><br clear="all"><br>-- <br>Henry Minsky<br>
Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>