- From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Date: Sat, 10 Jan 2009 09:53:21 +0000
- To: Molte <molte93@gmail.com>
- CC: "Philip TAYLOR (Ret'd)" <P.Taylor@rhul.ac.uk>, www-html@w3.org
On 10/1/09 09:40, Molte wrote: > <submit submission="submit" > href="http://en.wikipedia.org/wiki/HTML"><label>Go!</label>< > /submit> > > You are also able to do make elements with double functionality in > today's HTML 4/XHTML 1 mark-up: > <input type="submit" > onclick="window.location='http://en.wikipedia.org/wiki/HTML';" > value="Go!" /> You can, yes, if you script them that way. However, in that case: 1. Processing is defined: the 'click' handler is executed first; then, if the default action is not cancelled, the associated form (if any) is submitted. The order is not defined for a element with two _default_ functions. 2. UAs don't have to provide a distinct mechanism for activating the 'click' handler as opposed to submitting the form. > But as Philips says that doesn't have to mean, it's well-formed. I don't think we'd want to make 'click' handlers non-conforming; it's clear enough what UAs should do with them. -- Benjamin Hawkes-Lewis
Received on Saturday, 10 January 2009 09:54:03 UTC