Killersites.com Homepage


Print at Mar 19, 2010 2:50:48 PM

Posted by LSW at Feb 16, 2008 1:02:57 PM
Re: XHTML and firefox and framespacing
The thing is you are writing XHTML... but you are not serving XHTML, you are serving HTML. XHTML Must be served as XML as that is what it is, an XML language. HTML is a SGML language.

You May serve XHTML 1.0 as "Tag Soup" HTML if it meets with Appendix C Requirements. But Only XHTML 1.0 XHTML 1.1 an only be served as XML.

If you serve XHTML as XML, IE will puke, it cannot handle it. So you have to use another language like PHP to negotiate the MIME Type, serving HTML to IE and XHTML to all other browsers.

Those browsers will stop loading the page at the first mistake leaving your user with a beg red XML error and no where to go. That is the real weakness of XHTML.

There are also JS elements that will not work in XHTML, you have to use CDATA to comment out text, anything using <!-- --> will show in XHTML.

If you do not see any of this, it is because you are serving HTML. If you are going to serve HTML, then you might as well use HTML, because otherwise you are serving poorly written HTML when you write XHTML.

HTML is not dead, nor been replaced. HTML 4.05 and XHTML 1.0 were released as standards within moths of each other. Both are current standards. The idea that XHTML was replaceing HTML is just a falacy still quoted today, like the people who think XHTML is another version of HTML.

No, XHTML is a XML language created for the sole purpose of allowing easier use of XML based languages like SVG and MathML. However XML has not been a big hit as expected and The poor support from IE that is not meant to change any time soon & the strictness and error handling of real XHTML make is all but useless in most web sites. No company can afford to have their web site not load at all.

HTML is not dead and those in the industry realize that it will not due to the weakness of XHTML. HTML 5 development is proof of that. XHTML2 has some nice things in it, but it would meant the site is not backwards compatible which makes XHTML 2 somewhat questionable. But that is open at this point still and who knows maybe both will be accepted as standards.
----------------------------------------
Gu.aal kwsh� yak'�i it�akw ijeet wugood�k

LSW-WebDesign.com