W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2008

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 22 Jun 2008 22:46:29 +0200
Message-ID: <485EBA25.8010705@lachy.id.au>
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/
Received on Sunday, 22 June 2008 13:46:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:03 UTC