hixie: Change the way this is phrased to try to make it less confusing. (whatwg r6705)

hixie: Change the way this is phrased to try to make it less confusing.
(whatwg r6705)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5375&r2=1.5376&f=h
http://html5.org/tools/web-apps-tracker?from=6704&to=6705

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5375
retrieving revision 1.5376
diff -u -d -r1.5375 -r1.5376
--- Overview.html 19 Oct 2011 22:46:41 -0000 1.5375
+++ Overview.html 19 Oct 2011 23:02:06 -0000 1.5376
@@ -36926,20 +36926,17 @@
   selecting a single option from the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>.<p>The <dfn id="attr-select-size" title="attr-select-size"><code>size</code></dfn>
   attribute gives the number of options to show to the user. The <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute, if specified, must
   have a value that is a <a href="#valid-non-negative-integer">valid non-negative integer</a>
-  greater than zero. If the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is present,
-  then the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute's
-  default value is 4. If the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is absent,
-  then the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute's
-  default value is 1.<div class="impl">
+  greater than zero.<div class="impl">
 
   <p>The <dfn id="concept-select-size" title="concept-select-size">display size</dfn> of a
   <code><a href="#the-select-element">select</a></code> element is the result of applying the
   <a href="#rules-for-parsing-non-negative-integers">rules for parsing non-negative integers</a> to the value of
-  element's <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute, if it
-  has one and parsing it is successful. If applying those rules to the
-  attribute's value is not successful, or if the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute is absent, the
-  element's <a href="#concept-select-size" title="concept-select-size">display size</a> is
-  the default value of the attribute.</p>
+  element's <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute, if
+  it has one and parsing it is successful. If applying those rules to
+  the attribute's value is not successful, or if the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> attribute is absent, then the
+  element's <a href="#concept-select-size" title="concept-select-size">display size</a> is 4
+  if the element's <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code>
+  content attribute is present, and 1 otherwise.</p>
 
   </div><p>The <dfn id="concept-select-option-list" title="concept-select-option-list">list of options</dfn>
   for a <code><a href="#the-select-element">select</a></code> element consists of all the
@@ -37225,9 +37222,12 @@
   <dfn id="dom-select-size" title="dom-select-size"><code>size</code></dfn> IDL attributes
   must <a href="#reflect">reflect</a> the respective content attributes of the
   same name. The <code title="dom-select-size"><a href="#dom-select-size">size</a></code> IDL
-  attribute has a default value of zero (which for historical reasons
-  is different from the default value of the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> content attribute that it
-  reflects).</p> 
+  attribute has a default value of zero.</p> 
+  <p class="note">For historical reasons, the default value of the
+  <code title="dom-select-size"><a href="#dom-select-size">size</a></code> IDL attribute does not
+  return the actual size used, which, in the absence of the <code title="attr-select-size"><a href="#attr-select-size">size</a></code> content attribute, is either 1
+  or 4 depending on the presence of the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute.</p>
+
   <p>The <code title="dom-cva-willValidate"><a href="#dom-cva-willvalidate">willValidate</a></code>, <code title="dom-cva-validity"><a href="#dom-cva-validity">validity</a></code>, and <code title="dom-cva-validationMessage"><a href="#dom-cva-validationmessage">validationMessage</a></code>
   attributes, and the <code title="dom-cva-checkValidatity"><a href="#dom-cva-checkvalidatity">checkValidity()</a></code> and <code title="dom-cva-setCustomValidity"><a href="#dom-cva-setcustomvalidity">setCustomValidity()</a></code>
   methods, are part of the <a href="#the-constraint-validation-api">constraint validation API</a>. The

Received on Wednesday, 19 October 2011 23:02:44 UTC