Implements dirty value/checked flags for input
0c8e1ae
And modifies test-inputs.html to test. Fixes wpt breaking mistake