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

[whatwg] <output> and onforminput

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 20 Jun 2004 17:17:23 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0406201714090.20313@dhalsim.dreamhost.com>
On Sun, 20 Jun 2004, Doron Rosenberg wrote:
>
> <form>
>  <p>
>   <input name="a" type="number" step="any" value="0"> *
>   <input name="b" type="number" step="any" value="0"> =
>   <output name="result" onforminput="value = a.value * b.value">0</output>
>  </p>
> </form>
>
> First of all, why isn't it "this.value = a.vlaue * b.value"?

The "this" is implied; see

   http://whatwg.org/specs/web-forms/current-work/#scopeResolution


> I am assuming that the contents on onforminput are ECMAScript (I can't
> find anywhere in the spec where it defines that), is that right?

This is unchanged from HTML4. See:

   http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2.1

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 20 June 2004 10:17:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:17 UTC