nitc :: ANode :: root
This just apply parent until the first one
parent
# The topmost ancestor of the element # This just apply `parent` until the first one fun root: ANode do var res = self loop var p = res.parent if p == null then return res res = p end end