diff --git a/src/dom/dom.js b/src/dom/dom.js index 84c144d..d68b232 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -922,8 +922,28 @@ Element.Methods = { /** * Element.descendantOf(@element, ancestor) -> Boolean + * - ancestor (Element | String): The element to check against (or its ID). * * Checks if `element` is a descendant of `ancestor`. + * + * ##### Example + * + * Assuming: + * + * language: html + *