W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

HTML5 Conformance Checker: onforminput not allowed where it should be

From: Volker Ladewig <volker.ladewig@acando.de>
Date: Fri, 19 Apr 2013 09:41:35 +0000
To: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <DD4D9AD6573E1D47B9AA6DF07C56D45712E832EF@pham0030.resco.local>
Hi there,
I'm just starting with HTML5.
On page   http://www.w3.org/wiki/HTML/Elements/output
it is indirectly stated (by the given example) that the onforminput event handler is allowed within <output>.
Confirmed when using the "See also" link which links to   http://www.w3.org/wiki/HTML/Attributes/_Global
However, trying to use this example the validator returns an error.

Thanks and regards

example code:
<form onsubmit="return false">
  <input name="a" type="number" step="any"> +
  <input name="b" type="number" step="any"> =
  <output onforminput="value = a.valueAsNumber + b.valueAsNumber"></output>
*  [Error] Line 95, Column 66: Attribute onforminput not allowed on element output at this point.

  <output onforminput="value = a.valueAsNumber + b.valueAsNumber"></output>
Attributes for element output<http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-output-element>:
Global attributes<http://www.w3.org/html/wg/drafts/html/master/single-page.html#global-attributes>

Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Gesch?ftsf?hrer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022

(image/png attachment: image001.png)

Received on Friday, 19 April 2013 12:01:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC