Boris Zbarsky wrote:
(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.

OK - I changed the entire document to use MIME type.


Fair enough.  I'd probably put this under web developer docs somewhere, but
link it from various places, including the necko doc pages.

OK, how about I put this document at: http://www.mozilla.org/docs/web-developer/mimetypes.html


And link to it from
http://www.mozilla.org/docs/web-developer/ (in the Writing for Mozilla section)
and
http://www.mozilla.org/projects/netlib/ (the "core documentation" section)
and maybe
http://www.mozilla.org/catalog/libraries/network/


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."

Thanks, changed.


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

Bug 217893 has been added to the database


(possibly by not using CopyUserSettings
when the types are different and just using the MIME info we got from prefs),

Hmm...


That reminds me, I should check how http://bugzilla.mozilla.org/show_bug.cgi?id=78919 part 2 handles this; it might fix this.

and CopyUserSettings should probably assert equality (case-insensitive, of
course) of the types.

In fact, I'm getting rid of it... see the patch in your review queue ;)


Because .xul files don't work as text/xml and .xhtml files get the wrong DOM
(not HTMLDocument) as text/xml.

OK, added it to the doc.


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"?

Hmm, I guess I'll leave it in this document for now, and move it out once and if I write such a document. Or you could write such a document and move it out :)





Reply via email to