|
Posted by Eric Lindsay on November 24, 2008, 11:55 pm
Please log in for more thread options
show/hide quoted text
> Eric Lindsay wrote:
>
> > Despite your excellent point (80% of potential viewers can't view
> > correctly served XHTML), I can make the counter point that this is
> > Microsoft's problem, not mine. My sample pages are served correctly,
> > are valid and conform to W3C, and Microsoft were one of the earliest
> > members and supporters. The viewing bug is in IE, not in my pages.
> >
>
> Technically you are correct, but if your main objective to to "publish"
> your web pages to the public and a significant portion of that public
> uses IE then XHTML is not an option. If you want to use proper *valid*
> markup that can be viewed by the public, then HTML is the way.
Viewing correctly served XHTML with Internet Explorer seems even more
peculiar than I expected. What I have been told is that Internet
Explorer will not show correctly served XHTML.
It is true with a URL like http://carlylegardensgnome.com/ that IE will
not display it, and offer to download. However in my tests with IE6 and
IE7, it appears each of these will display the page if the URL is in the
form http://carlylegardensgnome.com/index.html
IE also showed any pages linked from my Index page, since these also had
a complete URL. I think I have eliminated cached copies as as a cause.
However if someone could try one of the pages with a complete URL, such
as http://carlylegardensgnome.com/error.html it would be very nice to
get independent confirmation that IE actually does work with (some)
XHTML pages.
--
http://www.ericlindsay.com
|
|
Posted by Jonathan N. Little on November 25, 2008, 12:16 am
Please log in for more thread options
Eric Lindsay wrote:
show/hide quoted text
> It is true with a URL like http://carlylegardensgnome.com/ that IE will
> not display it, and offer to download. However in my tests with IE6 and
> IE7, it appears each of these will display the page if the URL is in the
> form http://carlylegardensgnome.com/index.html
>
You are just witnessing how IE incorrectly uses file extension rather
than content type to identify content. It won't if your page include
XHTML features. Insert a SVG or some MathXML and see what happens. Just
don't go beyond the HTML subset...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
|
|
Posted by Ben Bacarisse on November 25, 2008, 7:00 am
Please log in for more thread options
show/hide quoted text
>> Eric Lindsay wrote:
>>
>> > It is true with a URL like http://carlylegardensgnome.com/ that IE will
>> > not display it, and offer to download. However in my tests with IE6 and
>> > IE7, it appears each of these will display the page if the URL is in the
>> > form http://carlylegardensgnome.com/index.html
>> >
>>
>> You are just witnessing how IE incorrectly uses file extension rather
>> than content type to identify content. It won't if your page include
>> XHTML features. Insert a SVG or some MathXML and see what happens. Just
>> don't go beyond the HTML subset...
> That sure sounds like an interesting variation. So the bug of
> incorrectly using file extensions partly compensates for the bug of not
> working with XHTML. Thanks for explaining what was happening.
Just a data point, but I don't see this behaviour. In IE6 I get an
offer to download even when the URL ends with .html. Now, I an using
an emulated windows environment, so there may be some differences but
this one would surprise me if it were cause by the emulation.
Of course, changing the file extension can cause the server to send a
different content type, but I assume that you've checked that.
--
Ben.
|
|
Posted by Andreas Prilop on November 25, 2008, 10:38 am
Please log in for more thread options On Tue, 25 Nov 2008, Ben Bacarisse wrote:
show/hide quoted text
> Just a data point, but I don't see this behaviour. In IE6 I get an
> offer to download even when the URL ends with .html. Now, I an using
> an emulated windows environment, so there may be some differences but
> this one would surprise me if it were cause by the emulation.
Internet Explorer 6 on Windows XP/2003 and above ignores the
content-type as long as the "extension" is .html.
Internet Explorer 6 on Windows 2000 asks to download whenever
the content-type is application/xhtml+xml.
Your emulation is probably Windows-2000-like.
|
|
Posted by Eric Lindsay on November 25, 2008, 8:23 pm
Please log in for more thread options In article
show/hide quoted text
> On Tue, 25 Nov 2008, Ben Bacarisse wrote:
>
> > Just a data point, but I don't see this behaviour. In IE6 I get an
> > offer to download even when the URL ends with .html. Now, I an using
> > an emulated windows environment, so there may be some differences but
> > this one would surprise me if it were cause by the emulation.
>
> Internet Explorer 6 on Windows XP/2003 and above ignores the
> content-type as long as the "extension" is .html.
>
> Internet Explorer 6 on Windows 2000 asks to download whenever
> the content-type is application/xhtml+xml.
>
> Your emulation is probably Windows-2000-like.
Thanks for this comment. The only Windows computers I could test on both
use Windows XP, and both ignored content-type. Seems to explain why
others in this thread get the download behaviour.
--
http://www.ericlindsay.com
|
| Similar Threads | Posted | | XHTML served as text/html considered harmless? | July 6, 2005, 3:04 pm |
| Web-page that *BOTH* changes current page + displays a Pop-up page from JavaScript | May 15, 2009, 1:53 pm |
| Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content | February 7, 2007, 5:40 pm |
| Activating parent page link from 'child page' - revised | June 3, 2005, 11:30 am |
| referencing the index.html page from another page in the same directory | July 26, 2004, 12:48 am |
| extract page structure from page source? | September 19, 2006, 1:46 pm |
| how to make a link to an old page go to a new page without displaying anything | August 20, 2007, 3:08 am |
| Update a web page with contents from another web page. | January 8, 2005, 1:59 pm |
| I would like to sell my web page - You can run your own business with this web page! | June 6, 2007, 4:24 pm |
| I would like to sell my web page - You can run your own business with this web page! | June 8, 2007, 5:22 am |
|
>
> > Despite your excellent point (80% of potential viewers can't view
> > correctly served XHTML), I can make the counter point that this is
> > Microsoft's problem, not mine. My sample pages are served correctly,
> > are valid and conform to W3C, and Microsoft were one of the earliest
> > members and supporters. The viewing bug is in IE, not in my pages.
> >
>
> Technically you are correct, but if your main objective to to "publish"
> your web pages to the public and a significant portion of that public
> uses IE then XHTML is not an option. If you want to use proper *valid*
> markup that can be viewed by the public, then HTML is the way.