validation added for some cases, added dom node in the diff output