brucie <> wrote:
> the way i was looking at it was that the text entered still ends up
> as an attribute value of the element.
Nope. If I have, say, <input type="text" name="foo"> and you type "bar"
into the text input box corresponding to this element, as created by a
browser, then "bar" does not become any attribute value. If I had
<input type="text" name="foo" value="brucie">, the situation would be
the same; the value of the form field "foo" would be "bar", and
"foo=bar" would be inserted by the browser into the form data set, and
hence into the URL (when method="GET" is used), but this would not
change the element's attributes the least. (The value attribute would
still be _relevant_ too, if the form contains a reset button, which
shouldn't normally be there, but I digress.)
The input data, which becomes the value of a field, might be
accessible, via a Document Object Model, as a property of an element.
If it's called attribute in that context, that's misleading, but still
does not change the HTML element's attributes the least.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html