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

Form controls outside of form blocks

From: Shaddy Baddah <Shaddy_Baddah@hotmail.com>
Date: Fri, 17 Jan 2003 13:37:48 +0800
To: <www-html@w3.org>
Message-ID: <OE58d28kIN4MmXKCnzN0000106d@hotmail.com>


I am puzzled by the use of form controls outside of form blocks? Is it
allowed? I have every reason to trust the strict DTD, and according to it,
%formctrl entity is an item of the %inline entity. This means that an
element of the %formctrl entity, say the INPUT element, can form the content
of a number of elements other than FORM, say a P (paragraph element). A run
of the following snippet through HTML validator confirms this to be the

    <meta http-equiv="content-type" content="text/html; charset=US-ASCII">
    <title>Throw away example</title>
    <h1>Throw away example</h1>
    <p><input type="text">

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
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
control on a html page. Can someone help me understand this all better?

Thanks in advance,
Received on Friday, 17 January 2003 00:41:19 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:20:48 UTC