Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8173905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:19:01+00:00 2026-06-06T22:19:01+00:00

I was encountering issues on a page with a XHTML doctype sent with MIME

  • 0

I was encountering issues on a page with a XHTML doctype sent with MIME of application/xml.

Firefox 3.6 was the only browser where the body element background was no longer occupying the full page when in application/xml mode as it should (http://stackoverflow.com/questions/5225237/background-of-body-element).

Is this supposed to happen? Should having an MIME of plain XML with a DOCTYPE of XHTML be treated as an XHTML webpage?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:19:02+00:00Added an answer on June 6, 2026 at 10:19 pm

    Using the same quote in https://stackoverflow.com/a/5225321/271577 , it is dependent on the root element. Although an exception may be made for XHTML, if the content-type is not recognized through detection (whether DOCTYPE sniffing, namespace checking, etc.), then it is likely that the XML is not likely to be rendered as XTHML, but rather as XML.

    XML can be rendered with CSS, even though it does not have default styling assigned to any elements as in XHTML (since it is meant to be a language to define one’s own language). To assign styling, as in XHTML, one must in particular choose whether the element is to use display: block; or display:inline.

    The XML specification does not make mention of DOCTYPE sniffing, and this practice has been discouraged by some for XML: http://hsivonen.iki.fi/doctype/#xml in favor of namespaces and processing instructions.

    But per https://developer.mozilla.org/en/Mozilla%27s_DOCTYPE_sniffing , Firefox before 4.0 “sniffing only occurs for documents sent as text/html” and application/xml should “trigger full standards mode”. However, this is in reference to distinguishing different HTML modes; to identify XHTML out of XML, at https://developer.mozilla.org/en/XML_in_Mozilla , I believe the following may be suggesting that a recognized PUBLIC DOCTYPE was supposedly used to distinguish XHTML from “pure” XML:

    Please note that the XHTML entities, like ä, work only in
    conforming XHTML documents that have a valid XHTML Formal Public
    Identifier (or in other words, a DOCTYPE section with a PUBLIC
    identifier). XHTML entities will not work in arbitrary XML documents,
    not even if the XHTML namespace is used.” which is then followed by a
    list of valid identifiers.

    But if you were using a recognized PUBLIC DOCTYPE and it was still not treated as true XHTML (e.g., with ability to style the body tag alone, without needing to style the html root as well–a practice I seem to recall may have been necessary, at least earlier, for XHTML/HTML polyglot documents), then my guess would also be that it was a bug. I would also think that a namespace should have been sufficient (and without a namespace, it shouldn’t work since XML+Namespaces requires one for application-specific behavior).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am encountering issues in the navigation defined in a master page which are
I am encountering issues while deploying an ASP web application to HostMySite. The application
I'm programming a complex storyboard application and I'm encountering some issues when it comes
I suddenly started encountering this problem out of nowhere. My 'Manage Categories' page is
I want to put an update to my App and I'm encountering heavy issues.
During development of an mvc web application, I'm encourtering issues running the local instance
I'm making an html5 website. the page I'm encountering the issue is http://yamikowebs.com/blog.php right
I have been encountering issues with a custom WCF service deployed to SharePoint 2010.
I am building this app and I am encountering some issues I haven't seen
I've been encountering some issues with a Java program which I've begun developing. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.