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

[whatwg] additional key attribute in form field

From: carmen <_@whats-your.name>
Date: Sat, 7 Jul 2007 11:43:54 -0400
Message-ID: <20070707154353.GA1654@replic.net>
> > i wonder why there's still no a special 'key' attribute for every form
> > field implemented.

> 1. Your code is old-fashioned

old-fashioned or not, the reality is most popular web frameworks are using regex hacks on the name field to squish more information in there.

<input name="user[35][name]" value="Emmanuel">

it might be worth considering how they could use normal form fields without Javascript, and not require Regex in multiple places along the line. obviously another workaroudn besides regex is custom serialization and nonstandard attribute names of the input element - my preference using RDFa style predicates to describe what the field actually contains...


the idea is making the baseline form field not require hacks..
Received on Saturday, 7 July 2007 08:43:54 UTC

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