<div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br><br></div>I am working on deleting and adding Routes via deleting and adding Route DOM elements, with cobweb:<br><br><a href="https://andreasplesch.github.io/cobweb_dom/tests/fanOutRoute.xhtml">https://andreasplesch.github.io/cobweb_dom/tests/fanOutRoute.xhtml</a><br><br></div>It seems to work fine for Routes in the main scene/execution context.<br><br></div>Now, there may be an expectation to also be able to add/delete routes within inlines and their execution contexts, from outside the inline since DOM javascript code is by definition external. <br><br></div><div>For example, a common scenario may be to have a scene with a single Inline dom node as a way to include the x3d content while still keeping the html concise. A web page author then may still want to manipulate all aspects of the x3d.<br></div><div><br></div>There is probably a way in cobweb to get the correct execution context of the Route node that user code wants to remove, or add, by looking for the closest ancestor scene element (since inline scenes are appended to their inline element). Using this execution context it would then be possible to use the SAI addRoute and deleteRoute functions.<br><br></div>However, the standard SAI does not seem to have a function to get the execution context of an Inline scene, even for external SAI use ? Is this the case ?<br><br></div>If this is the case, is the main reason that the expectation is that any access to a scene contained in an Inline would have take to place from scripts (I believe these would be the containing node of <a href="http://www.web3d.org/documents/specifications/19775-2/V3.3/Part02/concepts.html#ContainingNode">http://www.web3d.org/documents/specifications/19775-2/V3.3/Part02/concepts.html#ContainingNode</a>) within the inline ?<br><br></div>Just trying to understand all what is involved. Any hints or comments welcome,<br><br></div>Andreas<br><div><div><div><div><div><div><br><div><div><div><div><div><div><div><div><br><br clear="all"><br>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>