كالطلاق الحائض
Giving divorce during menstruation contravenes the prescribed manner of divorce. In the Hanafi analysis, however, that prohibition does not automatically prevent the divorce from taking legal effect.
The proper way to divorce and the legal effect of words of divorce once pronounced are distinct questions. “The manner is forbidden” does not necessarily entail “no divorce occurred.”
The example illustrates the possibility of both a prohibition and an operative legal consequence; it is not an endorsement of the prohibited conduct.