Message

type foo/bar used for a document fragment

Explanation

The Mime type specified is meant to describe a complete document, (i.e., including a beginning <html> tag).

Solution

Change the type to html or xhtml as appropriate. These types are meant to indicate that the content is a document fragment, more specifically, content that one could validly appear directly inside an html div element.

Not clear? Disagree?

You might be able to find help in one of these fine resources.