W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

HTMLInputElement, type attribute (errata?)

From: Adrian Cotter <adrian.cotter@frogdesign.com>
Date: Thu, 10 Aug 2000 20:55:49 -0400 (EDT)
Message-ID: <DFDD5BF9CD68D411ABCB00B0D0495DC30549D3@frogsfex.frogdesign.com>
To: "'www-dom@w3.org'" <www-dom@w3.org>
Have a question regarding

Interface HTMLInputElement 
readonly attribute DOMString type;
http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html#ID-882764350

it seems strange that this attribute is read only. how is able to create a
"password" or "hidden" field as opposed to the "text" field, when this is
read only?

if I do the following I would obviously get an error (as I do in Mac IE 5):
	var formElement = document.createElement("INPUT");
	formElement.setAttribute("type","hidden");

I'm I missing something, or is there some other way to create a hidden or
password (or button,etc) element?

thanks

adrian cotter
developer
frogdesign
Received on Friday, 11 August 2000 08:54:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT