Use macro getters for input elements
Merge pull request #3176 from Manishearth/more-macros

Use macro getters for input elements: r=Ms2ger