Posted by David Dorward on 05/04/06 09:48
ironcorona wrote:
> Spartanicus wrote:
>> Mark Parnell <webmaster@clarkecomputers.com.au> wrote:
>>
>>>> Really? But they're empty!
>>> Not in XHTML. XML has no concept of empty elements.
>>
>> XHTML is merely a reformulation of HTML in XML, what is defined as an
>> empty element in HTML remains an empty element in XHTML.
>
> But if XML doesn't have empty tags
It does:
<!ELEMENT img EMPTY>
-- http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_img
> Of course the fact is that there *are* empty tags in XHTML but how are
> these defined?
Pretty much the same way as HTML - but without the "Start tag required, End
tag forbidden" code:
<!ELEMENT IMG - O EMPTY -- Embedded image -->
-- http://www.w3.org/TR/html4/sgml/dtd.html#Pixels
> http://www.w3.org/TR/xhtml1/#h-4.6
> says there it's fine.
> But as I said the compatibility guidelines say that you really shouldn't
> be using it.
IF you are serving the document as text/html.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|