jweisbeck / Crossword

A javascript crossword puzzle script
http://www.jesseweisbeck.com/crossword/
244 stars 140 forks source link

Set correct index of clues using recently un-deprecated li@value #7

Open thatpixguy opened 8 years ago

thatpixguy commented 8 years ago

I noticed that 803e201c53632e9408efd0411701dc54b326cc16 introduced a bug where both the Across and Down clues were labelled continuously (eg. 1,2,3,4...) when the actual positions are discontinuous (eg. 1,3,5...).

There is a (briefly deprecated) value attribute on li that allows setting of the indexes in a list, which this patch uses to set the actual positions of the clues. http://www.w3.org/TR/html-markup/li.html