W3C home > Mailing lists > Public > public-html@w3.org > May 2016

Why is <input> empty?

From: James Cobban <webmaster@Jamescobban.net>
Date: Wed, 27 Apr 2016 18:39:00 -0400
To: public-html@w3.org
Message-ID: <57213F84.4000201@Jamescobban.net>
With almost all HTML tags the information that is actually displayed to 
the user by the browser comes from the content of the tag.  The only 
exception I can think of is <input> where the text displayed to the user 
comes from an attribute.  This results in some really exceptional 
behavior including that you cannot have an </input> end tag.  I 
appreciate that when HTML was first implemented that was the way the tag 
worked, but I do not understand why a quarter century later it still has 
that exceptional behavior. Why to I have to code <input type='input' 
value='12345'> when <input type='input'>12345</input> would be 
consistent with every other tag.  Related to this was the decision to 
create a new <button> tag, largely to permit specifying the displayed 
content of the element, rather than just permitting including the 
content with the <input type='button'> tag.
-- 

James Cobban webmaster@jamescobban.net 
<contactAuthor.php?subject=Email%20Message>
Web-site: www.jamescobban.net <http://www.jamescobban.net/>
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438
Received on Monday, 2 May 2016 13:16:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 13:16:43 UTC