[html5] r1378 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Mar 21 17:15:57 PDT 2008


Author: ianh
Date: 2008-03-21 17:15:56 -0700 (Fri, 21 Mar 2008)
New Revision: 1378

Modified:
   index
   source
Log:
[e] (0) Use a real 'minus' sign for negative numbers.

Modified: index
===================================================================
--- index	2008-03-22 00:12:34 UTC (rev 1377)
+++ index	2008-03-22 00:15:56 UTC (rev 1378)
@@ -24,7 +24,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 21 March 2008</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 22 March 2008</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -6760,15 +6760,15 @@
    by a click).
 
   <p>If the attribute is absent (or invalid), then the user agent must treat
-   the element as if it had the value 0 or the value -1, based on platform
-   conventions.
+   the element as if it had the value 0 or the value &#x2212;1, based on
+   platform conventions.
 
   <p class=example>For example, a user agent might default
    <code>textarea</code> elements to 0, and <code>button</code> elements to
-   -1, making text fields part of the tabbing cycle but buttons not.
+   &#x2212;1, making text fields part of the tabbing cycle but buttons not.
 
   <p>When an element that does not normally take focus (i.e. whose default
-   value would be -1) has the <code title=attr-tabindex><a
+   value would be &#x2212;1) has the <code title=attr-tabindex><a
    href="#tabindex">tabindex</a></code> attribute specified with a positive
    value, then it should be added to the tab order and should be made
    focusable. When focused, the element matches the CSS <code>:focus</code>
@@ -6780,7 +6780,8 @@
    href="#tabindex">tabIndex</a></code> content attribute. If the attribute
    is not present (or has an invalid value) then the DOM attribute must
    return the UA's default value for that element, which will be either 0
-   (for elements in the tab order) or -1 (for elements not in the tab order).</p>
+   (for elements in the tab order) or &#x2212;1 (for elements not in the tab
+   order).</p>
   <!--XXX
   <h5>The <dfn><code>DocumentFocus</code></dfn> interface</h5>
 
@@ -11204,9 +11205,9 @@
     href="#time1">time</a></code> attribute would have the value
     18,000,000ms, and the <code title=dom-time-timezone><a
     href="#timezone0">timezone</a></code> attribute would return
-    -25,200,000ms. To obtain the actual time, the three attributes can be
-    added together, obtaining 1,159,048,800,000, which is the specified date
-    and time in UTC.</p>
+    &#x2212;25,200,000ms. To obtain the actual time, the three attributes can
+    be added together, obtaining 1,159,048,800,000, which is the specified
+    date and time in UTC.</p>
 
    <p>Finally, in the following snippet:</p>
 
@@ -11409,8 +11410,8 @@
 
   <p>If the progress bar is an indeterminate progress bar, then the <dfn
    id=position title=dom-progress-position><code>position</code></dfn> DOM
-   attribute must return -1. Otherwise, it must return the result of dividing
-   the current value by the maximum value.
+   attribute must return &#x2212;1. Otherwise, it must return the result of
+   dividing the current value by the maximum value.
 
   <h4 id=the-meter><span class=secno>3.10.12 </span>The <dfn
    id=meter><code>meter</code></dfn> element</h4>
@@ -19392,8 +19393,8 @@
    table and the <var title="">index</var> argument:
 
   <dl class=switch>
-   <dt>If <var title="">index</var> is less than -1 or greater than the
-    number of elements in <code title=dom-table-rows><a
+   <dt>If <var title="">index</var> is less than &#x2212;1 or greater than
+    the number of elements in <code title=dom-table-rows><a
     href="#rows">rows</a></code> collection:
 
    <dd>The method must raise an <code>INDEX_SIZE_ERR</code> exception.
@@ -19418,9 +19419,9 @@
     append it to the last <code><a href="#tbody">tbody</a></code> element in
     the table, and return the <code><a href="#tr">tr</a></code> element.
 
-   <dt>If <var title="">index</var> is equal to -1 or equal to the number of
-    items in <code title=dom-table-rows><a href="#rows">rows</a></code>
-    collection:
+   <dt>If <var title="">index</var> is equal to &#x2212;1 or equal to the
+    number of items in <code title=dom-table-rows><a
+    href="#rows">rows</a></code> collection:
 
    <dd>The method must create a <code><a href="#tr">tr</a></code> element,
     and append it to the parent of the last <code><a href="#tr">tr</a></code>
@@ -19654,16 +19655,17 @@
    title="">index</var>)</code></dfn> method must, when invoked on an element
    <var title="">table section</var>, act as follows:
 
