The defendant can avoid liability by proving that the defect is ‘attributable to compliance with any requirement imposed by law.’ This defence can only apply where the law actually requires whatever caused the defect, and not where it merely permits it.