W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2005

Dear Editor,

From: Jeff Spencer <JeSpence@tceq.state.tx.us>
Date: Thu, 05 May 2005 11:55:39 -0500
Message-Id: <s27a09c9.008@smtpgate.tceq.state.tx.us>
To: <www-html-editor@w3.org>
Dear Editor,
 
We encountered a question regarding the documentation covering XHTML closing tag requirements.  While not necessarily incorrect technically, the information may lead to a nonstandard style and result in pages rendered incorrectly by older browsers as the example is not HTML 4 compatible.
 
The illustration sample found at http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.6 does not include a space before the closing tag.  The referened HTML Compatibility Guideline, however, states that a space is required.
 
Could the sample shown be changed include the space prior to the closing tag, as the compatibility guideline states?    Please let me know if I'm bing too nit picky, but I've found that examples and dictum need to align, else one may follow displayed examples as a shortcut. 
 
See links below for comparison.
 
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.6  
"Empty elements must either have an end tag or the start tag must end with />. For instance, <br/> or <hr></hr>. See HTML Compatibility Guidelines for information on ways to ensure this is backward compatible with HTML 4 user agents."
 
http://www.w3.org/TR/xhtml1/#guidelines 
"Include a space before the trailing / and > of empty elements, e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />. Also, use the minimized tag syntax for empty elements, e.g. <br />, as the alternative syntax <br></br> allowed by XML gives uncertain results in many existing user agents."
 
 
Thanks!
 
* Jeff
 
 
 
Received on Friday, 6 May 2005 01:15:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:54 GMT