Note: This walks up Laminar's element tree, not the real DOM tree. See com.raquo.laminar.DomApi.isDescendantOf if you want to check the real DOM tree.