dom: fix codestyle, add testcase for isEditable