Clearly this depends on Jurisdiction, but for example grandfathered in electrical outlets are fine but kitchens and bathrooms almost always need more expensive ground faulted receptacles according to the National Electric Code. When human health and safety is a clear immediate risk such as this then it usually has to be torn out.
In California they have CEBC based on the IEBC, which requires old buildings to meet their own separate building codes.
It’s illegal tho
Depends.
Houses that were built before specific regulations came into force are almost always grandfathered into the old ones.
I myself live in a house built in 1900 which has steep stairs that would be illegal today, but it predates the regs and gets a pass.
Clearly this depends on Jurisdiction, but for example grandfathered in electrical outlets are fine but kitchens and bathrooms almost always need more expensive ground faulted receptacles according to the National Electric Code. When human health and safety is a clear immediate risk such as this then it usually has to be torn out.
In California they have CEBC based on the IEBC, which requires old buildings to meet their own separate building codes.