W3C home > Mailing lists > Public > www-html@w3.org > January 2003

Re: Form controls outside of form blocks

From: David Woolley <david@djwhome.demon.co.uk>
Date: Fri, 17 Jan 2003 07:15:26 +0000 (GMT)
Message-Id: <200301170715.h0H7FRl03405@djwhome.demon.co.uk>
To: www-html@w3.org

> I am puzzled by the use of form controls outside of form blocks? Is it

I think this restriction was relaxed to allow for scripting applications.
Unfortunately one, then popular browser, insisted on the presence of FORM
elements, resulting in such elements with missing mandatory parameters.
(Caution:  form controls used only for scripting cause accessibility problems
and require alternative access to the same functions.)

> The reason I ask, is that I am a newbie in javascript, and according to
> object models I have seen, form control objects are only accessible under a
> Form object. From that model, I concluded that the specification set in

They are accessibly by ID or name using the W3C object models.  I don't
believe the actual forms collection exists in that model.

> concrete a requirement for form controls to be within form blocks, as I
> assumed that javascript wouldn't place such a restriction on accessing any

You meant the document object model, not a specific scripting language.
"Javascript" is often misused to mean the DOM and browser object models.
Received on Friday, 17 January 2003 02:16:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT