Markaby is nifty and all, but to my horror, just now I found out that it enforces the standards! That’s no way to live! A world of ideals and hopes and dreams. Okay so here is how to hack markaby to let you use an attribute that isn’t in the specs:
Markaby::XHTMLStrict.tagset[:option] << :"data-href"
And now you can use option(”blah”, :”data-href” => “nifty stuff!”) to transport nifty stuff to the funky cool javascripts in your page. Of course your page won’t validate anymore, but you’ll have a warm cuddly feeling because you are still using a standard, even if it’s a draft standard and not the one you specified with your doctype, and your app will work and have nice clean output! This hack would be especially useful for using Dojo with markaby. :)