This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://mimesniff.spec.whatwg.org/#determining-the-sniffed-media-type-of-a-resource This algorithm is confusing. Section 4 defines "sniffed media type" as the result of invoking an algorithm, but then that algorithm reads that value. It looks like the algorithm really should be reading and writing to a "local variable", and then returning that, or, that the term shouldn't be defined outside that algorithm such that the algorithm should just be called directly by referencing specs.
I believe I have fixed this. https://github.com/whatwg/mimesniff/commit/60f10b24638b728cb73bee9a8b2f08e82359487f