For this one, I avoided using extra attr. since I don't really need it. I did use the pretty useful .substring() method, and now it's valid (for that matter).
Thank you. Problem solved. On 13 avr, 19:38, Sanford Whiteman <[email protected]> wrote: > > Ok, thank you for your response, and sorry to bother you. > > No prob! > > > I think i will have to adapt the script to strip off the numeric value > > from the ID and create something lile id="rank-0", "rank-1" etc. > > Before, i will have another newbie question : is it possible, for this > > purpose, to use a completely forged attribute, something like rank="0" > > rank="1" ? > > If you have to use a custom attr, it should start with "data-" > ("data-rank-0", "data-rank-1", etc.). That will pass an HTML5 (though > not 4) validator and will work fine with Moo. > > -- S.
