Don't update DOM properties when value is the same (fix #368)

Review URL: https://chromiumcodereview.appspot.com//13270002