ded / bonzo

library agnostic, extensible DOM utility
Other
1.32k stars 137 forks source link

Treat disabled as state attribute #90

Closed joefiorini closed 12 years ago

joefiorini commented 12 years ago

This allows setting/retrieving disabled as true or false.

rvagg commented 12 years ago

May as well add 'readonly' and 'multiple' while you're at it eh? There's a bunch more but I'm not sure there's much else that's interesting (perhaps 'async' and 'defer'... but that's pretty edge-case). Also, since they are getting bigger, I wouldn't mind seeing the duplication between specialAttributes and stateAttributes reduced or removed if you're up to the challenge?