Miscellaneous > Programming & Networking

I am dumb, I need help

<< < (7/9) > >>

piratePenguin:

--- Quote from: xylon ---Why does it matter? Not all browsers support the proper mime type to serve an XHTML1.1 Strict page anyways.
--- End quote ---
Well, if we're talking about XHTML 1.0... it became a W3C recommendation almost exactly 6 and a half years ago. Firefox and every other half-modern gecko-based browser, Opera, Konqueror and Safari all support the XHTML MIME type, and for quite a while too. Hell, even links does! Microsoft Internet Explorer however, does not. Not even IE 7.

I would never send an XHTML document as text/html. It's just extra work and it's just wrong if you ask me (if it's an XHTML document it's not a HTML document so text/html is a wrong way to identify it). And what for, for an X? HTML 4.01 does the job just fine.

You don't get any of the cool XHTML things (or at least none of the ones I know about) anyhow when you send as text/html.

But if you follow the HTML compatibility guidelines, then XHTML as text/html isn't so bad. But that's extra guidelines to follow, and for what benefit? :/

http://hixie.ch/advocacy/xhtml
http://www.w3.org/TR/xhtml-media-types/#text-html

xyle_one:
What benefits?

I see nothing wrong with serving an xhtml doc as text/html. Everyone does it, no one complains. And until IE supports it, it is not exactly in my best interests to do it. Why would I cripple my site for over 70% of my viewers?

H_TeXMeX_H:
I don't care about my viewers that run IE, in fact I should probably make them pass the test first before coming to my site :D (Technically this has been fixed if IE has been fully patched up, but I dunno, I'd have to test it on a Window$ machine ... maybe I will tomorrow)

xyle_one:
I do not have the luxury of denying a thousand people access to my site. Nor would my clients be very happy if their site didn't work in IE. Most of the projects I do for them are extensions of their business that their clients rely on. Most people use IE. It would be very dumb to exclude them from viewing my site. Besides, this isn't 1997 anymore. If you aren't a complete hack you can make your site work in all modern browsers, and degrade for the crappy browsers, while still be accessible.

Worker201 if you have any questions go to the other forum, I will answer them there.

piratePenguin:

--- Quote from: xylon ---What benefits?

I see nothing wrong with serving an xhtml doc as text/html. Everyone does it, no one complains.
--- End quote ---
text/html identifies a HTML document. For XHTML application/xhtml+xml is the "proper" MIME type. Although text/html works too, even browsers that support XHTML won't treat the document as XHTML - so the benefit of using XHTML of HTML is what I'd love to know.
[qupte]And until IE supports it, it is not exactly in my best interests to do it.[/quote]...typo somewhere?

--- Quote ---Why would I cripple my site for over 70% of my viewers?
--- End quote ---
If you care about the IE users then definitely don't write an XHTML document and send it as application/xhtml+xml. I would and do use HTML 4.01 (for a FEW pages, XHTML (sent as application/xhtml+xml) for almost everything since most of the interesting content on my site is useless to IE users anyhow).

XHTML sent as text/html is another option (when IE users must see the page) but like I said, that's extra work.







Extra work for a fooking X.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version