Hasn't been updated since 2007?! What? I got you.
I will be using actual physics to solve this problem.
1) How did you get darkvision?
A: Magic. This means a spell mostly.
B: Granted by a racial feature. This means the effect doesn't have to be magical. It can be a physical trait in your eyes...