- From: Shaddy Baddah <Shaddy_Baddah@hotmail.com>
- Date: Fri, 17 Jan 2003 13:37:48 +0800
- To: <www-html@w3.org>
Hi, 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 case: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=US-ASCII"> <title>Throw away example</title> </head> <body> <h1>Throw away example</h1> <p><input type="text"> </body> </html> 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, Shaddy
Received on Friday, 17 January 2003 00:41:19 UTC