I use nested counters and scope to create an ordered html list.
This is my code: http://jsfiddle.net/qGCUk/2/
I expect the following result:
1. one 2. two 2.1. two.one 2.2. two.two 2.3. two.three 3. three 3.1 three.one 3.2 three.two 3.2.1 three.two.one 3.2.2 three.two.two 4. four
Instead, I see (wrong numbering) :
1. one 2. two 2.1. two.one 2.2. two.two 2.3. two.three 2.4 three <!-- this is where it goes wrong, when going back to the parent --> 2.1 three.one 2.2 three.two 2.2.1 three.two.one 2.2.2 three.two.two 2.3 four
I have no clue, does anyone see where this is going wrong?
html css
dirk May 01 '12 at 23:53 2012-05-01 23:53
source share