I assume what the author is trying to get at is that sometimes if a woman is dressed "sexily", she is deemed to be asking for harassment in the street. So wearing attractive clothes should not mean that a woman is consenting to be sexually harassed. I doubt she meant that it would be harassment if someone yelled at a woman that she should choose a different colour of hosiery!