|
Posted by Eric Lindsay on November 24, 2008, 3:51 pm
Please log in for more thread options
How much trouble do you really encounter when you serve web pages as
application/xhtml+xml?
I have some very simple test pages up at
http://carlylegardensgnome.com/
The changes I made were very limited. I added what seemed an appropriate
line (AddType application/xhtml+xml html) to a new .htaccess file.
Changed my original Doctype from html strict to xhtml strict. Checked I
show/hide quoted text
didn't have any open tags. Self closed all the metas with /> Self
closed any img. Checked I was using lower case in my xhtml. Quoted any
attribute values. In the css I added html to the styling of the body
tag, since the body seemed limited in the area it covered. That was
about the extent of the changes.
I added a page with a deliberate error, so I could easily check whether
the browsers were really treating the pages as xml (they did).
http://carlylegardensgnome.com/error.html
That all seemed to work on Firefox, Opera and Safari, all on a
Macintosh. Also on Safari on an iPhone. There are minor variations in
the appearance, mostly relating to unsupported css.
I assume that no version of Internet Explorer (including 8) will show
the pages.
However I feel certain that conversion can't be that easy. For example,
I have not specified UTF-8. Perhaps I should not be using img, but
instead using object?
--
http://www.ericlindsay.com
|
|
Posted by Jonathan N. Little on November 24, 2008, 6:28 pm
Please log in for more thread options
Eric Lindsay wrote:
show/hide quoted text
> How much trouble do you really encounter when you serve web pages as
> application/xhtml+xml?
>
> I have some very simple test pages up at
> http://carlylegardensgnome.com/
Nice in theory, but fly in the ointment is Microsoft.
Since your on a Mac you may be ignorant of the problem, find a Winbox
and fire up *any* version of IE and visit your page and be WOW'ed by the
prompt to download the unknown file type.
The lesson here? Unless you have some absolute need of features *only
*XHTML can provide, all web pages for public access should be HTML!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
|
|
Posted by Eric Lindsay on November 24, 2008, 7:22 pm
Please log in for more thread options
show/hide quoted text
> Eric Lindsay wrote:
> > How much trouble do you really encounter when you serve web pages as
> > application/xhtml+xml?
> >
> > I have some very simple test pages up at
> > http://carlylegardensgnome.com/
>
> Nice in theory, but fly in the ointment is Microsoft.
>
> Since your on a Mac you may be ignorant of the problem, find a Winbox
> and fire up *any* version of IE and visit your page and be WOW'ed by the
> prompt to download the unknown file type.
In my original post I said "I assume that no version of Internet
Explorer (including 8) will show the pages." Since I don't have any
computer running Windows, I haven't personally checked it out.
However I am interested in whether IE shows a blank page, or whether it
really does prompt you to download? Maybe that depends upon which
version of IE you use?
show/hide quoted text
> The lesson here? Unless you have some absolute need of features *only
> *XHTML can provide, all web pages for public access should be HTML!
Isn't XHTML 1.0 basically HTML 4.01, with minor changes? I don't know
whether XHTML 1.1 or later changes that. I would be interested in
hearing of any outstanding feature only some version of XHTML can
provide.
So far I have not used any web page program that actually produces
clean, valid, reasonably semantic html. iWeb comes closest to valid*,
but is in most other respects unsatisfactory to me. *According to
recent Opera MAMA survey of web sites.
http://dev.opera.com/articles/view/mama-key-findings/ http://dev.opera.com/articles/view/mama-markup-validation-report/ Apple
iWeb sites were valid over 80% of the time, closest competitor
Dreamweaver was under 4%.
My existing cycle of write simple web page by hand, validate, fix errors
(mostly typos these days), upload and so on is getting real old. However
maybe XML tools are a better choice, if I can really use XHTML on the
web.
I am also getting real tired of IE having problems with my existing
valid pages. So I am getting very tempted to just stop writing to suit
IE. Especially on pages like those I used in this test, where I am not
expecting any large general audience. Under those circumstances, a page
that doesn't load at all is in many respects better for me than a page
that looks broken.
--
http://www.ericlindsay.com
|
|
Posted by dorayme on November 24, 2008, 8:30 pm
Please log in for more thread options
show/hide quoted text
>
> > Isn't XHTML 1.0 basically HTML 4.01, with minor changes?
>
> More like trivial changes. That being the case, and given the known
> problems that IE has with it, there's no point in using it.
That is so. Perhaps there is some argument based on validation or
construction tools that Eric is wishing to use?
--
dorayme
|
|
Posted by Beauregard T. Shagnasty on November 24, 2008, 10:20 pm
Please log in for more thread options Eric Lindsay wrote:
show/hide quoted text
> Now, are there any other problems with using XHTML?
You won't sell very many of your widgets.
--
-bts
-Friends don't let friends drive Windows
|
| 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 |
|