You are here: Re: Migrating to XHTML: empty elements « HTML « IT news, forums, messages
Re: Migrating to XHTML: empty elements

Posted by Mark on 07/09/05 10:45

Sorry Spartanicus. I didn't realise there were people left who were
trying to hold the web back.

>>Migrating to XHTML
> Why?

Why not? XHTML has a number of benefits both now and in the future which
I would like to exploit, and HTML 4 no longer suits my needs.

>>XHTML has been emabled in virtually all modern browsers.
> IE (all versions) and (afaik) KHTML browsers (Safari, Konquerer) don't
> support XHTML. But perhaps you are referring to the hack whereby XHTML
> code is incorrectly served as text/html thereby causing it to be treated
> as tag soup by browsers?

Sorry, tag soup is not a term I use a lot, so I'm not sure how to
interpret this comment.

I agree that the way pages are served as text/html rather
application/xhtml+xml is an issue non-Mozilla browsers. However, this
does stop you from attaching appropriate DOCTYPEs, and validating it as
such. It also doesn't stop them from interpreting XHTML tag formats,
which as I recall was the original question.

> Check out the common myths that surround XHTML and the problems that
> arise from using it: http://www.spartanicus.utvinternet.ie/no-xhtml.htm

I have. Than you. I see a few problems with the artical, though:

XHTML is stricter than HTML, especially if you have to resort to custom
DTDs to achieve the same. Certainly it less forgiving from an XML point
of view.

W3C, from my reading, regards XHTML as the next version from HTML 4, and
has based the development of future technologies on the XML base on
which XHTML rests. This includes MathML, SVG, and XForms, which, though
not currently widely supported, will certaily offer benefits to the Web.
I don't see how steering people away from XHTML is in any way going to
help in this regard.

Actually, I don't know how easy it is to generat HTML from XML. I use
XSLT, which balks on unclosed empty elements, but mayby you've found
something easier ...

You refer to lemmings jumping off a cliff. For your information,
lemmings don't jump of cliffs unless they are pushed by a Disney film
crew desperate for something to report on. So much for myth busting.

Look, all I wanted to know is whether sufficient modern browsers accept
XHTML compliant empty tags without a space before the closing slash.

But thanks for replying.

Mark

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация