HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
5957Explicitly allow UAs to use <input type=file accept> intelligently.2011-03-18 03:57
@@ -48366,20 +48366,28 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
    <dd>Indicates that files of the specified type are accepted.</dd>
 
   </dl>
 
   <p>The tokens must not be <span>ASCII case-insensitive</span>
   matches for any of the other tokens (i.e. duplicates are not
   allowed). <span class="impl">To obtain the list of tokens from the
   attribute, the user agent must <span title="split a string on
   commas">split the attribute value on commas</span>.</span></p>
 
+  <p>User agents may use the value of this attribute to display
+  appropriate a more appropriate user interface than a generic file
+  picker. For instance, given the value <code title="">image/*</code>,
+  a user agent could offer the user the option of using a local camera
+  or selecting a photograph from their photo collection; given the
+  value <code title="">image/*</code>, a user agent could offer the
+  user the option of recording a clip using a headset microphone.</p>
+
   <div class="impl">
 
   <p>User agents should prevent the user from selecting files that are
   not accepted by one (or more) of these tokens.</p>
 
   </div>
 
   <div class="example">
 
    <p>For historical reasons, the <code

|