html5/html4-differences TR.html,NONE,1.1 Overview.html,1.190,1.191

Update of /sources/public/html5/html4-differences
In directory hutz:/tmp/cvs-serv17141

Modified Files:
	Overview.html 
Added Files:
	TR.html 
Log Message:
add WD

--- NEW FILE: TR.html ---
<!DOCTYPE html><html lang="en-US"><head>
    <title>HTML5 differences from HTML4</title>
    <style type="text/css">
      .note { margin-left:2em; font-weight:bold; font-style:italic; color:green }
      p.note::before { content:"Note: " }
      dfn { font-style:normal; font-weight:bold }
      code { color:orangered; font-size:14px }
      h3 code { font-size:17px }
      code :link, code :visited { color:inherit }
      pre code { color:inherit }
      pre strong { color:inherit; background:#ffa }
    </style>
    <link href="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet">
  </head>
  <body>
    <!--

     Editor's checklist for stuff to fix for publication:

[...3159 lines suppressed...]

<dt id="refsHTML4">[HTML4]
<dd><cite><a href="http://www.w3.org/TR/html4/">HTML 4.01 Specification</a></cite>, Dave Raggett, Arnaud Le Hors and Ian Jacobs. W3C.

<dt id="refsHTML5">[HTML5]
<dd><cite><a href="http://dev.w3.org/html5/spec/">HTML5</a></cite>, Ian Hickson. W3C.

<dt id="refsPSL">[PSL]
<dd><cite><a href="http://publicsuffix.org/">Public Suffix List</a></cite>. Mozilla Foundation.

<dt id="refsSELECTORS">[SELECTORS]
<dd><cite><a href="http://dev.w3.org/csswg/selectors4/">Selectors Level 4</a></cite>, Elika J. Etemad. W3C.

<dt id="refsXHTML1">[XHTML1]
<dd><cite><a href="http://www.w3.org/TR/xhtml11/">XHTML™ 1.1 - Module-based XHTML - Second Edition</a></cite>, Murray Altheim and Shane McCarron.

<dt id="refsXML">[XML]
<dd><cite><a href="http://www.w3.org/TR/xml/">Extensible Markup Language</a></cite>, Tim Bray, Jean Paoli, C. M. Sperberg-McQueen et al.. W3C.

</dl></div>

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/html4-differences/Overview.html,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -d -r1.190 -r1.191
--- Overview.html	14 Sep 2012 12:53:00 -0000	1.190
+++ Overview.html	14 Sep 2012 14:26:22 -0000	1.191
@@ -267,7 +267,7 @@
     type.</p>
 
     <p>HTML5 also defines detailed parsing rules (including "error
-    handling") for this syntax which are largely compatible with popular
+    handling") for this syntax which are largely compatible with HTML4-era
     implementations. User agents must use these rules for resources that
     have the <code>text/html</code> media type. Here is an example document
     that conforms to the HTML syntax:</p>
@@ -344,6 +344,13 @@
     written using the HTML syntax. Browsers already do this for
     <code>&lt;!DOCTYPE html&gt;</code>.</p>
     
+    <p>To support legacy markup generators that cannot generate the preferred
+    short doctype, the doctype <code>&lt;!DOCTYPE html SYSTEM
+    "about:legacy-compat"&gt;</code> is allowed in the HTML syntax.
+    
+    <p>The strict doctypes for HTML 4.0, HTML 4.01, XHTML 1.0 as well as XHTML
+    1.1 are also allowed (but are discouraged) in the HTML syntax.
+    
     <p>In the XML syntax, any doctype declaration may be used, or it may be
     omitted altogether. Documents with an XML media type are always handled in
     standards mode.
@@ -352,7 +359,19 @@
     <h3 id="mathml-svg"><span class="secno">2.3 </span>MathML and SVG</h3>
 
     <p>The HTML syntax of HTML5 allows for MathML and SVG elements to
-    be used inside a document. For instance, a very simple document using some of the
+    be used inside a document. An <code>math</code> or <code>svg</code> start
+    tag causes the HTML parser to switch to a special insertion mode which puts
+    elements and attributes in the appropriate namespaces, does case fixups for
+    elements and attributes that have mixed case, and supports the empty-element
+    syntax as in XML. The syntax is still case-insensitive and attributes allow
+    the same syntax as for HTML elements. Namespace declarations may be omitted.
+    CDATA sections are supported in this insertion mode.
+    
+    <p>Some MathML and SVG elements cause the parser to switch back to "HTML
+    mode", e.g. <code>mtext</code> and <code>foreignObject</code>, so you can
+    use HTML elements or a new <code>math</code> or <code>svg</code> element.
+    
+    <p>For instance, a very simple document using some of the
     minimal syntax features could look like:</p>
 
     <pre><code>&lt;!doctype html&gt;
@@ -362,19 +381,39 @@
  <strong>&lt;svg&gt; &lt;circle r="50" cx="50" cy="50" fill="green"/&gt; &lt;/svg&gt;</strong>
 &lt;/p&gt;</code></pre>
 
-    <p>More complex combinations are also possible. For instance, with the SVG
-    <code>foreignObject</code> element you could nest MathML, HTML, or both
-    inside an SVG fragment that is itself inside HTML.</p>
-
-
     <h3 id="syntax-misc"><span class="secno">2.4 </span>Miscellaneous</h3>
 
-    <p>There are a few other syntax changes worthy of mentioning:</p>
+    <p>There are a few other changes in the HTML syntax worthy of mentioning:</p>
 
     <ul>
      <li>The <code>&amp;lang;</code> and <code>&amp;rang;</code> named character
      references now expand to U+27E8 and U+27E9 instead of U+2329 and U+232A,
      respectively.
+     
+     <li>Many new named character references have been added, including all from
+     MathML.
+     
+     <li>Void elements (known as "EMPTY" in HTML4) are allowed to have a
+     trailing slash.
+     
+     <li>The ampersand (<code>&amp;</code>) may be left unescaped in some more
+     cases compared to HTML4.
+     
+     <li>Attributes have to be separated by at least one whitespace character.
+     
+     <li>Attributes with an empty value may be written as just the attribute
+     name omitting the equals sign and the value, even if it's not a boolean
+     attribute. (HTML4 actually allowed using only the attribute
+     <em>value</em> and omitting the attribute name, for enumerated attributes,
+     but this was not supported in browsers.)
+     
+     <li>Attributes omitting quotes for the value are allowed to use a larger
+     set of characters compared to HTML4.
+     
+     <li>The <code>optgroup</code> end tag is now optional.
+     
+     <li>The <code>colgroup</code> start tag is now optional and is inferred by
+     the HTML parser.
     </ul>
 
 

Received on Friday, 14 September 2012 14:26:34 UTC