This is necessary for layout tests. Also, minor cleanups.
Created attachment 43877 [details] WIP: Implement canSetValueAttribute in API.
Landed as http://trac.webkit.org/changeset/51402.