And that's my point. If it matters, YOU should pass -id X instead of letting us generate one. In other words:
set f [form #auto] ; $f checkbox foo -label Foo ; ## Note, I don't care about an ID here. $f checkbox bar -label Bar ; ## Don't care about this one either. $f checkbox moo -label Moo -id bar-checkbox ; ## I'm going to style this or use Javascript, so I need its ID. If you are letting US auto generate IDs and then using those in your CSS and JS, you're a bad, bad developer. One, tiny change to your HTML, and your shit is busted. If you rejiggered your form to move Bar above Foo, you just screwed up their ID you were relying on. The documentation should say that if you don't give us a -id, we'll auto-generate one that is unique. That's it. We can give people rope to hang themselves, but we don't have to put it around their neck and give them a push. D On May 30, 2012, at 10:42 AM, Harald Oehlmann wrote: >> On May 30, 2012, at 10:20 AM, Harald Oehlmann wrote: >>> Refering to the issue to generate the value "idcur" of: >>> <label ref="idcur">labeltext</label><option id="idcur" name="namecur" >>> value="valuecur"/> > >> Am 30.05.2012 17:34, schrieb Damon Courtney: >> The ID need only be unique to the request and it does not need to be >> repeatable for each request of the same page. It is simply a way for >> the browser to link the label to the check / radio button such that >> clicking the label will then trigger the button. They need to be unique >> because all IDs in an HTML page need to be unique. I believe the UUID >> package was used originally to ensure uniqueness no matter what the user >> might choose as their IDs. >> > > As far as I know, the ID may be used at two places: > > - JavaScript > - Cascading Style Sheets (newer version) > > Thus it may matter to a developper and it would be helpful, if it is > predictable and documented. > > Regards, > Harald --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org For additional commands, e-mail: rivet-dev-h...@tcl.apache.org