-  <p>If <var title="">index</var> is less than -1 or greater than the number
-   of elements in the <code title=dom-tbody-rows><a
+  <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
+   number of elements in the <code title=dom-tbody-rows><a
    href="#rows0">rows</a></code> collection, the method must raise an
    <code>INDEX_SIZE_ERR</code> exception.
 
-  <p>If <var title="">index</var> is equal to -1 or equal to the number of
-   items in the <code title=dom-tbody-rows><a href="#rows0">rows</a></code>
-   collection, the method must create a <code><a href="#tr">tr</a></code>
-   element, append it to the element <var title="">table section</var>, and
-   return the newly created <code><a href="#tr">tr</a></code> element.
+  <p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
+   number of items in the <code title=dom-tbody-rows><a
+   href="#rows0">rows</a></code> collection, the method must create a
+   <code><a href="#tr">tr</a></code> element, append it to the element <var
+   title="">table section</var>, and return the newly created <code><a
+   href="#tr">tr</a></code> element.
 
   <p>Otherwise, the method must create a <code><a href="#tr">tr</a></code>
    element, insert it as a child of the <var title="">table section</var>
@@ -19864,16 +19866,17 @@
   <p>The <dfn id=insertcell title=dom-tr-insertCell><code>insertCell(<var
    title="">index</var>)</code></dfn> method must act as follows:
 
-  <p>If <var title="">index</var> is less than -1 or greater than the number
-   of elements in the <code title=dom-tr-cells><a
+  <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
+   number of elements in the <code title=dom-tr-cells><a
    href="#cells">cells</a></code> collection, the method must raise an
    <code>INDEX_SIZE_ERR</code> exception.
 
-  <p>If <var title="">index</var> is equal to -1 or equal to the number of
-   items in <code title=dom-tr-cells><a href="#cells">cells</a></code>
-   collection, the method must create a <code><a href="#td">td</a></code>
-   element, append it to the <code><a href="#tr">tr</a></code> element, and
-   return the newly created <code><a href="#td">td</a></code> element.
+  <p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
+   number of items in <code title=dom-tr-cells><a
+   href="#cells">cells</a></code> collection, the method must create a
+   <code><a href="#td">td</a></code> element, append it to the <code><a
+   href="#tr">tr</a></code> element, and return the newly created <code><a
+   href="#td">td</a></code> element.
 
   <p>Otherwise, the method must create a <code><a href="#td">td</a></code>
    element, insert it as a child of the <code><a href="#tr">tr</a></code>
@@ -22168,8 +22171,8 @@
     column <var title="">column</var>. The checkbox should be toggled to the
     state given by <var title="">state</var>, which is a positive integer (1)
     if the checkbox is to be checked, zero (0) if it is to be unchecked, and
-    a negative number (-1) if it is to be set to the indeterminate state.
-    There is no need to tell the <code><a
+    a negative number (&#x2212;1) if it is to be set to the indeterminate
+    state. There is no need to tell the <code><a
     href="#datagrid0">datagrid</a></code> that the cell has changed, as the
     <code><a href="#datagrid0">datagrid</a></code> automatically assumes that
     the given cell will need updating.
@@ -23616,8 +23619,8 @@
    representing the cell's row as the first argument, the cell's column index
    as the second, and the checkbox's new state as the third. The state should
    be represented by the number 1 if the new state is checked, 0 if the new
-   state is unchecked, and -1 if the new state is indeterminate (which must
-   only be possible if the cell has the <code
+   state is unchecked, and &#x2212;1 if the new state is indeterminate (which
+   must only be possible if the cell has the <code
    title=datagrid-cell-class-indeterminate><a
    href="#indeterminate">indeterminate</a></code> class set). The <code><a
    href="#datagrid0">datagrid</a></code> must act as if the <code><a

Modified: source
===================================================================
--- source	2008-03-22 00:12:34 UTC (rev 1377)
+++ source	2008-03-22 00:15:56 UTC (rev 1378)
@@ -5266,16 +5266,16 @@
   it could be focused by a click).</p>
 
   <p>If the attribute is absent (or invalid), then the user agent must
-  treat the element as if it had the value 0 or the value -1, based on
+  treat the element as if it had the value 0 or the value &#x2212;1, based on
   platform conventions.</p>
 
   <p class="example">For example, a user agent might default
   <code>textarea</code> elements to 0, and <code>button</code>
-  elements to -1, making text fields part of the tabbing cycle but
+  elements to &#x2212;1, making text fields part of the tabbing cycle but
   buttons not.</p>
 
   <p>When an element that does not normally take focus (i.e. whose
-  default value would be -1) has the <code
+  default value would be &#x2212;1) has the <code
   title="attr-tabindex">tabindex</code> attribute specified with a
   positive value, then it should be added to the tab order and should
   be made focusable. When focused, the element matches the CSS
