W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Markup for Web Forms 2.0 that still requires discussion

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Tue, 06 Jul 2004 15:03:19 -0400
Message-ID: <40EAF777.8040904@earthlink.net>
Ian Hickson wrote:
> The point is that you _don't_ want it to be ignored. You want it to be
> ignored on WF2 UAs, and not in legacy UAs.
> So effectively it's a "conditional comment", except that the condition is
> "supports the <ignore> element" (or attribute, whichever).
> It is basically equivalent to <legacy value="Web Forms 2.0">. See:
>    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2004-July/000839.html

    Okay, how about a slightly different solution:

<input type="text" id="combo1" name="combo1" list="myList" />
<fallback id="combo1" attrib="list">
   <label for="myList"> or select from the list: </label>
   <select id="myList" name="combo1">
     <option>Item One</option>
     <option>Item Two</option>
     <option>Item Three</option>

    The <fallback> element would only render when the "list" attribute 
for element "combo1" is not correctly processed by the user agent. It 
would of course render when the |list| attribute isn't supported on the 
system, but it would also render if |list| had an invalid value. If the 
element referenced by |id| is itself unsupported, <fallback> will render 
in that situation as well.

    Any UA implementing <fallback> need not provide a mechanism for what 
standards it supports. It need only verify that it could not process a 
specific element and/or attribute. In this way, the user doesn't even 
have to know what standard the element or attribute belongs to.

    Is this sufficient?
Received on Tuesday, 6 July 2004 12:03:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC