- 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 Volker 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> </form> Error * [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> for<http://www.w3.org/html/wg/drafts/html/master/single-page.html#attr-output-for> form<http://www.w3.org/html/wg/drafts/html/master/single-page.html#attr-fae-form> name<http://www.w3.org/html/wg/drafts/html/master/single-page.html#attr-fe-name> ________________________________ Acando GmbH, Millerntorplatz 1, 20359 Hamburg, Germany | Gesch?ftsf?hrer: Guido Ahle | Amtsgericht Hamburg, HRB 76048 | Ust.Ident-Nr.:DE208833022
Attachments
- image/png attachment: image001.png
Received on Friday, 19 April 2013 12:01:18 UTC