the visualisation i use for this project is a color.
i came up with this logic:
The logic i use to determin when i reach the beginning of the node:
"LI" == node?.parentNode?.parentNode?.parentNode?.nodeName
I am wondering if there is another and efficienter way to do this?