Traverse the dom upwards from the fromElement to the root element.
fromElement
The element from which the traversal starts
The function to execute on each element. A stop function is passed as the second argument to stop the traversal.
Traverse the dom upwards from the
fromElement
to the root element.