On 22 Feb 2006, at 10:00 AM, Patrick H. Lauke wrote:
Nick Gleitzman wrote:
Easy. In both cases, 'self-closing' elements is incorrect. Both
<script> and <div> need full closing: </script> and </div>, whether
they're empty or not.
To expand on that answer: unless you're sending XHTML with an XML or
XHTML+XML MIME type, you must follow the compatibility guidelines
under Appendix C of the XHTML 1.0 spec. This particular case is
covered under C.3...
"C.3 Element Minimization and Empty Element Content
Given an empty instance of an element whose content model is not EMPTY
(for example, an empty title or paragraph) do not use the minimized
form (e.g. use <p> </p> and not <p />)."
http://www.w3.org/TR/xhtml1/#C_3
P
Thanks, Patrick and Lachlan, for that clarification. I was so
distracted by trying to make out Paul's miniscule font size that I
didn't read his first line properly...
N
___________________________
Omnivision. Websight.
http://www.omnivision.com.au/
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************