Michele Cella, el mi�rcoles 28 de diciembre a las 14:47 me escribiste: > > Leandro Lucarella wrote: > > Karl Guertin, el mi?rcoles 28 de diciembre a las 00:09 me escribiste: > > > I'm also annoyed that the labels all have 'for="widget"' rather than > > > the correct widget name. > > > > This one is clearly a bug, did you opened a ticket? > > > > Yes, labels should have their for attribute pointing to the right > widget id. > > Before doing this we should agree on some standard naming conventions > that every widget should use for its class and id attributes (others?). > > For example a text field: > > TextField(name="Age") > > should give: > > <input type="text" name="age" id="????" class="???"> > > where id could be: > > id="tg_age_id" (tg namespaced) > id="age_id"
Is there a real need for name mangling? Why not just use "age" as the id? After all you already selected the name, that it's supposed to be unique, right? (mmm, maybe this is not true for multiple elements widgets, but we can mangle by adding a sequence number to that iterms only) -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ .------------------------------------------------------------------------, \ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 / '--------------------------------------------------------------------' CONDUCTOR BORRACHO CASI PROVOCA UNA TRAGEDIA: BATMAN UNICO TESTIGO -- Crónica TV

