When stretching the hamstring, dorsiflexion of the ankle is not necessary. You may “feel” it more but what you may feel is neural tension and not necessarily true lengthening of the hamstring. Thanks Al!