whatwg / mimesniff

MIME Sniffing Standard
https://mimesniff.spec.whatwg.org/
Other
109 stars 44 forks source link

Sniffing algorithms style #81

Open annevk opened 6 years ago

annevk commented 6 years ago

The current style where the algorithms modify seemingly global variables is rather ugly. I'd like to rewrite the existing algorithms to instead operate on zero or more parameters and return a clearly defined data structure or item.

This will require downstream changes, most notably in HTML, but that seems surmountable.

This would also solve #10.

annevk commented 5 years ago

We should also adopt Infra conventions.