Blackdann:

Dave-in-Acton was talking about employers deciding not to hire women of child-bearing years, on the presumption they will be the ones taking parental leave.

It's not the presumption that would violate the law, it's acting on it - and deciding not to hire women of that age. That's illegal.