Eric Bednarz wrote:
> "Jukka K. Korpela" <> writes:
>
>>> <form name = "form1"....>
>
> […]
>
>> That's not valid in HTML 4.01, which does not allow a name="..."
>> attribute for a form.
>
> I think you are confusing that with HTML 4.0, or maybe XHTML 1.0.
Indeed I was confusing HTML 4.01 with HTML 4.0 here. Yet, the name="..."
attribute is illogical for a <form> element, since this is not about naming
but identification. And the HTML 4.01 spec says:
"Note. This attribute has been included for backwards compatibility.
Applications should use the id attribute to identify elements."
(This applies to name="..." for <form>. Many people have misinterpreted that
it also applies to form fields, but in them, the attribute has a different
meaning and there it is indispensable.)
>> (Use id="..." instead and modify your Javascript
>> code accordingly.)
>
> What script? I didn’t see any.
Lost your crystal ball? I think it's easy to see that when people use <form
name="..." ...>, they do so for scripting. The HTML 4.01 spec says, in the
summary of attributes; "name of form for scripting".
--
Yucca,
http://www.cs.tut.fi/~jkorpela/