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

Re: Dear Editor,

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Fri, 06 May 2005 14:42:37 +0900 (JST)
Message-Id: <20050506.144237.74750344.mimasa@w3.org>
To: JeSpence@tceq.state.tx.us
Cc: www-html-editor@w3.org


"Jeff Spencer" <JeSpence@tceq.state.tx.us> wrote:

> 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.

Section 4 describes differences with HTML 4, so it's not surprising
that examples there may not be compatible with HTML 4.

> 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.

That's on purpose.  There's no requirement in XML to include a space
before /> in an empty element.  It's perfectly legal to not include
a space or use the syntax like <hr></hr> when you serve your XHTML
document as 'application/xhtml+xml', 'application/xml' or 'text/xml'.

> The referened HTML Compatibility Guideline, however, states that a space is required.

That's only relevant when you want to serve your XHTML 1.0 document
as 'text/html'.

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Friday, 6 May 2005 05:42:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:53 UTC