added dirty flags to DOM nodes