If you have not been attacked by a dog due to trespassing, the owner of the dog that bit you is fully responsible for your injury. They will be held liable and will have to pay you the damages you are entitled to eventually.