- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 10 Jul 2009 02:29:20 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup
In directory hutz:/tmp/cvs-serv22568
Modified Files:
spec.html syntax.html
Log Message:
support treatment of XHTML 1.0 and HTML 4.01, etc., DOCTYPES as things to warn about (instead of as errors)
Index: syntax.html
===================================================================
RCS file: /sources/public/html5/markup/syntax.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- syntax.html 9 Jul 2009 20:31:08 -0000 1.12
+++ syntax.html 10 Jul 2009 02:29:18 -0000 1.13
@@ -48,7 +48,12 @@
<a href="syntax.html#doctype.pattern">doctype</a>
or
<a href="syntax.html#doctype.legacy">doctype.legacy</a>
- patterns defined this specification.</p>
+ patterns defined this specification, or must match the
+ definition of a
+ <code class="defined-elsewhere">doctypedecl</code>
+ (<b class="defined-elsewhere">document type declaration</b>)
+ given in the XML specification
+ <a href="references.html#refsXML">[XML]</a>.</p>
<p>The <code>doctype</code> pattern is defined as follows:</p>
<dl class="pattern-def">
<dt><a id="doctype.pattern" href="syntax.html#doctype.pattern">doctype</a> =</dt>
@@ -61,7 +66,7 @@
</dl>
<div class="example">
<p>The following are examples of some DOCTYPEs that match the
- above pattern.</p>
+ <a href="syntax.html#doctype">doctype</a> pattern.</p>
<pre><!doctype html></pre>
<pre><!DOCTYPE HTML></pre>
</div>
@@ -79,10 +84,22 @@
</dl>
<div class="example">
<p>The following are examples of some DOCTYPEs that match the
- above pattern.</p>
+ <a href=".html#doctype,legacy">doctype.legacy</a> pattern.</p>
<pre><!doctype html system 'about:legacy-compat'></pre>
<pre><!DOCTYPE HTML system "about:legacy-compat"></pre>
</div>
+ <p>The following are examples of some DOCTYPEs that match the
+ definition of a
+ <code class="defined-elsewhere">doctypedecl</code>
+ (<b class="defined-elsewhere">document type declaration</b>)
+ given in the XML specification
+ <a href="references.html#refsXML">[XML]</a>.</p>
+ <div class="example">
+ <pre><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></pre>
+ <pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd"></pre>
+ </div>
</div>
<div id="character-encoding" class="section">
<h2>6.2. Character encoding declaration <a class="hash" href="#character-encoding">#</a> <a class="toc-bak" href="Overview.html#character-encoding-toc">T</a></h2>
@@ -194,9 +211,12 @@
</dd>
</dl>
<p id="elements-html-syntax">The following list describes syntax
- rules for the <a href="html-and-xhtml.html#html-syntax">the HTML syntax</a>.
- Rules for the <a href="html-and-xhtml.html#xml-syntax">the XML syntax</a> are defined in
- the XML specification <a href="references.html#refsXML">[XML]</a>.</p>
+ rules for the
+ <a href="html-and-xhtml.html#html-syntax">the HTML syntax</a>.
+ Rules for the
+ <a href="html-and-xhtml.html#xml-syntax">the XML syntax</a>
+ are defined in the XML specification
+ <a href="references.html#refsXML">[XML]</a>.</p>
<ul>
<li><dfn id="tags" title="syntax-tags">Tags</dfn> are used to
delimit the start and end of elements in the markup. Elements
Index: spec.html
===================================================================
RCS file: /sources/public/html5/markup/spec.html,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- spec.html 9 Jul 2009 20:31:07 -0000 1.46
+++ spec.html 10 Jul 2009 02:29:18 -0000 1.47
@@ -962,7 +962,12 @@
<a href="#doctype.pattern">doctype</a>
or
<a href="#doctype.legacy">doctype.legacy</a>
- patterns defined this specification.</p>
+ patterns defined this specification, or must match the
+ definition of a
+ <code class="defined-elsewhere">doctypedecl</code>
+ (<b class="defined-elsewhere">document type declaration</b>)
+ given in the XML specification
+ <a href="#refsXML">[XML]</a>.</p>
<p>The <code>doctype</code> pattern is defined as follows:</p>
<dl class="pattern-def">
<dt>
@@ -976,7 +981,7 @@
</dl>
<div class="example">
<p>The following are examples of some DOCTYPEs that match the
- above pattern.</p>
+ <a href="#doctype">doctype</a> pattern.</p>
<pre><!doctype html></pre>
<pre><!DOCTYPE HTML></pre>
</div>
@@ -995,10 +1000,22 @@
</dl>
<div class="example">
<p>The following are examples of some DOCTYPEs that match the
- above pattern.</p>
+ <a href="#doctype,legacy">doctype.legacy</a> pattern.</p>
<pre><!doctype html system 'about:legacy-compat'></pre>
<pre><!DOCTYPE HTML system "about:legacy-compat"></pre>
</div>
+ <p>The following are examples of some DOCTYPEs that match the
+ definition of a
+ <code class="defined-elsewhere">doctypedecl</code>
+ (<b class="defined-elsewhere">document type declaration</b>)
+ given in the XML specification
+ <a href="#refsXML">[XML]</a>.</p>
+ <div class="example">
+ <pre><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></pre>
+ <pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd"></pre>
+ </div>
</div>
<div id="character-encoding" class="section">
<h2>6.2. Character encoding declaration <a class="hash" href="#character-encoding">#</a> <a class="toc-bak" href="#character-encoding-toc">T</a>
@@ -1113,9 +1130,12 @@
</dd>
</dl>
<p id="elements-html-syntax">The following list describes syntax
- rules for the <a href="#html-syntax">the HTML syntax</a>.
- Rules for the <a href="#xml-syntax">the XML syntax</a> are defined in
- the XML specification <a href="#refsXML">[XML]</a>.</p>
+ rules for the
+ <a href="#html-syntax">the HTML syntax</a>.
+ Rules for the
+ <a href="#xml-syntax">the XML syntax</a>
+ are defined in the XML specification
+ <a href="#refsXML">[XML]</a>.</p>
<ul>
<li>
<dfn id="tags" title="syntax-tags">Tags</dfn> are used to
Received on Friday, 10 July 2009 02:29:29 UTC