↓ Skip to main content

Valid Dojo

·185 words

I managed to make it to the Happy Clog meeting (pictures) one hour late. It was fun having a couple of drinks in de Bruine Boon and talking about standard standards stuff.

Not having any internet (Wireless Leiden is not all that it is made up to be), options for discussion and show and tell were quite limited. Luckily I keep recent checkouts of both dojo and django on my iBook. I showed a couple of dojo widgets and explained the logic behind, so I could get some evangelizing in.

The first comment I got was that the dojoType in the widgets <div dojoType="FisheyeList"… would not validate. On page load dojo scans the dom to see where it has to replace nodes with widgets. The dojoType attribute is one of the handles it can grab hold of.

These guys are really into their validators and were not easily swayed by all this widget loveliness.

I could not dig up the relevant bits then and there, but now at home I can find the relevant FAQ entry. Above code could be made to validate like this:

So all’s well that ends well.

Alper Cugun
Author
Alper Cugun

Related

Typaholics

·32 words
Cool stuff about pluggable type systems at Lambda. I’m not academic enough to understand all the nuances of the arguments posed, but I do enjoy any type of argument against static typing.