Added a property attribute handler

Minimal fix for #1752. This solves our problems with both checkbox.checked and input.value.