derickbailey/backbone.modelbinding — Issue #52: Why 'id' and not 'name' in input bindings
Author: ulmus
Created: 2012-01-04 10:10:10+00:00
State: open

I'm starting to use Backbone.Modelbinding and I really like the structure and simplicity. One thing that puzzled me, why do you use 'id' and not 'name' as your default binding attribute. This means that if I have several instances of a bound view rendered, the inputs will have the same id to be able to bind to the same attribute, meaning that the markup will be invalid.

Is this for performance reasons, convention or is there some other reasoning?