This seems like a nice, relatively small and self contained feature to work on
https://mimesniff.spec.whatwg.org/#parsing-a-mime-type