W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] http://whatwg.org/demos/repeat-01/

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 02 Jun 2006 00:16:12 +1000
Message-ID: <447EF6AC.9080300@lachy.id.au>
Christian Schmidt wrote:
> The demo on http://whatwg.org/demos/repeat-01/ claims to have 
> "server-side fallback for legacy clients". But the fallback doesn't work 
> in IE6 - the form doesn't submit. Is this intended?

That's because IE has failed to default to type="submit" for unknown 
type attribute values.  i.e. In current browsers, <button type="add"> 
and <button type="remove"> is supposed to equivalent to <button 
type="submit">.  But in IE, it's equivalent to <button type="button">.

The functionality can still be provided using JavaScript, or 
alternatively implementing the buttons using conditional comments like this:

<!--[if !IE]>--><button type="add">Add (!IE)</button><!--<![endif]-->
<!--[if IE]><button type="submit">Add (IE)</button><![endif]-->

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Thursday, 1 June 2006 07:16:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC