I could probably implement such a function that checks "how deep" is that element in the document and determine its level.
However I would like to know if t