Textbooks tend to report structures as relatively static, whereas advanced biochemistry texts explore structural tautomerism. In essence, the histidine imidazole sidecvhain may move around it's protons and electrons when pH is roughly equal to pKa. Thus, the sidechain exists as two tautomers where the two nitrogens sort of "share" the double-bond character and the proton, like so:
![enter image description here](
And it's even more accurate to depict that the double-bond character is like so:
![enter image description here](