Re: DTD in browsers




Michael Winter wrote:
On 05/05/2006 21:02, VK wrote:
Look at you address bar: it is not
<http://www.nskom.com/external/tmp/xhtml/xhtml.html> anymore, [...]

Yes, it is.
For the record, I have IE 6 with Service Pack 2 installed, as well as
all critical updates (and most of the optional ones, too).

Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

OK... as a summary... :-)

I checked the situation on different computers, and IE does *not*
recognize "application/xhtml+xml" (which is not a secret), though with
all updates installed it allows to view pages served with such
Content-Type in a round around way described earlier:- instead of
simply prompt you with Save As.

On your machine(s) you have application/xhtml+xml added as extra
content type for ".html" extension through the Folder Options > File
Types. Either you did it long ago yourselve, or it was added by some
XML/XHTML related software installation. Simply remove this association
temporarily to observe the default behavior.

As "application/xhtml+xml" is not one of MIME's for .html in any of
default Windows/IE installations, you cannot count on it in the WWW. So
application/xhtml+xml Content-Type is not currently usable unless for
an intranet, as it renders your content unvailable for the majority of
visitors.

XML Prolog in XHTML document indeed forces IE to stay in Quirk
(BackCompat) mode. This problem asknowledged by IE team and will be
fixed in IE7, see
<http://blogs.msdn.com/ie/archive/2005/09/15/467901.aspx>
The XHTML document still will be parsed as HTML Transitional tag soup
with extra trash inside tags, but it least it will be possible to trig
W3C Box Model for it.

From the same blog as an epilog:
<q>I've also been reading comments for some time in the IEBlog asking
for support for the "application/xml+xhtml" MIME type in IE. I
should say that IE7 will not add support for this MIME type - we
will, of course, continue to read XHTML when served as "text/html",
presuming it follows the HTML compatibility recommendations.</q>


P.S. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> is the only
doctype where you can match content, DTD and content type together. Use
this - or use XML+XSL

.



Relevant Pages

  • Re: WMM wont save my file...
    ... had before especially when these were the exact same symptoms. ... It seems WMM ... *some* Mpegs can be made compatible with the installation ... Most of us opt to have critical updates automatically, ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: update question
    ... Internet just because SP3 has just been installed from trusted media. ... The lack of post SP3 critical updates means your system is still ... installation of the system being built, then you are enjoying the best ...
    (microsoft.public.windowsxp.security_admin)
  • Problem with a Critical Update Installation
    ... A Friend interrupted the Download/Install of "Critical Updates for Windows ... Looking at his "View Installation ... History" it was noted that KB828026 was listed as "In Progress" and it was ... How can the entry be removed from "Critical Updates and Service Packs"? ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Can not update after XP recovery
    ... Download the stand alone version of SP2 and force an installation. ... including all critical updates since XP's original release. ... Windows help - www.rickrogers.org ...
    (microsoft.public.windowsxp.help_and_support)