<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.whatwg.org/index.php?action=history&amp;feed=atom&amp;title=User%3AMatthew_Raymond%2Faltinput_element</id>
	<title>User:Matthew Raymond/altinput element - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.whatwg.org/index.php?action=history&amp;feed=atom&amp;title=User%3AMatthew_Raymond%2Faltinput_element"/>
	<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;action=history"/>
	<updated>2026-05-22T05:25:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=9478&amp;oldid=prev</id>
		<title>SamB: SamB moved page User:Matthew Raymond:altinput element to User:Matthew Raymond/altinput element: Make actual subpage</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=9478&amp;oldid=prev"/>
		<updated>2014-03-07T17:38:45Z</updated>

		<summary type="html">&lt;p&gt;SamB moved page &lt;a href=&quot;/wiki/User:Matthew_Raymond:altinput_element&quot; class=&quot;mw-redirect&quot; title=&quot;User:Matthew Raymond:altinput element&quot;&gt;User:Matthew Raymond:altinput element&lt;/a&gt; to &lt;a href=&quot;/wiki/User:Matthew_Raymond/altinput_element&quot; title=&quot;User:Matthew Raymond/altinput element&quot;&gt;User:Matthew Raymond/altinput element&lt;/a&gt;: Make actual subpage&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:38, 7 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>SamB</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=1951&amp;oldid=prev</id>
		<title>Michel Fortin: Reverted edits by Apeloverage (Talk); changed back to last version by Matthew Raymond</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=1951&amp;oldid=prev"/>
		<updated>2006-11-29T14:31:51Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/Apeloverage&quot; title=&quot;Special:Contributions/Apeloverage&quot;&gt;Apeloverage&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Apeloverage&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Apeloverage (page does not exist)&quot;&gt;Talk&lt;/a&gt;); changed back to last version by &lt;a href=&quot;/wiki/User:Matthew_Raymond&quot; title=&quot;User:Matthew Raymond&quot;&gt;Matthew Raymond&lt;/a&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;amp;diff=1951&amp;amp;oldid=1950&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Michel Fortin</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=1950&amp;oldid=prev</id>
		<title>Apeloverage at 00:17, 29 November 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=1950&amp;oldid=prev"/>
		<updated>2006-11-29T00:17:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;amp;diff=1950&amp;amp;oldid=805&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Apeloverage</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=805&amp;oldid=prev</id>
		<title>Matthew Raymond: New altinput element.</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=User:Matthew_Raymond/altinput_element&amp;diff=805&amp;oldid=prev"/>
		<updated>2005-07-06T01:17:46Z</updated>

		<summary type="html">&lt;p&gt;New altinput element.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;amp;lt;altinput&amp;amp;gt; element is intended to be a possible alternative to my earlier [[User:Matthew_Raymond:dataentry_element|&amp;amp;lt;dataentry&amp;amp;gt;]] element.&lt;br /&gt;
&lt;br /&gt;
The &amp;amp;lt;altinput&amp;amp;gt; element is a way of accomplishing the same goals as &amp;amp;lt;dataentry&amp;amp;gt; while ensuring that the  size of a form&amp;#039;s elements collection and the position of controls within it doesn&amp;#039;t change between legacy and WF2 browsers. Rather than the element itself being a form control, &amp;amp;lt;altinput&amp;amp;gt; instead performs the following:&lt;br /&gt;
&lt;br /&gt;
* If it has a control with an |id| attribute equal to its |for| attribute, then it attempts to assign its own |type| attribute value to the |type| of the specified control.&lt;br /&gt;
* If the |type| is not supported, then the &amp;amp;lt;altinput&amp;amp;gt; acts as nothing more than a &amp;amp;lt;span&amp;amp;gt;.&lt;br /&gt;
* However, if the |type| is supported, the control has its |type| changed and the entire contents of the &amp;amp;lt;altinput&amp;amp;gt; element, with the exception of specified control, are not be rendered.&lt;br /&gt;
&lt;br /&gt;
The result is that, in most cases, &amp;amp;lt;altinput&amp;amp;gt; acts almost exactly like &amp;amp;lt;dataentry&amp;amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a simple example for the three &amp;amp;lt;select&amp;amp;gt; scenario:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;altinput for=&amp;quot;d1&amp;quot; type=&amp;quot;date&amp;quot; value=&amp;quot;2005-02-09&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;d1&amp;quot; name=&amp;quot;d1&amp;quot; /&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;select name=&amp;quot;d1_day&amp;quot;&amp;amp;gt;&amp;amp;lt;!-- Options --&amp;amp;gt;&amp;amp;lt;/select&amp;amp;gt; /&lt;br /&gt;
  &amp;amp;lt;select name=&amp;quot;d1_month&amp;quot;&amp;amp;gt;&amp;amp;lt;!-- Options --&amp;amp;gt;&amp;amp;lt;/select&amp;amp;gt; /&lt;br /&gt;
  &amp;amp;lt;select name=&amp;quot;d1_year&amp;quot;&amp;amp;gt;&amp;amp;lt;!-- Options --&amp;amp;gt;&amp;amp;lt;/select&amp;amp;gt;&lt;br /&gt;
 &amp;amp;lt;/altinput&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s an example for users of jscalendar:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;altinput for=&amp;quot;sel1&amp;quot; type=&amp;quot;date&amp;quot;&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;sel1&amp;quot; name=&amp;quot;date1&amp;quot; size=&amp;quot;30&amp;quot; /&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;input type=&amp;quot;reset&amp;quot; value=&amp;quot; ... &amp;quot; onclick=&amp;quot;return showCalendar(&amp;#039;sel1&amp;#039;, &amp;#039;%Y-%m-%d&amp;#039;);&amp;quot;&amp;amp;gt;&lt;br /&gt;
  YYYY-MM-DD&lt;br /&gt;
 &amp;amp;lt;/altinput&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Pros==&lt;br /&gt;
&lt;br /&gt;
# The size of a form&amp;#039;s elements collection in Javascript never changes.&lt;br /&gt;
# The &amp;amp;lt;altinput&amp;amp;gt; element can allow for a far greater range of legacy fallback than &amp;amp;lt;input&amp;amp;gt; alone.&lt;br /&gt;
# Because the |type| is defined in an attribute, &amp;amp;lt;altinput&amp;amp;gt; can be used for input types in later specifications, or for vendor-specific input types.&lt;br /&gt;
# Because the elemnt requires a child form control, it encourages the use of &amp;amp;lt;input&amp;amp;gt; alone in simple cases where legacy fallback needs are minimal.&lt;br /&gt;
# The element is designed only to prevent the presentation of its child elements. It does not require user agents to delete contents from the DOM or suppress Javascript execution.&lt;br /&gt;
&lt;br /&gt;
==Cons==&lt;br /&gt;
&lt;br /&gt;
# It&amp;#039;s slightly more complicated to use than &amp;amp;lt;dataentry&amp;amp;gt;.&lt;br /&gt;
# In some situations, you must use a hidden &amp;amp;lt;input&amp;amp;gt; control as the target of the &amp;amp;lt;altinput&amp;amp;gt; element&amp;#039;s |for| attribute.&lt;br /&gt;
# It may still inherit some minor issues from &amp;amp;lt;dataentry&amp;amp;gt;.&lt;/div&gt;</summary>
		<author><name>Matthew Raymond</name></author>
	</entry>
</feed>