From c5a2a8d88046a01daa1276e8b6f07ac204678d0b Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Tue, 25 Nov 2008 12:19:40 +0000 Subject: [PATCH] [c] (0) WF2: , git-svn-id: http://svn.whatwg.org/webapps@2440 340c8d12-0b0e-0410-8428-c7bf67bfef74 --- index | 130 ++++++++++++++++++++++++++++++++++++++++++++------------- source | 111 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 196 insertions(+), 45 deletions(-) diff --git a/index b/index index 4c4004bd028..67e6a87c565 100644 --- a/index +++ b/index @@ -530,11 +530,12 @@
  • 4.10.4.2.3 The readonly attribute
  • 4.10.4.2.4 The size attribute
  • 4.10.4.2.5 The required attribute
  • -
  • 4.10.4.2.6 The maxlength attribute
  • -
  • 4.10.4.2.7 The pattern attribute
  • -
  • 4.10.4.2.8 The min and max attributes
  • -
  • 4.10.4.2.9 The step attribute
  • -
  • 4.10.4.2.10 The placeholder attribute
  • +
  • 4.10.4.2.6 The multiple attribute
  • +
  • 4.10.4.2.7 The maxlength attribute
  • +
  • 4.10.4.2.8 The pattern attribute
  • +
  • 4.10.4.2.9 The min and max attributes
  • +
  • 4.10.4.2.10 The step attribute
  • +
  • 4.10.4.2.11 The placeholder attribute
  • 4.10.4.3 Common input element APIs
  • 4.10.4.4 Common event behaviors
  • 4.10.5 The button element
  • @@ -23090,6 +23091,7 @@ function AddCloud(data, x, y) { ... }
    maxlength
    method
    min
    +
    multiple
    name
    pattern
    placeholder
    @@ -23119,6 +23121,7 @@ function AddCloud(data, x, y) { ... } attribute long maxLength; attribute DOMString method; attribute DOMString min; + attribute boolean multiple; attribute DOMString name; attribute DOMString pattern; attribute DOMString placeholder; @@ -23247,7 +23250,7 @@ function AddCloud(data, x, y) { ... } A button

    The missing value default is the Text state.

    -

    Which of the accept, action, alt, autocomplete, checked, enctype, and list, max, maxlength, method, min, pattern, readonly, required, size, src, step, and target attributes apply to an +

    Which of the accept, action, alt, autocomplete, checked, enctype, and list, max, maxlength, method, min, multiple, pattern, readonly, required, size, src, step, and target attributes apply to an input element depends on the state of its type attribute. Similarly, the checked, valueAsDate, valueAsNumber, list, and selectedOption DOM attributes, and the stepUp() and stepDown() methods, are @@ -23531,6 +23534,29 @@ function AddCloud(data, x, y) { ... } · + multiple + · + · + + + + · + · + + + + + · + + · + · + + Yes + · + · + · + + pattern · Yes @@ -24040,7 +24066,7 @@ function AddCloud(data, x, y) { ... } submitted. The autofocus attribute controls focus.

    -

    The accept, alt, autocomplete, max, min, pattern, placeholder, required, size, src, step, and type DOM attributes must +

    The accept, alt, autocomplete, max, min, multiple, pattern, placeholder, required, size, src, step, and type DOM attributes must reflect the respective content attributes of the same name. The maxLength DOM attribute must reflect the maxlength content attribute. The @@ -24108,6 +24134,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -24184,6 +24211,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -24205,30 +24233,47 @@ function AddCloud(data, x, y) { ... } section apply.

    The input element represents a control for editing a - single e-mail address given in the element's value.

    + list of e-mail addresses given in the element's value.

    If the element is mutable, - the user agent should allow the user to change the e-mail address - represented by its value. User - agents may allow the user to set the value to a string that is not an - valid e-mail address. User agents should allow the user - to set the value to the empty - string. User agents must not allow users to insert U+000A LINE FEED - (LF) or U+000D CARRIAGE RETURN (CR) characters into the value. User agents may transform the + the user agent should allow the user to change the e-mail addresses + represented by its value. If + the multiple attribute is + specified, then the user agent should allow the user to select or + provide multiple addresses; otherwise, the user agent should act in + a manner consistent with expecting the user to provide a single + e-mail address. User agents may allow the user to set the value to a string that is not an + valid e-mail address list. User agents should allow the + user to set the value to the + empty string. User agents must not allow users to insert U+000A LINE + FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the value. User agents may transform the value for display and editing (e.g. converting punycode in the value to IDN in the display and vice versa).

    -

    The value attribute, if - specified, must have a value that is a valid e-mail - address.

    +

    If the multiple + attribute is specified on the element, then the value attribute, if specified, must + have a value that is a valid e-mail address list; + otherwise, the value + attribute, if specified, must have a value that is a single + valid e-mail address.

    The value sanitization algorithm is as follows: Strip line breaks from the value.

    -

    Constraint validation: While the value of the element is not a - valid e-mail address, the element is suffering - from a type mismatch.

    +

    Constraint validation: If the multiple attribute is specified + on the element, then, while the value of the element is not a + valid e-mail address list, the element is + suffering from a type mismatch; otherwise, while the + value of the element is not a + single valid e-mail address, the element is + suffering from a type mismatch.

    + +

    A valid e-mail address list is a set of + comma-separated tokens, where each token is itself a + valid e-mail address, possibly with one or more leading + or trailing space + characters.

    A valid e-mail address is a string that matches the production dot-atom "@" dot-atom @@ -24242,6 +24287,7 @@ function AddCloud(data, x, y) { ... } autocomplete, list, maxlength, + multiple, pattern, placeholder, readonly, @@ -24343,6 +24389,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -24405,6 +24452,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -24539,6 +24587,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -24662,6 +24711,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -24785,6 +24835,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -24908,6 +24959,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -25025,6 +25077,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -25134,6 +25187,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -25237,6 +25291,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -25366,6 +25421,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, readonly, @@ -25433,6 +25489,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -25549,6 +25606,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -25591,7 +25649,10 @@ function AddCloud(data, x, y) { ... } empty, then the element is suffering from being missing.

    -

    There must be no more than one file in the list of selected files.

    +

    Unless the multiple + attribute is set, there must be no more than one file in the list of + selected + files.


    The accept attribute may be specified to provide user agents with a hint of @@ -25628,7 +25689,8 @@ function AddCloud(data, x, y) { ... }

    The following common input element content attributes apply to the element: - accept and + accept, + multiple, and required.

    The change event applies.

    @@ -25720,6 +25782,7 @@ function AddCloud(data, x, y) { ... } max, maxlength, min, + multiple, pattern, placeholder, readonly, @@ -25878,6 +25941,7 @@ function AddCloud(data, x, y) { ... } max, maxlength, min, + multiple, pattern, placeholder, readonly, @@ -25947,6 +26011,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -26005,6 +26070,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -26196,7 +26262,15 @@ function AddCloud(data, x, y) { ... } -
    4.10.4.2.6 The maxlength attribute
    +
    4.10.4.2.6 The multiple attribute
    + +

    The multiple + attribute is a boolean attribute that indicates whether + the user is to be allowed to specify more than one value.

    + + + +
    4.10.4.2.7 The maxlength attribute

    The maxlength attribute, when it applies, is a form control @@ -26211,7 +26285,7 @@ function AddCloud(data, x, y) { ... } -

    4.10.4.2.7 The pattern attribute
    +
    4.10.4.2.8 The pattern attribute

    The pattern attribute specifies a regular expression against which the control's @@ -26274,7 +26348,7 @@ You cannot complete this form until the field is correct. -

    4.10.4.2.8 The min and max attributes
    +
    4.10.4.2.9 The min and max attributes

    The min and max attributes indicate the allowed range of values for the element.

    @@ -26326,7 +26400,7 @@ You cannot complete this form until the field is correct. overflow.

    -
    4.10.4.2.9 The step attribute
    +
    4.10.4.2.10 The step attribute

    The step attribute indicates the granularity that is expected (and required) @@ -26383,7 +26457,7 @@ You cannot complete this form until the field is correct. -

    4.10.4.2.10 The placeholder attribute
    +
    4.10.4.2.11 The placeholder attribute

    The placeholder attribute represents a short hint (a word or short phrase) diff --git a/source b/source index 3489725067f..9796829ea4e 100644 --- a/source +++ b/source @@ -25730,6 +25730,7 @@ function AddCloud(data, x, y) { ... }

    maxlength
    method
    min
    +
    multiple
    name
    pattern
    placeholder
    @@ -25759,6 +25760,7 @@ function AddCloud(data, x, y) { ... } attribute long maxLength; attribute DOMString method; attribute DOMString min; + attribute boolean multiple; attribute DOMString name; attribute DOMString pattern; attribute DOMString placeholder; @@ -25930,6 +25932,7 @@ function AddCloud(data, x, y) { ... } title="attr-input-maxlength">maxlength, method, min, multiple, pattern, readonly, required, · + + multiple + · + · + + + + · + · + + + + + · + + · + · + + Yes + · + · + · + + pattern · @@ -26811,6 +26838,7 @@ function AddCloud(data, x, y) { ... } title="dom-input-autocomplete">autocomplete, max, min, multiple, pattern, placeholder, required, maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -26981,6 +27010,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -27004,36 +27034,55 @@ function AddCloud(data, x, y) { ... } section apply.

    The input element represents a control for editing a - single e-mail address given in the element's value.

    If the element is mutable, - the user agent should allow the user to change the e-mail address - represented by its value. User - agents may allow the user to set the value. If + the multiple attribute is + specified, then the user agent should allow the user to select or + provide multiple addresses; otherwise, the user agent should act in + a manner consistent with expecting the user to provide a single + e-mail address. User agents may allow the user to set the value to a string that is not an - valid e-mail address. User agents should allow the user - to set the value to the empty - string. User agents must not allow users to insert U+000A LINE FEED - (LF) or U+000D CARRIAGE RETURN (CR) characters into the valid e-mail address list. User agents should allow the + user to set the value to the + empty string. User agents must not allow users to insert U+000A LINE + FEED (LF) or U+000D CARRIAGE RETURN (CR) characters into the value. User agents may transform the value for display and editing (e.g. converting punycode in the value to IDN in the display and vice versa).

    -

    The value attribute, if - specified, must have a value that is a valid e-mail - address.

    +

    If the multiple + attribute is specified on the element, then the value attribute, if specified, must + have a value that is a valid e-mail address list; + otherwise, the value + attribute, if specified, must have a value that is a single + valid e-mail address.

    The value sanitization algorithm is as follows: Strip line breaks from the value.

    -

    Constraint validation: While the Constraint validation: If the multiple attribute is specified + on the element, then, while the value of the element is not a - valid e-mail address, the element is suffering - from a type mismatch.

    + valid e-mail address list, the element is + suffering from a type mismatch; otherwise, while the + value of the element is not a + single valid e-mail address, the element is + suffering from a type mismatch.

    + +

    A valid e-mail address list is a set of + comma-separated tokens, where each token is itself a + valid e-mail address, possibly with one or more leading + or trailing space + characters.

    A valid e-mail address is a string that matches the production dot-atom "@" dot-atom @@ -27048,6 +27097,7 @@ function AddCloud(data, x, y) { ... } autocomplete, list, maxlength, + multiple, pattern, placeholder, readonly, @@ -27157,6 +27207,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -27225,6 +27276,7 @@ function AddCloud(data, x, y) { ... } max, method, min, + multiple, src, step, and target.

    @@ -27381,6 +27433,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -27522,6 +27575,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -27665,6 +27719,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -27807,6 +27862,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -27944,6 +28000,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -28068,6 +28125,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -28181,6 +28239,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, size, @@ -28332,6 +28391,7 @@ function AddCloud(data, x, y) { ... } enctype, maxlength, method, + multiple, pattern, placeholder, readonly, @@ -28405,6 +28465,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -28541,6 +28602,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -28588,8 +28650,10 @@ function AddCloud(data, x, y) { ... } empty, then the element is suffering from being missing.

    -

    There must be no more than one file in the list of selected files.

    +

    Unless the multiple + attribute is set, there must be no more than one file in the list of + selected + files.


    @@ -28636,7 +28700,8 @@ function AddCloud(data, x, y) { ... }

    The following common input element content attributes apply to the element: - accept and + accept, + multiple, and required.

    The change event applies.

    @@ -28735,6 +28800,7 @@ function AddCloud(data, x, y) { ... } max, maxlength, min, + multiple, pattern, placeholder, readonly, @@ -28939,6 +29005,7 @@ function AddCloud(data, x, y) { ... } max, maxlength, min, + multiple, pattern, placeholder, readonly, @@ -29015,6 +29082,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -29080,6 +29148,7 @@ function AddCloud(data, x, y) { ... } maxlength, method, min, + multiple, pattern, placeholder, readonly, @@ -29299,6 +29368,14 @@ function AddCloud(data, x, y) { ... } +
    The multiple attribute
    + +

    The multiple + attribute is a boolean attribute that indicates whether + the user is to be allowed to specify more than one value.

    + + +
    The maxlength attribute

    The