According to Realtor.com, the seller is often responsible for major fixes such as structural defects, building code violations, or safety issues.