- From: Lachlan Hunt via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 05 Mar 2009 17:05:38 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-author In directory hutz:/tmp/cvs-serv20712 Modified Files: Overview.html Overview.src.html Log Message: Updated DOCTYPE syntax description for XHTML Index: Overview.html =================================================================== RCS file: /sources/public/html5/html-author/Overview.html,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- Overview.html 5 Mar 2009 16:58:50 -0000 1.41 +++ Overview.html 5 Mar 2009 17:05:36 -0000 1.42 @@ -593,22 +593,26 @@ <!Doctype HTML System "about:legacy-compat"></code></pre> </div> - <p>In XHTML, however, the DOCTYPE is case sensitive, and only the canonical - versions of the <code>DOCTYPE</code>s given above may be used.</p> + <p>For XHTML, it is recommended that the <code>DOCTYPE</code> be + omitted because it is unnecessary. However, should you wish to + use a <code>DOCTYPE</code>, note that the <code>DOCTYPE</code> + is case sensitive, and only the canonical versions of the + <code>DOCTYPE</code>s given above may be used.</p> <div class="xhtml example"> <p>XHTML Example:</p> <pre><code><!DOCTYPE html> -<!DOCTYPE html SYSTEM "about:legacy-compat"></code></pre> +<!DOCTYPE html SYSTEM "about:legacy-compat"> + +<!DOCTYPE html SYSTEM 'about:legacy-compat'></code></pre> </div> <p>However, there are no restrictions placed on the use of alternative - DOCTYPEs in XHTML. You may, if you wish, use a custom <code>DOCTYPE</code> - referring to a custom DTD, typically for validation purposes. - Although, be advised that DTDs have a number of limitations compared - with other alternative schema languages.</p> - + <code>DOCTYPE</code>s in XHTML. You may, if you wish, use a custom + <code>DOCTYPE</code> referring to a custom DTD, typically for + validation purposes. Although, be advised that DTDs have a number + of limitations compared with other alternative schema languages.</p> </section> <section> Index: Overview.src.html =================================================================== RCS file: /sources/public/html5/html-author/Overview.src.html,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- Overview.src.html 5 Mar 2009 16:58:50 -0000 1.42 +++ Overview.src.html 5 Mar 2009 17:05:36 -0000 1.43 @@ -439,22 +439,26 @@ <!Doctype HTML System "about:legacy-compat"></code></pre> </div> - <p>In XHTML, however, the DOCTYPE is case sensitive, and only the canonical - versions of the <code>DOCTYPE</code>s given above may be used.</p> + <p>For XHTML, it is recommended that the <code>DOCTYPE</code> be + omitted because it is unnecessary. However, should you wish to + use a <code>DOCTYPE</code>, note that the <code>DOCTYPE</code> + is case sensitive, and only the canonical versions of the + <code>DOCTYPE</code>s given above may be used.</p> <div class="xhtml example"> <p>XHTML Example:</p> <pre><code><!DOCTYPE html> -<!DOCTYPE html SYSTEM "about:legacy-compat"></code></pre> +<!DOCTYPE html SYSTEM "about:legacy-compat"> + +<!DOCTYPE html SYSTEM 'about:legacy-compat'></code></pre> </div> <p>However, there are no restrictions placed on the use of alternative - DOCTYPEs in XHTML. You may, if you wish, use a custom <code>DOCTYPE</code> - referring to a custom DTD, typically for validation purposes. - Although, be advised that DTDs have a number of limitations compared - with other alternative schema languages.</p> - + <code>DOCTYPE</code>s in XHTML. You may, if you wish, use a custom + <code>DOCTYPE</code> referring to a custom DTD, typically for + validation purposes. Although, be advised that DTDs have a number + of limitations compared with other alternative schema languages.</p> </section> <section>
Received on Thursday, 5 March 2009 17:05:48 UTC