[whatwg] What should the value attribute be for multi-file upload controls in WF2?

Lachlan Hunt lachlan.hunt at lachy.id.au
Sun Jun 22 13:46:29 PDT 2008


Michael A. Puls II wrote:
> Anyway, the use case for .value is:
> 
> ...
>         <p>File to attach: <p>
>         <p><input type="file"
> onchange="document.getElementsByTagName('p')[0].innerHTML +=
> this.value;"></p>
> ...

How is that a use case?  Please explain why outputting the value of the 
control in an adjacent paragraph is useful at all and why authors would 
do it.  The value is visible in the control itself, so that seems 
unnecessary.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/



More information about the whatwg mailing list