> (changed the things I did not commetn on. document still at > http://stud4.tuwien.ac.at/~e0225227/MozillaMIMETypes.html)
One issue with the first paragraph -- it uses "content type" and "mime [sic] type" to mean the same thing. I would use "MIME type" both places. > The target audience is mostly web developers who wonder how Mozilla > decides to handle content, I'd say. > > But in fact one reason for not putting it on m.o was that I was not sure > where to best put it. Fair enough. I'd probably put this under web developer docs somewhere, but link it from various places, including the necko doc pages. > You mean "By checking for most common HTML Tags, it is checked if the > data is html content"? I could not come up with a good alternative > phrasing, could you suggest one? Since the list comes after "It does the following:", I would say: "Checks whether the data is HTML by looking for some common HTML tags." > > IV) I believe we check for a preferences extension-to-type mapping before > we > > ask the OS. If that's not the case, it's a bug. > > Yes; reading the code, I was not sure if we did the correct thing. > (I did not think of that use case when writing the code...) > > Someone should check this. maybe I'll do it when I get time. I just looked at the code again. If there is a preference mapping of extension to type and a different OS mapping, we will in fact use the OS mapping, looks like (since CopyUserSettings does not copy the type and in fact assumes the types are equal). We should fix that (possibly by not using CopyUserSettings when the types are different and just using the MIME info we got from prefs), and CopyUserSettings should probably assert equality (case-insensitive, of course) of the types. > Yeah, the <?xml probably could use some explaining. But I don't know the > reasoning behing it :) Why don't we just use text/xml for it? Because .xul files don't work as text/xml and .xhtml files get the wrong DOM (not HTMLDocument) as text/xml. Both arguably bugs in other parts of Mozilla, but.... I'll check in comments to this effect one the tree reopens. > Yeah... that is true... but it is a pretty short paragraph. Does it > really deserve an own document? Good question. I'd say no, but maybe we want a document on "what happens when Mozilla is asked to load content of a type it can't handle"? Boris -- Once at a social gathering, Gladstone said to Disraeli, "I predict, Sir, that you will die either by hanging or of some vile disease". Disraeli replied, "That all depends upon whether I embrace your principles or your mistress".
