W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2010

hixie: Make <object type=application/octet-stream> ignore the type= attribute for legacy compat. Also, fix some trailing spaces throughout. (whatwg r4990)

From: poot <cvsmail@w3.org>
Date: Fri, 9 Apr 2010 13:05:59 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100409040559.AF64F2BC1C@toro.w3.mag.keio.ac.jp>
hixie: Make <object type=application/octet-stream> ignore the type=
attribute for legacy compat. Also, fix some trailing spaces throughout.
(whatwg r4990)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4007&r2=1.4008&f=h
http://html5.org/tools/web-apps-tracker?from=4989&to=4990

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4007
retrieving revision 1.4008
diff -u -d -r1.4007 -r1.4008
--- Overview.html	9 Apr 2010 01:52:21 -0000	1.4007
+++ Overview.html	9 Apr 2010 04:05:39 -0000	1.4008
@@ -2094,7 +2094,7 @@
     with an U+005F LOW LINE character (_) to only specific predefined
     values allows new predefined values to be introduced at a future
     time without conflicting with author-defined values.</p>
- 
+
    </dd>
 
 
@@ -12621,7 +12621,7 @@
   &lt;title&gt;Online or offline?&lt;/title&gt;
   &lt;script&gt;
    function update(online) {
-     document.getElementById('status').textContent = 
+     document.getElementById('status').textContent =
        online ? 'Online' : 'Offline';
    }
   &lt;/script&gt;
@@ -14517,7 +14517,7 @@
    <dt>Contexts in which this element may be used:</dt>
    <dd>Before <code><a href="#the-dd-element">dd</a></code> or <code><a href="#the-dt-element">dt</a></code> elements inside <code><a href="#the-dl-element">dl</a></code> elements.</dd>
    <dt>Content model:</dt>
-   <dd><a href="#phrasing-content">Phrasing content</a>.</dd>   
+   <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
    <dt>Content attributes:</dt>
    <dd><a href="#global-attributes">Global attributes</a></dd>
    <dt>DOM interface:</dt>
@@ -14797,7 +14797,7 @@
   areas, e.g. a link to see photos of the event, or to edit the event,
   or some such. --><p>If the <code><a href="#the-a-element">a</a></code> element has no <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute, then the element
   <a href="#represents">represents</a> a placeholder for where a link might
-  otherwise have been placed, if it had been relevant.<p>The <code title="attr-hyperlink-target"><a href="#attr-hyperlink-target">target</a></code>, 
+  otherwise have been placed, if it had been relevant.<p>The <code title="attr-hyperlink-target"><a href="#attr-hyperlink-target">target</a></code>,
   <code title="attr-hyperlink-rel"><a href="#attr-hyperlink-rel">rel</a></code>, <code title="attr-hyperlink-media"><a href="#attr-hyperlink-media">media</a></code>, <code title="attr-hyperlink-hreflang"><a href="#attr-hyperlink-hreflang">hreflang</a></code>, and <code title="attr-hyperlink-type"><a href="#attr-hyperlink-type">type</a></code> attributes must be omitted
   if the <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute is
   not present.<div class="example">
@@ -14875,7 +14875,7 @@
 
   </dl><div class="impl">
 
-  <p>The IDL attributes <dfn id="dom-a-href" title="dom-a-href"><code>href</code></dfn>, 
+  <p>The IDL attributes <dfn id="dom-a-href" title="dom-a-href"><code>href</code></dfn>,
   <dfn id="dom-a-target" title="dom-a-target"><code>target</code></dfn>, <dfn id="dom-a-rel" title="dom-a-rel"><code>rel</code></dfn>, <dfn id="dom-a-media" title="dom-a-media"><code>media</code></dfn>, <dfn id="dom-a-hreflang" title="dom-a-hreflang"><code>hreflang</code></dfn>, and <dfn id="dom-a-type" title="dom-a-type"><code>type</code></dfn>, must
   <a href="#reflect">reflect</a> the respective content attributes of the same
   name.</p>
@@ -19125,15 +19125,15 @@
    |                 Is there a type="" attribute whose value is a plugin type? ============================================-.
    |                   |                                                                                                     |
    |                   | NO                                                                                                  |
-   |                   V                        NO                                       YES                                 V
-   |                 Is there a Content type? ========-> Is there a type="" attribute? ====================================>-+
-   |                   |                                                           |                                         |
-   |                   | YES                                                       | NO                                      |
-   V            NO     V                                                           |                                         |
-   +-<============== Is it text/plain or application/octet-stream?                 `============> Sniff ==-.                 |
-   |                   |                                     |                                             |                 |
+   |                   V                        NO                                       YES                                 |
+   |                 Is there a Content type? ========-> Is there a type="" attribute? ==========> Let TYPE be type=""       |
+   |                   |                                                           |               attribute value           |
+   |                   | YES                                                       | NO                    |                 |
+   V            NO     V                                                           |                       V                 |
+   +-<============== Is it text/plain or application/octet-stream?                 `==> Let TYPE be  =====>+                 |
+   |                   |                                     |                          Sniffed type       |                 |
    |                   | text/plain                          | octet-stream                                V                 |
