[whatwg] additional key attribute in form field

carmen _ at whats-your.name
Sat Jul 7 08:43:54 PDT 2007

> > 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..

More information about the whatwg mailing list