- From: MegaZone <megazone@livingston.com>
- Date: Thu, 5 Sep 1996 06:26:43 -0700 (PDT)
- To: www-html@w3.org
I'd like to request a simple change to forms - in 3.2 would be nice, though
Cougar is probably more likely:
Using Cougar as a basis this is the current form:
<!ATTLIST FORM
action %URL #REQUIRED -- server-side form handler --
method (%HTTP-Method) GET -- see HTTP specification --
enctype %Content-Type; "application/x-www-form-urlencoded"
onSubmit %script #IMPLIED -- intrinsic event --
>
I'd like to see this:
<!ATTLIST FORM
action %URL #REQUIRED -- server-side form handler --
method (%HTTP-Method) GET -- see HTTP specification --
enctype %Content-Type; "application/x-www-form-urlencoded"
onSubmit %script #IMPLIED -- intrinsic event --
name CDATA #IMPLIED
>
Why? For use with JavaScript. It is easier programaticaly to track
named elements. So say I way to write to a text box:
<FORM NAME=FOO>
<INPUT TYPE=TEXT NAME=BAR SIZE=30>
</FORM>
The scipt and use 'document.foo.bar.value' to target form 'foo' item 'bar'.
Without name, as it is, the first form in a document can be accessed as
'document.forms[0].bar.value' using the forms array, but this is clumsy and
subject to breaking if forms are reordered. The NAME on a FORM works today
in Mozilla, so it has merit for 3.2. But wider scripting support seems
withheld to Cougar.
-MZ
--
Livingston Enterprises - Chair, Department of Interstitial Affairs
Phone: 800-458-9966 510-426-0770 FAX: 510-426-8951 megazone@livingston.com
For support requests: support@livingston.com <http://www.livingston.com/>
Snail mail: 6920 Koll Center Parkway #220, Pleasanton, CA 94566
See me in person: Internet Expo, Boston, MA, October 16-17, Booth 422 ;-)
Received on Thursday, 5 September 1996 12:30:04 UTC