3 ms·
We're comparing this to writing bare HTML by hand. All of your criticisms apply equally to the technique it replaces. Now since however, I didn't really speci
by true_religion 15y ago
We're comparing this to writing bare HTML by hand.
All of your criticisms apply equally to the technique it replaces.
Now since however, I didn't really specify what went into the checkbox function behind the scenes... lets assume.
1. It creates unique id variations.
2. It handles the case where you have multiple checkboxes with the same name. Perhaps by passing in differing parameters (e.g. checkbox(id='?', name='foo')).
You're criticizing an unspecified strawman example. Until someone actually goes out and writes this library, neither you nor I know how 'fool proof' it really is and what edge cases it leaves unspecified.