2.1.68 [HTML5] Section 4.10.5.1.5 E-mail state (type=email)

V0152: The value sanitization algorithm is not run when the multiple attribute is removed

The specification states:

 4.10.5.1.5 E-mail state (type=email)
     ...
     How the E-mail state operates depends on whether the multiple attribute is specified 
     or not.
  
         When the multiple attribute is not specified on the element
           ...
             When the multiple attribute is removed, the user agent must run the value 
             sanitization algorithm.

All document modes (All versions)

The value sanitization algorithm is not run when the multiple attribute is removed.

V0153: Email addresses are not properly validated when the multiple attribute is specified

The specification states:

 4.10.5.1.5 E-mail state (type=email)
     ...
     How the E-mail state operates depends on whether the multiple attribute is specified 
     or not.
         ...
         When the multiple attribute is specified on the element
             ...
             Constraint validation: While the user interface describes a situation where 
             an individual value contains a "," (U+002C) or is representing input that the 
             user agent cannot convert to punycode, the control is suffering from bad 
             input.
  
             Whenever the user changes the element's values, the user agent must run the 
             following steps:
  
                 Let latest values be a copy of the element's values.
  
                 Strip leading and trailing whitespace from each value in latest values.
  
                 Let the element's value be the result of concatenating all the values in 
                 latest values, separating each value from the next by a single "," 
                 (U+002C) character, maintaining the list's order.
  
             The value attribute, if specified, must have a value that is a valid e-mail 
             address list.
  
             The value sanitization algorithm is as follows:
  
                 Split on commas the element's value, strip leading and trailing 
                 whitespace from each resulting token, if any, and let the element's 
                 values be the (possibly empty) resulting list of (possibly empty) tokens, 
                 maintaining the original order.
  
                 Let the element's value be the result of concatenating the element's 
                 values, separating each value from the next by a single "," (U+002C) 
                 character, maintaining the list's order.
  
             When the multiple attribute is set, the user agent must run the value 
             sanitization algorithm.
  
             Constraint validation: While the value of the element is not a valid e-mail 
             address list, the element is suffering from a type mismatch.

IE11 Mode, IE10 Mode, IE9 Mode, IE8 Mode, IE7 Mode, and IE5 (Quirks) Mode (All versions)

Email addresses are not properly validated when the multiple attribute is specified and there are multiple email addresses, each separated from the next by a single "," (U+002C) character.

Show: