> Also, if I understand correctly, this will break in IE?

Actually the original question was whether the <input> element (which is
defined as EMPTY in the DTD) requires a closing </input> tag. It was not
whether an empty element like a <div> with no content could be written as a
simple tag. According to the XML spec. it is valid XML to do so, however it
recommends that only EMPTY elements be written using the simple tag syntax:

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

"For interoperability, the empty-element tag SHOULD be used, and SHOULD only
be used, for elements which are declared EMPTY"

Using the start tag/end tag combination for tags defined as EMPTY works fine
in most recent browsers:

http://www.neighborwebmaster.com/tests/input.php

Regards,
Kepler



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to