#180: Serve pages with correct MIME type to browsers which understand it
-----------------------+----------------------------------------------------
Reporter: vengmark | Owner:
Type: defect | Status: new
Priority: major | Milestone: v1.0
Component: *general* | Version:
Keywords: |
-----------------------+----------------------------------------------------
The markup in Invenio declares pages to be XHTML 1.0 Transitional. The W3C
[http://www.w3.org/TR/xhtml-media-types/#media-types recommends]
If the Accept header explicitly contains application/xhtml+xml (with
either no "q" parameter or a positive "q" value) deliver the document
using that media type.
Sending the correct MIME type would allow us to embed XML dialects like
SVG and MathML for clients that understand these. I'm trying to add some
inline SVG to get nice tag graphs, but that won't work until and unless we
serve the pages with as `application/xhtml+xml`. Example:
* Log in as admin at
https://pcgssi10.cern.ch/youraccount/login?ln=en&referer=http%3A//pcgssi10.cern.ch/yourtags/display%3F
* View source
* Save as display.xhtml
* Open display.xhtml in for example Firefox
--
Ticket URL: <http://invenio-software.org/ticket/180>
Invenio <http://invenio-software.org>