Preventing DOM code insertion while snapping.