Effect of halogen atom on Markovnikov's rule
Markovnikov's rule is just a simple rule for predicting the structures of  alkenes in some reactions.
It is not advisable to apply this rule to all cases,it is often helpful to check the relative stability of carbocation intermediates.

In your question the carbocation will be stabilised by +M 
effect of halogen as halogens have lone pair of electrons.