How do I get the level of depth of a list?
- the list can be asymmetric
- x number of "li" or "ul" nested
x number of li or ul
for example: A list of Level 2
<ul>
<li>1
</li>
<li>2
<ul>
<li>2.1</li>
<li>2.2</li>
<li>2.3</li>
</ul>
</li>
<li>3
</li>
</ul>
A list of Level 3
<ul>
<li>1
</li>
<li>2
<ul>
<li>2.1
<ul>
<li>2.1.1</li>
</ul>
</li>
<li>2.2</li>
<li>2.3</li>
</ul>
</li>
<li>3
</li>
</ul>