It is very bad practice to modify a document which is not cloned, but it's still safer to avoid this kind of problem, since it's still done a lot...