Earlier quoted context omitted.
If you look at the page source he actually does parse the color to determine if the text should be white or black.
To be pedantic, he does NO parsing _of the subdomain_; he "parses" the computed-style color designated by the browser's parser.
Happy everyone is enjoying it!