Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 18ef228494
Fetching contributors…

Cannot retrieve contributors at this time

377 lines (354 sloc) 30.2 kB
<!doctype html>
<html id="input.search">
<head>
<meta charset=utf-8>
<link rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/W3C-WD" type="text/css">
<title> input type=search &#8211; search field (NEW) - HTML5</title>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="prev" href="input.url.html" title="input type=url">
<link rel="next" href="input.tel.html" title="input type=tel">
<link rel="section" href="Overview.html">
<link rel="contents" href="Overview.html#toc">
<link rel="index" href="index-of-terms.html">
</head>
<body class="chunk" onload="initDfn()">
<div id="jump-indexes" class="no-number no-toc"><div id="jumpIndexA-button" role="button" aria-haspopup="true" tabindex="0">jump</div></div>
<h2 class="chunkpagetitle"><a href="Overview.html#toc">HTML: The Markup Language</a></h2>
<div class="nav">
<span class="nav-prev"><a href="input.url.html">&#171; input type=url</a></span>
<span class="nav-next"><a href="input.tel.html">input type=tel &#187;</a></span>
</div>
<div class="no-number elementpage section">
<h2 class="element-head">
<span class="spec-link"><a title="Read about the input element in the HTML5 spec" href="http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#text-type-text-state-and-search-state-type-search">&#9432;</a></span> <span class="element">input</span> <span class="elem-qualifier"> <span class="attribute-name">type</span>=<span class="equals-value">search</span></span> &#8211; <span class="shortdesc">search field</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span> <a class="hash" href="#input.search">#</a> <a class="toc-bak" href="Overview.html#input.search-toc">T</a>
</h2>
<div id="input.search-longdesc" class="longdesc">
<p>The
<span class="element">input</span>
element
with a <span class="attribute">type</span> attribute whose
value is "<code>search</code>" represents
a one-line plain-text edit control for entering one or more
search terms.</p>
</div>
<div class="no-number no-toc" id="input.search-content-model">
<h2 class="element-subhead">Permitted contents <a class="hash" href="#input.search-content-model">#</a>
</h2>
<div class="content-models">
<div id="input.search-mdls">
<p class="elem-mdl"><span>empty (<span><a href="syntax.html#void-element" id="void-element_xref65">void element</a></span>)</span></p>
</div>
</div>
</div>
<div class="no-number no-toc" id="input.search-attributes">
<h2 class="element-subhead">Permitted attributes <a class="hash" href="#input.search-attributes">#</a>
</h2>
<div class="attr-content-models">
<p><span class="pattern" id="input.search.attrs"><a class="ref" href="global-attributes.html">global attributes</a>
<span class="postfix intermixed">&amp;</span> <a class="#common-form.attrs.name" title="input.search.attrs.name" href="input.search.html#input.search.attrs.name">name</a>
<span class="postfix intermixed">&amp;</span> <a class="#common-form.attrs.disabled" title="input.search.attrs.disabled" href="input.search.html#input.search.attrs.disabled">disabled</a>
<span class="postfix intermixed">&amp;</span> <a class="#common-form.attrs.form" title="input.search.attrs.form" href="input.search.html#input.search.attrs.form">form</a>
<span class="postfix intermixed">&amp;</span> <a class="ref" href="input.search.html#input.search.attrs.type" title="input.search.attrs.type">type</a><span class="postfix required" title="REQUIRED">&#9733;</span>
<span class="postfix intermixed">&amp;</span> <a class="#input.attrs.autocomplete" title="input.search.attrs.autocomplete" href="input.search.html#input.search.attrs.autocomplete">autocomplete</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.autofocus" title="input.search.attrs.autofocus" href="input.search.html#input.search.attrs.autofocus">autofocus</a>
<span class="postfix intermixed">&amp;</span> <a class="#input.attrs.list" title="input.search.attrs.list" href="input.search.html#input.search.attrs.list">list</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.maxlength" title="input.search.attrs.maxlength" href="input.search.html#input.search.attrs.maxlength">maxlength</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.pattern" title="input.search.attrs.pattern" href="input.search.html#input.search.attrs.pattern">pattern</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.readonly" title="input.search.attrs.readonly" href="input.search.html#input.search.attrs.readonly">readonly</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.required" title="input.search.attrs.required" href="input.search.html#input.search.attrs.required">required</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.size" title="input.search.attrs.size" href="input.search.html#input.search.attrs.size">size</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.placeholder" title="input.search.attrs.placeholder" href="input.search.html#input.search.attrs.placeholder">placeholder</a>
<span class="postfix intermixed">&amp;</span> <a class="#shared-form.attrs.dirname" title="input.search.attrs.dirname" href="input.search.html#input.search.attrs.dirname">dirname</a>
<span class="postfix intermixed">&amp;</span> <a class="ref" href="input.search.html#input.search.attrs.value" title="input.search.attrs.value">value</a> </span></p>
</div>
<dl class="attr-defs">
<dt>
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/global-attributes.html#global-attributes">&#9432;</a>
<a class="attribute-name" title="global-attributes" href="global-attributes.html">global attributes</a>
</dt>
<dd>Any attributes permitted globally.</dd>
<dt id="input.search.attrs.name" title="input.search.attrs.name">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#attr-fe-name">&#9432;</a>
<span class="attribute-name">name</span> = <span class="attr-values"><a href="datatypes.html#data-string" id="data-string_xref48">string</a></span>
<a class="hash" href="input.search.html#input.search.attrs.name">#</a>
</dt>
<dd>The name part of the name/value pair associated with this
element for the purposes of form submission.</dd>
<dt id="input.search.attrs.disabled" title="input.search.attrs.disabled">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#attr-fe-disabled">&#9432;</a>
<span class="attribute-name">disabled</span> = <span class="attr-values">
"disabled"
<span class="postfix or">or</span> "" <span class="attr-qualifier">(empty string)</span> <span class="postfix or">or</span> <a href="syntax.html#syntax-attr-empty" id="syntax-attr-empty_xref96">empty</a>
</span>
<a class="hash" href="input.search.html#input.search.attrs.disabled">#</a>
</dt>
<dd>Specifies that the element represents a disabled
control.</dd>
<dt id="input.search.attrs.form" title="input.search.attrs.form">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/association-of-controls-and-forms.html#attr-fae-form">&#9432;</a>
<span class="attribute-name">form</span> = <span class="attr-values">
<a href="datatypes.html#common.data.idref" id="common.data.idref_xref36">ID reference</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.form">#</a>
</dt>
<dd>The value of the
<span class="attribute">id</span>
attribute on the
<a href="form.html#form">form</a>
with which to associate the element.</dd>
<dt id="input.search.attrs.type" title="input.search.attrs.type">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#text-type-text-state-and-search-state-type-search">&#9432;</a>
<span class="attribute-name">type</span> = <span class="attr-values"> "search" </span>
<a class="hash" href="input.search.html#input.search.attrs.type">#</a>
</dt>
<dd>Specifies that its
<span class="element">input</span>
element is
a one-line plain-text edit control for entering one or
more search terms.</dd>
<dt id="input.search.attrs.autocomplete" title="input.search.attrs.autocomplete">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#attr-input-autocomplete">&#9432;</a>
<span class="attribute-name">autocomplete</span> = <span class="attr-values">
"on" <span class="postfix or">or</span> "off"
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.autocomplete">#</a>
</dt>
<dd>Specifies whether the element represents an input
control for which a UA is meant to store the value entered
by the user (so that the UA can prefill the form
later).</dd>
<dt id="input.search.attrs.autofocus" title="input.search.attrs.autofocus">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#attr-fe-autofocus">&#9432;</a>
<span class="attribute-name">autofocus</span> = <span class="attr-values">
"autofocus"
<span class="postfix or">or</span> "" <span class="attr-qualifier">(empty string)</span> <span class="postfix or">or</span> <a href="syntax.html#syntax-attr-empty" id="syntax-attr-empty_xref97">empty</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.autofocus">#</a>
</dt>
<dd>Specifies that the element represents a control to which
a UA is meant to give focus as soon as the document is
loaded.</dd>
<dt id="input.search.attrs.list" title="input.search.attrs.list">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#attr-input-list">&#9432;</a>
<span class="attribute-name">list</span> = <span class="attr-values">
<a href="datatypes.html#common.data.idref" id="common.data.idref_xref37">ID reference</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.list">#</a>
</dt>
<dd>The value of the
<span class="attribute">id</span>
attribute on the
<a href="datalist.html#datalist" class="element">datalist</a>
with which to associate the element.</dd>
<dt id="input.search.attrs.maxlength" title="input.search.attrs.maxlength">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-maxlength-attribute">&#9432;</a>
<span class="attribute-name">maxlength</span> = <span class="attr-values">
<a href="datatypes.html#common.data.integer.non-negative" id="common.data.integer.non-negative_xref16">non-negative integer</a>
</span>
<a class="hash" href="input.search.html#input.search.attrs.maxlength">#</a>
</dt>
<dd>The maximum allowed value length of the element.</dd>
<dt id="input.search.attrs.pattern" title="input.search.attrs.pattern">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-pattern-attribute">&#9432;</a>
<span class="attribute-name">pattern</span> = <span class="attr-values">
<a class="ref" href="datatypes.html#form.data.pattern" title="form.data.pattern" id="form.data.pattern_xref5">pattern</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.pattern">#</a>
</dt>
<dd>Specifies a regular expression against which a UA is
meant to check the value of the control represented by its
element.</dd>
<dd><div class="datatype-desc">A regular expression that
<a href="terminology.html#must-requirement" id="must-requirement_xref69">must</a>
match the JavaScript
<var class="defined-elsewhere">Pattern</var>
production as specified in
<a href="references.html#refsECMA262" id="refsECMA262_xref5">[ECMA 262]</a>.</div></dd>
<dt id="input.search.attrs.readonly" title="input.search.attrs.readonly">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-readonly-attribute">&#9432;</a>
<span class="attribute-name">readonly</span> = <span class="attr-values">
"readonly"
<span class="postfix or">or</span> "" <span class="attr-qualifier">(empty string)</span> <span class="postfix or">or</span> <a href="syntax.html#syntax-attr-empty" id="syntax-attr-empty_xref98">empty</a>
</span>
<a class="hash" href="input.search.html#input.search.attrs.readonly">#</a>
</dt>
<dd>Specifies that element represents a control whose value
is not meant to be edited.</dd>
<dt id="input.search.attrs.required" title="input.search.attrs.required">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-required-attribute">&#9432;</a>
<span class="attribute-name">required</span> = <span class="attr-values">
"required"
<span class="postfix or">or</span> "" <span class="attr-qualifier">(empty string)</span> <span class="postfix or">or</span> <a href="syntax.html#syntax-attr-empty" id="syntax-attr-empty_xref99">empty</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.required">#</a>
</dt>
<dd>Specifies that the element is a required part of form
submission.</dd>
<dt id="input.search.attrs.size" title="input.search.attrs.size">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-size-attribute">&#9432;</a>
<span class="attribute-name">size</span> = <span class="attr-values">
<a href="datatypes.html#common.data.integer.positive" id="common.data.integer.positive_xref10">positive integer</a>
</span>
<a class="hash" href="input.search.html#input.search.attrs.size">#</a>
</dt>
<dd>The number of options meant to be shown by the control
represented by its element.</dd>
<dt id="input.search.attrs.placeholder" title="input.search.attrs.placeholder">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-placeholder-attribute">&#9432;</a>
<span class="attribute-name">placeholder</span> = <span class="attr-values">
<a href="datatypes.html#form.data.stringwithoutlinebreaks" id="form.data.stringwithoutlinebreaks_xref8">string without line breaks</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.placeholder">#</a>
</dt>
<dd>A short hint (one word or a short phrase) intended to
aid the user when entering data into the control
represented by its element.</dd>
<dd><div class="datatype-desc">
Any string that contains no line feed (U+000A, &#8220;LF&#8221;) or carriage
return (U+000D, &#8220;CR&#8221;) characters.
</div></dd>
<dt id="input.search.attrs.dirname" title="input.search.attrs.dirname">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/common-input-element-attributes.html#the-dirname-attribute">&#9432;</a>
<span class="attribute-name">dirname</span> = <span class="attr-values">
<a href="datatypes.html#form.data.nonemptystring" id="form.data.nonemptystring_xref4">non-empty string</a>
</span> <span class="new-feature" title="This markup feature is newly added in HTML5.">NEW</span>
<a class="hash" href="input.search.html#input.search.attrs.dirname">#</a>
</dt>
<dd>Enables submission of a value for the directionality of the
element, and gives the name of the field that contains that
value.</dd>
<dd><div class="datatype-desc">
Any string that is not empty.
</div></dd>
<dt id="input.search.attrs.value" title="input.search.attrs.value">
<a class="spec-link" title="Read about this attribute in the HTML5 spec" href="http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#text-type-text-state-and-search-state-type-search">&#9432;</a>
<span class="attribute-name">value</span> = <span class="attr-values">
<a href="datatypes.html#form.data.stringwithoutlinebreaks" id="form.data.stringwithoutlinebreaks_xref9">string without line breaks</a>
</span>
<a class="hash" href="input.search.html#input.search.attrs.value">#</a>
</dt>
<dd>Specifies a value for this
<span class="element">input</span>
element.</dd>
<dd><div class="datatype-desc">
Any string that contains no line feed (U+000A, &#8220;LF&#8221;) or carriage
return (U+000D, &#8220;CR&#8221;) characters.
</div></dd>
</dl>
</div>
<div class="no-number no-toc" id="input.search-constraints">
<h2 class="element-subhead">Additional constraints and admonitions <a class="hash" href="#input.search-constraints">#</a>
</h2>
<ul class="assertions">
<li><span>
The interactive element <span class="element">input</span> must not
appear as a descendant of the <span class="element">a</span> element.
</span></li>
<li><span>
The interactive element <span class="element">input</span> must not
appear as a descendant of the <span class="element">button</span> element.
</span></li>
<li><span>
Any <span class="element">input</span> element descendant of a <span class="element">label</span> element
with a <span class="attribute">for</span> attribute must have an
ID value that matches that <span class="attribute">for</span> attribute.
</span></li>
<li><span>
The <span class="attribute">list</span> attribute of the <span class="element">input</span> element must refer to a <span class="element">datalist</span> element.
</span></li>
<li><span>
Element <span class="element">input</span> with attribute <span class="attribute">type</span>
whose value is &#8220;button&#8221; must have non-empty attribute <span class="attribute">value</span>.
</span></li>
<li><span>
The <span class="attribute">usemap</span> attribute on the <span class="element">input</span> element is obsolete.
Use the <span class="element">img</span> element instead of the <span class="element">input</span> element for image maps.
</span></li>
<li><span>
The <span class="attribute">align</span> attribute on the <span class="element">input</span> element is obsolete.
<a href="http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes">Use CSS instead</a>.
</span></li>
</ul>
</div>
<div class="no-number no-toc tag-omission" id="input.search-tags">
<h2 class="element-subhead">Tag omission <a class="hash" href="#input.search-tags">#</a>
</h2>
<p>The
<span class="element">input</span>
element is a <a href="syntax.html#void-element" id="void-element_xref66">void element</a>.
An <span class="element">input</span>
element must have a
<span title="syntax-start-tag">start tag</span>
but must not have an
<span title="syntax-end-tag">end tag</span>.</p>
</div>
<div class="no-number no-toc" id="input.search-context">
<h2 class="element-subhead">Permitted parent elements <a class="hash" href="#input.search-context">#</a>
</h2>
<p class="permitted-parents"><span class="context-mdl"><span>any element that can contain
<a href="common-models.html#common.elem.phrasing">phrasing elements</a></span></span></p>
</div>
<div class="no-number no-toc interface" id="input.search-interface">
<h2 class="element-subhead">DOM interface <a class="hash" href="#input.search-interface">#</a>
</h2>
<pre class="idl">interface <b>HTMLInputElement</b> : <a href="http://dev.w3.org/html5/spec/elements.html#htmlelement" title="">HTMLElement</a> {
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-accept" title="dom-input-accept">accept</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-alt" title="dom-input-alt">alt</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-autocomplete" title="dom-input-autocomplete">autocomplete</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-defaultchecked" title="dom-input-defaultChecked">defaultChecked</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-checked" title="dom-input-checked">checked</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-dirname" title="dom-input-dirName">dirName</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
readonly attribute <a href="http://dev.w3.org/html5/spec/the-form-element.html#htmlformelement" title="">HTMLFormElement</a>? <a href="http://dev.w3.org/html5/spec/association-of-controls-and-forms.html#dom-fae-form" title="dom-fae-form">form</a>;
readonly attribute <a href="http://dev.w3.org/html5/spec/infrastructure.html#filelist" title="">FileList</a>? <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-files" title="dom-input-files">files</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fs-formaction" title="dom-fs-formAction">formAction</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fs-formenctype" title="dom-fs-formEnctype">formEnctype</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fs-formmethod" title="dom-fs-formMethod">formMethod</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fs-formnovalidate" title="dom-fs-formNoValidate">formNoValidate</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fs-formtarget" title="dom-fs-formTarget">formTarget</a>;
attribute unsigned long <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-height" title="dom-input-height">height</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-indeterminate" title="dom-input-indeterminate">indeterminate</a>;
readonly attribute <a href="http://dev.w3.org/html5/spec/elements.html#htmlelement" title="">HTMLElement</a>? <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-list" title="dom-input-list">list</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-max" title="dom-input-max">max</a>;
attribute long <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-maxlength" title="dom-input-maxLength">maxLength</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-min" title="dom-input-min">min</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-multiple" title="dom-input-multiple">multiple</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/attributes-common-to-form-controls.html#dom-fe-name" title="dom-fe-name">name</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-pattern" title="dom-input-pattern">pattern</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-placeholder" title="dom-input-placeholder">placeholder</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-readonly" title="dom-input-readOnly">readOnly</a>;
attribute boolean <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-required" title="dom-input-required">required</a>;
attribute unsigned long <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-size" title="dom-input-size">size</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-src" title="dom-input-src">src</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-step" title="dom-input-step">step</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-type" title="dom-input-type">type</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-defaultvalue" title="dom-input-defaultValue">defaultValue</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-value" title="dom-input-value">value</a>;
attribute <span>Date</span>? <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-valueasdate" title="dom-input-valueAsDate">valueAsDate</a>;
attribute double <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-valueasnumber" title="dom-input-valueAsNumber">valueAsNumber</a>;
attribute unsigned long <a href="http://dev.w3.org/html5/spec/the-input-element.html#dom-input-width" title="dom-input-width">width</a>;
void <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-stepup" title="dom-input-stepUp">stepUp</a>(optional long n);
void <a href="http://dev.w3.org/html5/spec/common-input-element-apis.html#dom-input-stepdown" title="dom-input-stepDown">stepDown</a>(optional long n);
readonly attribute boolean <a href="http://dev.w3.org/html5/spec/constraints.html#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
readonly attribute <a href="http://dev.w3.org/html5/spec/constraints.html#validitystate" title="">ValidityState</a> <a href="http://dev.w3.org/html5/spec/constraints.html#dom-cva-validity" title="dom-cva-validity">validity</a>;
readonly attribute DOMString <a href="http://dev.w3.org/html5/spec/constraints.html#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
boolean <a href="http://dev.w3.org/html5/spec/constraints.html#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
void <a href="http://dev.w3.org/html5/spec/constraints.html#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(DOMString error);
readonly attribute <a href="http://dev.w3.org/html5/spec/infrastructure.html#nodelist" title="">NodeList</a> <a href="http://dev.w3.org/html5/spec/the-label-element.html#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
void <a href="http://dev.w3.org/html5/spec/textFieldSelection.html#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
attribute unsigned long <a href="http://dev.w3.org/html5/spec/textFieldSelection.html#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
attribute unsigned long <a href="http://dev.w3.org/html5/spec/textFieldSelection.html#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
attribute DOMString <a href="http://dev.w3.org/html5/spec/textFieldSelection.html#dom-textarea-input-selectiondirection" title="dom-textarea/input-selectionDirection">selectionDirection</a>;
void <a href="http://dev.w3.org/html5/spec/textFieldSelection.html#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
};</pre>
</div>
</div>
<hr class="footerbreak">
<div class="nav">
<span class="nav-prev"><a href="input.url.html">&#171; input type=url</a></span>
<span class="nav-next"><a href="input.tel.html">input type=tel &#187;</a></span>
</div>
<script src="js/jump-indexes.js" type="text/javascript"></script><script src="js/dfn.js" type="text/javascript"></script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.