Mozilla Accepts…

I got an email today about the javascript FAQ, they were requesting I change the link to the DOM FAQ because when accessed with Mozilla it returns an XSL stylesheet due to content-negotiation. This demonstrates 2 problems, firstly that the W3 DOM are pretty silly serving up an XSL file as a representation of the FAQ.

More importantly though it shows up a serious bug in Mozilla in prefering random XML representation over a text/html one. Mozilla appears to send headers which include “text/xml,application/xml,application/xhtml+xml,text/html;q=0.9″, this says give me xml over text/html (the text/html has a lower q value.). The problem here is that most content served with an XML content type is not readable by humans so Mozilla having a preference for XML does nothing to help its users. The Mozilla bug about www-DOM FAQ page, has this as a Tech-Evangelism bug, rather than a browser one.