@@ -5287,7 +5287,7 @@
   title="attr-tabIndex">tabIndex</code> content attribute. If the
   attribute is not present (or has an invalid value) then the DOM
   attribute must return the UA's default value for that element, which
-  will be either 0 (for elements in the tab order) or -1 (for elements
+  will be either 0 (for elements in the tab order) or &#x2212;1 (for elements
   not in the tab order).</p>
 
 
@@ -9314,7 +9314,7 @@
    1,159,056,000,000ms, the <code title="dom-time-time">time</code>
    attribute would have the value 18,000,000ms, and the <code
    title="dom-time-timezone">timezone</code> attribute would return
-   -25,200,000ms. To obtain the actual time, the three attributes can
+   &#x2212;25,200,000ms. To obtain the actual time, the three attributes can
    be added together, obtaining 1,159,048,800,000, which is the
    specified date and time in UTC.</p>
 
@@ -9512,7 +9512,7 @@
 
   <p>If the progress bar is an indeterminate progress bar, then the
   <dfn title="dom-progress-position"><code>position</code></dfn> DOM
-  attribute must return -1. Otherwise, it must return the result of
+  attribute must return &#x2212;1. Otherwise, it must return the result of
   dividing the current value by the maximum value.</p>
 
 
@@ -17004,7 +17004,7 @@
 
   <dl class="switch">
 
-   <dt>If <var title="">index</var> is less than -1 or greater than
+   <dt>If <var title="">index</var> is less than &#x2212;1 or greater than
    the number of elements in <code title="dom-table-rows">rows</code>
    collection:</dt>
 
@@ -17028,7 +17028,7 @@
    the last <code>tbody</code> element in the table, and return the
    <code>tr</code> element.</dd>
 
-   <dt>If <var title="">index</var> is equal to -1 or equal to the
+   <dt>If <var title="">index</var> is equal to &#x2212;1 or equal to the
    number of items in <code title="dom-table-rows">rows</code>
    collection:</dt>
 
@@ -17217,12 +17217,12 @@
   title="">index</var>)</code></dfn> method must, when invoked on an
   element <var title="">table section</var>, act as follows:</p>
 
-  <p>If <var title="">index</var> is less than -1 or greater than the
+  <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
   number of elements in the <code title="dom-tbody-rows">rows</code>
   collection, the method must raise an <code>INDEX_SIZE_ERR</code>
   exception.</p>
 
-  <p>If <var title="">index</var> is equal to -1 or equal to the
+  <p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
   number of items in the <code title="dom-tbody-rows">rows</code>
   collection, the method must create a <code>tr</code> element, append
   it to the element <var title="">table section</var>, and return the
@@ -17380,12 +17380,12 @@
   <p>The <dfn title="dom-tr-insertCell"><code>insertCell(<var
   title="">index</var>)</code></dfn> method must act as follows:</p>
 
-  <p>If <var title="">index</var> is less than -1 or greater than the
+  <p>If <var title="">index</var> is less than &#x2212;1 or greater than the
   number of elements in the <code title="dom-tr-cells">cells</code>
   collection, the method must raise an <code>INDEX_SIZE_ERR</code>
   exception.</p>
 
-  <p>If <var title="">index</var> is equal to -1 or equal to the
+  <p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
   number of items in <code title="dom-tr-cells">cells</code>
   collection, the method must create a <code>td</code> element, append
   it to the <code>tr</code> element, and return the newly created
@@ -19910,7 +19910,7 @@
    <var title="">column</var>. The checkbox should be toggled to the
    state given by <var title="">state</var>, which is a positive
    integer (1) if the checkbox is to be checked, zero (0) if it is to
-   be unchecked, and a negative number (-1) if it is to be set to the
+   be unchecked, and a negative number (&#x2212;1) if it is to be set to the
    indeterminate state. There is no need to tell the
    <code>datagrid</code> that the cell has changed, as the
    <code>datagrid</code> automatically assumes that the given cell
@@ -21320,7 +21320,7 @@
   cell's row as the first argument, the cell's column index as the
   second, and the checkbox's new state as the third. The state should
   be represented by the number 1 if the new state is checked, 0 if the
-  new state is unchecked, and -1 if the new state is indeterminate
+  new state is unchecked, and &#x2212;1 if the new state is indeterminate
   (which must only be possible if the cell has the <code
   title="datagrid-cell-class-indeterminate">indeterminate</code> class
   set). The <code>datagrid</code> must act as if the




More information about the Commit-Watchers mailing list