dom: add "isEditable" method

close #186