mime types in Apache and the validator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hendrik Maryns

    mime types in Apache and the validator

    Hi all,

    First of all, this is probably a little OT here, please point me to a
    better place if you deem that appropriate.

    My website (see sig) validates fine, but with one annoying warning:

    The document is being served with the text/html Mime Type which is not a
    registered media type for the XHTML 1.1 Document Type. The recommended
    media type for this document is: application/xhtml+xml

    The index file is called index.shtml since it uses some SSI. To tell
    this to the server, I include a little .htaccess file in the directory
    containing the following line:

    DirectoryIndex index.shtml

    I tried to fix the warning by adding the following:

    # AddType application/xhtml+xml shtml html

    But then the SSI no longer works, and Firefox shows the page with a
    white border around <body>. Same thing happens if I call it index.xhtml.

    Seems like this is a Firefox bug? What is the proper way to handle this?

    Cheers, H.
    --
    Hendrik Maryns

    =============== ===

    Ask smart questions, get good answers:

  • Andreas Prilop

    #2
    Re: mime types in Apache and the validator

    On Fri, 6 Jun 2008, Hendrik Maryns wrote:
    First of all, this is probably a little OT here,
    please point me to a better place if you deem that appropriate.
    <news:comp.info systems.www.ser vers.unix>
    The document is being served with the text/html Mime Type which is not a
    registered media type for the XHTML 1.1 Document Type. The recommended media
    type for this document is: application/xhtml+xml
    Short answer:

    Do not use application/xhtml+xml and XHTML 1.1 on the web if you want
    to be read by everyone. You could do this for some testing etc.

    For publication on the web, use text/html with HTML 4 Strict or
    XHTML 1.0 Strict.

    --
    In memoriam Alan J. Flavell

    Comment

    • Beauregard T. Shagnasty

      #3
      Re: mime types in Apache and the validator

      Hendrik Maryns wrote:
      The document is being served with the text/html Mime Type which is not
      a registered media type for the XHTML 1.1 Document Type.
      See this:

      The recommended media type for this document is: application/xhtml+xml
      ...and Internet Explorer users won't be able to use your page.

      --
      -bts
      -Friends don't let friends drive Windows

      Comment

      • Hendrik Maryns

        #4
        Re: mime types in Apache and the validator

        Beauregard T. Shagnasty schreef:
        Hendrik Maryns wrote:
        >
        >The document is being served with the text/html Mime Type which is not
        >a registered media type for the XHTML 1.1 Document Type.
        >
        See this:

        >
        >The recommended media type for this document is: application/xhtml+xml
        >
        ..and Internet Explorer users won't be able to use your page.
        Thanks both. That’s what I suspected. I’ll live with the warning until
        the world gets better (i.e. Firefox displays it properly and IE displays
        it at all).

        Cheers, H.
        --
        Hendrik Maryns

        =============== ===

        Ask smart questions, get good answers:

        Comment

        Working...