“What can he want it for?” thought Great Claus; so he smeared the bottom of the measure with tar, that some of whatever was put into it might stick there and remain.
Source: The Tinder Box by Hans Christian Andersen
I don't understand the boldface part grammatically.
I guess the right thing would be:
that when some of whatever was put into it, it might stick there and remain.
Could you explain about that part grammatically?
Thanks for your help in advance.