You are here: Re: W3C complience checker and conformance « HTML « IT news, forums, messages
Re: W3C complience checker and conformance

Posted by David Dorward on 05/04/06 10:32

Mark Parnell wrote:

> Deciding to do something for the good of humanity, Spartanicus
> <invalid@invalid.invalid> declared in alt.html:
>
>> It is valid, but DTD validation has it's limitations, even more so for
>> XHTML, this is one of those limitations.
>
> So would you care to show some sort of reference as to why it is
> "incorrect XHTML" to use a closing tag on an empty element, since the
> part of the specs I quoted says that it *is* correct?

Empty-element tags MAY be used for any element which has no content,
whether or not it is declared using the keyword EMPTY. For
interoperability, the empty-element tag SHOULD be used, and SHOULD only
be used, for elements which are declared EMPTY.

http://www.w3.org/TR/2004/REC-xml-20040204/#IDAJ13S

Which is news to me, and something that a lot of tools seem to get wrong.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

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

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