Functiondojo.isDescendant

<script src="../../js/dojo.js"></script>
defined in dojo/_base/html.js

Returns true if node is a descendant of ancestor

Usage

function (/*DomNode|String*/ node, /*DomNode|String*/ ancestor) (view source)
parametertypedescription
nodeDomNode|Stringid or node reference to test
ancestorDomNode|Stringid or node reference of potential parent to test against