[whatwg] <output> and onforminput

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