27 Aug
2025
27 Aug
'25
2:48 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/omnavigator.c:
+ while(a < b) { + i = (a + b) / 2; + c = wcsicmp(table[i].content_type, content_type); + if(!c) return table[i].doc_type; + if(c > 0) b = i; + else a = i + 1; + } + return DOCTYPE_INVALID; +} + +static const char *const content_type_from_document_type[] = { + [DOCTYPE_HTML] = "text/html", + [DOCTYPE_XHTML] = "application/xhtml+xml", + [DOCTYPE_XML] = "text/xml", + [DOCTYPE_SVG] = "image/svg+xml", +}; Why do we need all of that? Could we just lowercase `mimeType` string and pass that to Gecko?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8821#note_113994