Re: Finding a Form Element from an Input
- From: Randy Webb <HikksNotAtHome@xxxxxxx>
- Date: Tue, 01 Aug 2006 18:20:58 -0400
Jim Land said the following on 8/1/2006 6:15 PM:
"Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx> wrote in news:1154452634.071759.301510@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
Jim Land (NO SPAM) wrote:_whenLasse Reichstein Nielsen <lrn@xxxxxxxxxx> wrote in
news:4pwyx2s5.fsf@xxxxxxxxxx:
the "name" and "id" attributes of a "form" element must beNo they don't.
identical in valid HTML.
7.5.2
The id attribute shares the same name space as the name attributeused for anchor names_.What about:-
http://www.w3.org/TR/html4/struct/global.html#adef-id
<quote = cite="http://www.w3.org/TR/html4/struct/links.html#h-12.2.3">
It is permissible to use both attributes to specify an element's unique
identifier for the following elements: A, APPLET, FORM, FRAME, IFRAME,
IMG, and MAP. When both attributes are used on a single element, their
values must be identical.
<quote>
- which explicitly stats that it is permissible to use both a NAME and
an ID on FORM elements, but that both must have the same value.
Well, yes, but your quotation appears as a note in the section on A tags.
But it clearly says it applies to A, APPLET, FORM, FRAME, IFRAME, IMG and MAP elements.
If this were really true, one would expect to find the details by examining each of the tags named.
Are you kidding? Duplicate it all over the place?
But in fact there is no such prohibition in the sections which define APPLET, FORM, FRAME, IFRAME, IMG, or MAP tags.
In fact, trying to validate a form element with a NAME attribute under HTML4.01 Strict gets an error from the validator:
Error Line 12 column 11: there is no attribute "NAME".
<form name="myForm" id="myID" action="somewhere">
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- Follow-Ups:
- Re: Finding a Form Element from an Input
- From: Michael Winter
- Re: Finding a Form Element from an Input
- References:
- Finding a Form Element from an Input
- From: kelvin . jones
- Re: Finding a Form Element from an Input
- From: Evertjan.
- Re: Finding a Form Element from an Input
- From: Lasse Reichstein Nielsen
- Re: Finding a Form Element from an Input
- From: Jim Land
- Re: Finding a Form Element from an Input
- From: Richard Cornford
- Re: Finding a Form Element from an Input
- From: Jim Land
- Finding a Form Element from an Input
- Prev by Date: Re: Finding a Form Element from an Input
- Next by Date: FAQ - What do I have to do before posting to clj?
- Previous by thread: Re: Finding a Form Element from an Input
- Next by thread: Re: Finding a Form Element from an Input
- Index(es):
Relevant Pages
|