[DOM][IE7] BUTTON value attribute issue in IE7

Following #1316, here is a more suitable fix together with a unit test that covers the fix.

Thanks @ezequiel!