If you want only HTML attributes:
var e = document.getElementById('my_input');
for (var x in e)
if (e.hasAttribute(x))
console.log(x);
If you want all the properties that can be obtained / set using JavaScript:
var e = document.getElementById('my_input');
for (var x in e)
if (typeof e[x] != 'function')
console.log(x);
JSBin - - Firefox typeof e['selectionStart'].