Ordered list HTML autonumbering

The start attribute

Ordered list, starting with -1

  1. One
  2. Two
  3. Three

Will begin with "-1" if negative integers are allowed (wrong), "1" otherwise (correct).

Ordered list, starting with 0

  1. Zero
  2. One
  3. Two

Will begin with "0" if zero is allowed (correct), "1" otherwise (wrong).

Ordered list, starting with 1

  1. One
  2. Two
  3. Three

Ordered list, starting with 2

  1. Two
  2. Three
  3. Four

SGML-test: Ordered list, starting with "002"

  1. Two
  2. Three
  3. Four

Ordered list, starting with 2.5

  1. One
  2. Two
  3. Three

Expected result is that the illegal value is ignored (i.e. 1-2-3). It could be truncated (i.e. 2,3,4) or using a floating point real (2.5, 3.5, 4.5). Both would be an error.

Ordered list, starting with C

  1. One
  2. Two
  3. Three

Expected result is that the illegal value is ignored (i.e. 1,2,3). It could be mapped to "equivalent" integer (i.e. 3,4,5) or have its list style set to alpha (C,D,E). Both would be an error.

The value attribute

Setting value to -1

  1. One
  2. Two (value="-1")
  3. Three

Will show "1,-1,0" if all integers are allowed (wrong), "1,2,3" otherwise (correct).

Setting value to 0

  1. One
  2. Zero (value="0")
  3. One

Will show "1,0,1" if zero is allowed (correct), "1,2,3" otherwise (wrong).

Setting value to 1

  1. One
  2. One (value="1")
  3. Two

Setting value to 2

  1. One
  2. Two
  3. Two (value="2")

SGML-test: Setting value to "002"

  1. Two (value="002")
  2. Three
  3. Four

Setting value to 2.5

  1. One (value="2.5")
  2. Two
  3. Three

Expected result is that the illegal value is ignored (i.e. 1-2-3). It could be truncated (i.e. 2,3,4) or using a floating point real (2.5, 3.5, 4.5). Both would be an error.

Setting value to C

  1. One
  2. Two (value="C")
  3. Three

Expected result is that the illegal value is ignored (i.e. 1-2-3). It can mapped to "equivalent" integer (i.e. 1,3,4) or have its list style set to alpha (A,C,E). Both would be an error.