re:
!> That's an informative appendix - conformance isn't necessary to be compliant with the standard
It looks to me like its a W3C *recommendation*.
http://www.w3.org/TR/2002/REC-xhtml1-20020801/
"This specification defines the Second Edition of XHTML 1.0..."
The part quoted is paragraph C2, which is part of appendix C, which
starts:
C. HTML Compatibility Guidelines
This appendix is informative.
re:
!> conformance isn't necessary to be compliant with the standard
Isn't conformance obligatory with XHTML but not with HTML ?
HTML has to conform,. but only to HTML standards. XHTML has to conform
to XHTML standards.
i.e., in HTML you can get away with the <br> tag having no end tag,
but in XHTML the <br> tag must be properly closed ( <br /> ).
The question is whether the space before the "/" is needed for XHTML
conformance. So far as I can see it is not (it certainly doesn't
appear to be required by the DTD used by the W3C validator, and the
standards document quoted mentions using the space only as a measure
to assist existing HTML user agents in rendering the XHTML.
Which actual problems the space is supposed to help with I'm not sure.
A little googling suggests that some user agents might have trouble
identifying the end of an attribute value without the space (e.g. <br
id=alinebreak/>) but if the XHTML is conforming then the attribute
value would be quoted, so I'm not sure if that would be an issue.
Still, the people who write these documents are generally pretty
bright chaps, and so it's probably a good idea to follow their advice,
even when they aren't describing what is required for compliance with
the standard.
GEJ