W3C home > Mailing lists > Public > www-validator@w3.org > January 2011

Re: [VE][html5] Form onsubmit Error: Invalid Return

From: Steven C. Gallafent <steve@compguy.com>
Date: Sat, 22 Jan 2011 10:47:00 -0800
Message-ID: <AANLkTimYS9KhofP8We52H9_i2tkJ_hVq-8aEOj07ZhvW@mail.gmail.com>
To: www-validator@w3.org
> I couldn't find in the HTML 5 spec where it talks about the form
> element's onsubmit event, but previously the typical form validation was
> onsubmit="return validationFunction()". However, this gives a validation
> error:
> /Line 8, Column 31/: Bad value return false for attribute onsubmit on
> element form: invalid return
> <form onsubmit="return false"*>*

I found an example under scripting:
http://www.w3.org/TR/html5/scripting-1.html. The example code on that
page is:

<form name="pricecalc" onsubmit="return false">

That example is marked as an error by the validator.
Received on Saturday, 22 January 2011 22:15:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:20 UTC