-   |                   V                              YES    V                                    Is the sniffed-type        |
+   |                   V                              YES    V                                          Is TYPE              |
    |                 Does the page sniff as binary? ======> Is there a type="" attribute?       application/octet-stream?    |
    |                   |                                     |              |                      |                |        |
    |                   | NO                                  | YES          | NO                   | YES            | NO     |
@@ -19146,10 +19146,10 @@
    |                   |                           doesn't start with image/* ======> FALLBACK     |                |        |
    |                   |                           and is not a plugin type?                       |                |        |
    |                   |                                          |                                |                |        |
-   |                   |                                          | NO                             |                V        V
-   V                   V                                          V                                V               Use      Use
-  Use                 Use                                        Use it (will be                  Use              sniffed  type=""
-  Content-Type        text/plain                                 bitmap or plugin)                extension        type     attribute
+   |                   |                                          | NO                             |                |        V
+   V                   V                                          V                                V                V       Use
+  Use                 Use                                        Use it (will be                  Use              Use      type=""
+  Content-Type        text/plain                                 bitmap or plugin)                extension        TYPE     attribute
    |                   |                                          |                                |                |        |
    |                   V                                          V                                V                V        |
    `================->-+========================================>-+==============>-+-<============-+-<==============+-<======'
@@ -19276,25 +19276,19 @@
           <ol><li>
 
             <p>If there is a <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute present on
-            the <code><a href="#the-object-element">object</a></code> element, then let the <var title="">resource type</var> be the type specified in that
-            <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute, and
-            jump to the step below labeled <i>handler</i>.</p>
-
-           </li>
-
-           <li>
-
-            <!-- no content-type and no attribute -->
+            the <code><a href="#the-object-element">object</a></code> element, then let the <var title="">tentative type</var> be the type specified in that
+            <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute.</p>
 
-            <p>Let <var title="">sniffed type</var> be the <a href="#content-type-sniffing-0" title="content-type sniffing">sniffed type of the
+            <p>Otherwise, let <var title="">tentative type</var> be the
+            <a href="#content-type-sniffing-0" title="content-type sniffing">sniffed type of the
             resource</a>.</p>
 
            </li>
 
            <li>
 
-            <p>If <var title="">sniffed type</var> is <em>not</em>
-            <code>application/octet-stream</code>, then let <var title="">resource type</var> be <var title="">sniffed
+            <p>If <var title="">tentative type</var> is <em>not</em>
+            <code>application/octet-stream</code>, then let <var title="">resource type</var> be <var title="">tentative
             type</var> and jump to the step below labeled
             <i>handler</i>.</p>
 
@@ -19604,7 +19598,7 @@
   &lt;video controls src="http://video.example.com/vids/315981"&gt;
    &lt;a href="http://video.example.com/vids/315981"&gt;View video&lt;/a&gt;.
   &lt;/video&gt;
- &lt;/object&gt; 
+ &lt;/object&gt;
 &lt;/p&gt;</pre>
 
   </div><h4 id="the-param-element"><span class="secno">4.8.5 </span>The <dfn><code>param</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
@@ -19943,18 +19937,18 @@
   </dl><p>An <code><a href="#audio">audio</a></code> element <a href="#represents">represents</a> a sound or
   audio stream.</p><!-- v2 (actually v3) suggestions:
     * Audio syntesis. Use cases from Charles Pritchard:
-      > Use a sound of varying pitch to hint to a user the location of their 
-      > mouse (is it hovering over a button, is it x/y pixels away from the edge 
+      > Use a sound of varying pitch to hint to a user the location of their
+      > mouse (is it hovering over a button, is it x/y pixels away from the edge
       > of the screen, how close is it to the center).
-      > 
+      >
       > Alter the pitch of a sound to make a very cheap midi instrument.
-      > 
+      >
       > Pre-mix a few generated sounds, because the client processor is slow.
-      > 
-      > Alter the pitch of an actual audio recording, and pre-mix it, to give 
-      > different sounding voices to pre-recorded readings of a single text. As 
+      >
+      > Alter the pitch of an actual audio recording, and pre-mix it, to give
+      > different sounding voices to pre-recorded readings of a single text. As
       > has been tried for "male" "female" sound fonts.
-      > 
+      >
       > Support very simple audio codecs, and programmable synthesizers.
   --><p>Content may be provided inside the <code><a href="#audio">audio</a></code>
   element<span class="impl">. User agents should not show this content
@@ -25739,21 +25733,21 @@
   &lt;tr&gt; &lt;th&gt; &lt;th&gt;2008 &lt;th&gt;2007 &lt;th&gt;2006
  &lt;tbody&gt;
   &lt;tr&gt; &lt;th scope=rowgroup&gt; Research and development
-       &lt;td&gt; $ 1,109 &lt;td&gt; $ 782 &lt;td&gt; $ 712 
+       &lt;td&gt; $ 1,109 &lt;td&gt; $ 782 &lt;td&gt; $ 712
   &lt;tr&gt; &lt;th scope=row&gt; Percentage of net sales
-       &lt;td&gt; 3.4% &lt;td&gt; 3.3% &lt;td&gt; 3.7% 
+       &lt;td&gt; 3.4% &lt;td&gt; 3.3% &lt;td&gt; 3.7%
  &lt;tbody&gt;
   &lt;tr&gt; &lt;th scope=rowgroup&gt; Selling, general, and administrative
-       &lt;td&gt; $ 3,761 &lt;td&gt; $ 2,963 &lt;td&gt; $ 2,433 
+       &lt;td&gt; $ 3,761 &lt;td&gt; $ 2,963 &lt;td&gt; $ 2,433
   &lt;tr&gt; &lt;th scope=row&gt; Percentage of net sales
        &lt;td&gt; 11.6% &lt;td&gt; 12.3% &lt;td&gt; 12.6%
 &lt;/table&gt;</pre><p>This table could look like this:<table class="apple-table-examples e2"><thead><tr><th> <th>2008 <th>2007 <th>2006
    <tbody><tr><th scope="rowgroup"> Research and development
-         <td> $ 1,109 <td> $ 782 <td> $ 712 
+         <td> $ 1,109 <td> $ 782 <td> $ 712
     <tr><th scope="row"> Percentage of net sales
-         <td> 3.4% <td> 3.3% <td> 3.7% 
+         <td> 3.4% <td> 3.3% <td> 3.7%
    <tbody><tr><th scope="rowgroup"> Selling, general, and administrative
-         <td> $ 3,761 <td> $ 2,963 <td> $ 2,433 
+         <td> $ 3,761 <td> $ 2,963 <td> $ 2,433
     <tr><th scope="row"> Percentage of net sales
          <td> 11.6% <td> 12.3% <td> 12.6%
   </table><h3 id="forms"><span class="secno">4.10 </span>Forms</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><h4 id="introduction-0"><span class="secno">4.10.1 </span>Introduction</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p><i>This section is non-normative.</i><p>Forms allow unscripted client-server interaction: given a form, a
@@ -41136,7 +41130,7 @@
   <var title="">url</var> earlier. If the <var title="">replace</var>
   is true, then <a href="#replacement-enabled" title="replacement enabled">replacement must be
   enabled</a>; otherwise, it must not be enabled unless the
-  <a href="#browsing-context">browsing context</a> was just created as part of 
+  <a href="#browsing-context">browsing context</a> was just created as part of
   <a href="#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a browsing
   context name</a>. The navigation must be done with the <a href="#script-s-browsing-context" title="script's browsing context">browsing context</a> of the
   <a href="#entry-script">entry script</a> as the <a href="#source-browsing-context">source browsing
@@ -42399,7 +42393,7 @@
    does not go back in time, and therefore it would be inappropriate
    to put the time in the session history title.</p>
 
-   <pre>&lt;!DOCTYPE HTML&gt; 
+   <pre>&lt;!DOCTYPE HTML&gt;
 &lt;TITLE&gt;Line&lt;/TITLE&gt;
 &lt;SCRIPT&gt;
  setInterval(function () { document.title = 'Line - ' + new Date(); }, 1000);
@@ -45426,7 +45420,7 @@
 
   </dl><p>The <a href="#task-source">task source</a> for these <a href="#concept-task" title="concept-task">tasks</a> is the <a href="#networking-task-source">networking task
   source</a>.</p>
-  
+
 
 
 
@@ -50446,14 +50440,14 @@
          <dd><p>The <a href="#current-target-element">current target element</a> must be set to
          the <a href="#immediate-user-selection">immediate user selection</a> anyway.</dd>
 
-         <dt>If the <a href="#current-target-element">current target element</a> is 
+         <dt>If the <a href="#current-target-element">current target element</a> is
          <a href="#the-body-element">the body element</a></dt>
 
          <dd><p>The <a href="#current-target-element">current target element</a> is left
          unchanged.</dd>
 
          <dt>Otherwise</dt>
-         
+
          <dd><p>The user agent must fire a <code title="event-dragenter"><a href="#event-dragenter">dragenter</a></code> event at <a href="#the-body-element">the
          body element</a>, and the <a href="#current-target-element">current target
          element</a> must be set to <a href="#the-body-element">the body element</a>,
@@ -52783,7 +52777,7 @@
     the user's locale, for compatibility with legacy content. Locales
     are identified by BCP 47 language codes. <a href="#refsBCP47">[BCP47]</a></p>
 
-    <!-- based on mozilla 1.9.1 localizations: 
+    <!-- based on mozilla 1.9.1 localizations:
          http://mxr.mozilla.org/l10n-mozilla1.9.1/find?string=global%2Fintl.properties&tree=l10n-mozilla1.9.1&hint= -->
 
     <table><thead><tr><th>Locale language
@@ -57552,7 +57546,7 @@
      token, then ignore that token and move on to the next
      one. (Newlines at the start of <code><a href="#the-textarea-element">textarea</a></code> elements are
      ignored as an authoring convenience.)</li>
-     
+
      <!-- see comment in <pre> start tag bit -->
 
      <li><p>Switch the tokenizer to the <a href="#rcdata-state">RCDATA
@@ -59330,7 +59324,7 @@
      <a href="#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing">list of scripts that will execute when the document has
      finished parsing</a> (i.e. shift out the first entry in the
      list).</li>
- 
+
      <li><p>If the <a href="#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing">list of scripts that will execute when the
      document has finished parsing</a> is still not empty, repeat
      these substeps again from substep 1.</p>
@@ -61011,7 +61005,7 @@
 
   <!-- (Apparently only IE supports this?) (Note: if you add this
   back, make sure to define which of 'size' vs 'pointsize' wins.)
-  
+
   <p>When a <code>font</code> element has a <code
   title="attr-font-pointsize">pointsize</code> attribute, the user
   agent is expected to parse that attribute's value using the
@@ -65255,7 +65249,7 @@
      <td><code><a href="#htmlelement">HTMLElement</a></code></td>
     <tr><th><code><a href="#script">script</a></code></th>
      <td>Embedded script</td>
-     <td><a href="#metadata-content" title="Metadata content">metadata</a>; 
+     <td><a href="#metadata-content" title="Metadata content">metadata</a>;
          <a href="#flow-content" title="Flow content">flow</a>;
          <a href="#phrasing-content" title="Phrasing content">phrasing</a></td>
      <td><code><a href="#the-head-element-0">head</a></code>;
@@ -65523,7 +65517,7 @@
      <th> Elements
      <th> Elements with exceptions
    <tbody><tr><td> <a href="#metadata-content">Metadata content</a>
-     <td> 
+     <td>
       <code><a href="#the-base-element">base</a></code>;
       <code><a href="#the-command">command</a></code>;
       <code><a href="#the-link-element">link</a></code>;
@@ -65532,7 +65526,7 @@
       <code><a href="#script">script</a></code>;
       <code><a href="#the-style-element">style</a></code>;
       <code><a href="#the-title-element-0">title</a></code>
-     <td> 
+     <td>
       &mdash;
 
     <tr><td> <a href="#flow-content">Flow content</a>
@@ -65809,7 +65803,7 @@
       <code><a href="#the-section-element">section</a></code>;
       <code><a href="#the-nav-element">nav</a></code>;
       <code><a href="#the-article-element">article</a></code>;
-      <code><a href="#the-aside-element">aside</a></code>; 
+      <code><a href="#the-aside-element">aside</a></code>;
       <code><a href="#the-h1-h2-h3-h4-h5-and-h6-elements">h1</a></code>;
       <code><a href="#the-h1-h2-h3-h4-h5-and-h6-elements">h2</a></code>;
       <code><a href="#the-h1-h2-h3-h4-h5-and-h6-elements">h3</a></code>;
@@ -66254,7 +66248,7 @@
     <tr><th> <code title="">sandbox</code>
      <td> <code title="attr-iframe-sandbox"><a href="#attr-iframe-sandbox">iframe</a></code>
      <td> Security rules for nested content
-     <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of 
+     <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of
           "<code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>",
           "<code title="attr-iframe-sandbox-allow-forms"><a href="#attr-iframe-sandbox-allow-forms">allow-forms</a></code>", and
           "<code title="attr-iframe-sandbox-allow-scripts"><a href="#attr-iframe-sandbox-allow-scripts">allow-scripts</a></code>"
@@ -66834,12 +66828,12 @@
      <th> Reflects...
    <tbody>
     ...
-    <tr> 
+    <tr>
      <td> <code>HTMLElement</code>
      <td> <span>HTML elements</span>
      <td> <code title="dom-contextMenu">contextMenu</code>
      <td> <code title="attr-contextmenu">contextmenu</code>
-    <tr> 
+    <tr>
      <td> <code>HTMLOptionElement</code>
      <td> <code>option</code>
      <td> <code title="dom-option-text">text</code>
Received on Friday, 9 April 2010 04:06:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:18 GMT