Annotation of html5/spec-author-view/the-button-element.html, revision 1.9

1.1       mike        1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
                      2: <!DOCTYPE html>
1.5       mike        3: <!-- when publishing, change bits marked ZZZ --><html lang="en-US-x-Hixie" class="split chapter"><head><title>4.10.6 The button element &#8212; HTML5 (Author Edition)</title><script src="link-fixup.js"></script><link href="whatwg.css" rel="stylesheet"><style type="text/css">
1.1       mike        4:    pre { margin-left: 2em; white-space: pre-wrap; }
                      5:    h2 { margin: 3em 0 1em 0; }
                      6:    h3 { margin: 2.5em 0 1em 0; }
                      7:    h4 { margin: 2.5em 0 0.75em 0; }
                      8:    h5, h6 { margin: 2.5em 0 1em; }
                      9:    h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
                     10:    h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
                     11:    p { margin: 1em 0; }
                     12:    hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
                     13:    dl, dd { margin-top: 0; margin-bottom: 0; }
                     14:    dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
                     15:    dt + dt { margin-top: 0; }
                     16:    dd dt { margin-top: 0.25em; margin-bottom: 0; }
                     17:    dd p { margin-top: 0; }
                     18:    dd dl + p { margin-top: 1em; }
                     19:    dd table + p { margin-top: 1em; }
                     20:    p + * > li, dd li { margin: 1em 0; }
                     21:    dt, dfn { font-weight: bold; font-style: normal; }
                     22:    dt dfn { font-style: italic; }
                     23:    pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
                     24:    pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
                     25:    pre em { font-weight: bolder; font-style: normal; }
                     26:    @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
                     27:    var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
                     28:    table { border-collapse: collapse; border-style: hidden hidden none hidden; }
                     29:    table thead { border-bottom: solid; }
                     30:    table tbody th:first-child { border-left: solid; }
                     31:    table tbody th { text-align: left; }
                     32:    table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
                     33:    blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
                     34: 
                     35:    .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
                     36:    .matrix, .matrix td { border: none; text-align: right; }
                     37:    .matrix { margin-left: 2em; }
                     38:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                     39:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                     40:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                     41: 
                     42:    .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
                     43:    img.extra { float: right; }
                     44:    pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; }
                     45:    pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
                     46:    pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
                     47:    pre.css:first-line { color: #AAAA50; }
                     48:    dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #EEFFEE; }
                     49:    hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
                     50:    dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
                     51:    dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
                     52:    dl.domintro dd p { margin: 0.5em 0; }
                     53:    dl.switch { padding-left: 2em; }
                     54:    dl.switch > dt { text-indent: -1.5em; }
                     55:    dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
                     56:    dl.triple { padding: 0 0 0 1em; }
                     57:    dl.triple dt, dl.triple dd { margin: 0; display: inline }
                     58:    dl.triple dt:after { content: ':'; }
                     59:    dl.triple dd:after { content: '\A'; white-space: pre; }
                     60:    .diff-old { text-decoration: line-through; color: silver; background: transparent; }
                     61:    .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
                     62:    a .diff-new { border-bottom: 1px blue solid; }
                     63: 
                     64:    h2 { page-break-before: always; }
                     65:    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
                     66:    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
                     67: 
                     68:    p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
                     69: 
                     70:    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
                     71:    div.head p { margin: 0; }
                     72:    div.head h1 { margin: 0; }
                     73:    div.head .logo { float: right; margin: 0 1em; }
                     74:    div.head .logo img { border: none } /* remove border from top image */
                     75:    div.head dl { margin: 1em 0; }
                     76:    div.head p.copyright, div.head p.alt { font-size: x-small; font-style: oblique; margin: 0; }
                     77: 
                     78:    body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
                     79:    body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
                     80:    body > .toc > li > * { margin-bottom: 0.5em; }
                     81:    body > .toc > li > * > li > * { margin-bottom: 0.25em; }
                     82:    .toc, .toc li { list-style: none; }
                     83: 
                     84:    .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
                     85:    .brief li { margin: 0; padding: 0; }
                     86:    .brief li p { margin: 0; padding: 0; }
                     87: 
                     88:    .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
                     89:    .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
                     90:    .category-list li { display: inline; }
                     91:    .category-list li:not(:last-child)::after { content: ', '; }
                     92:    .category-list li > span, .category-list li > a { text-transform: lowercase; }
                     93:    .category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */
                     94: 
                     95:    .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
                     96:    .XXX > :first-child { margin-top: 0; }
                     97:    p .XXX { line-height: 3em; }
                     98:    .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
                     99:    .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
                    100:    .annotation :link, .annotation :visited { color: inherit; }
                    101:    .annotation :link:hover, .annotation :visited:hover { background: transparent; }
                    102:    .annotation span { border: none ! important; }
                    103:    .note { color: green; background: transparent; font-family: sans-serif; }
                    104:    .warning { color: red; background: transparent; }
                    105:    .note, .warning { font-weight: bolder; font-style: italic; }
                    106:    p.note, div.note { padding: 0.5em 2em; }
                    107:    span.note { padding: 0 2em; }
                    108:    .note p:first-child, .warning p:first-child { margin-top: 0; }
                    109:    .note p:last-child, .warning p:last-child { margin-bottom: 0; }
                    110:    .warning:before { font-style: normal; }
                    111:    p.note:before { content: 'Note: '; }
                    112:    p.warning:before { content: '\26A0 Warning! '; }
                    113: 
                    114:    .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
                    115:    .bookkeeping { font-size: 0.8em; margin: 2em 0; }
                    116:    .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
                    117: 
                    118:    h4 { position: relative; z-index: 3; }
                    119:    h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
                    120:    .element {
                    121:      background: #EEEEFF;
                    122:      color: black;
                    123:      margin: 0 0 1em 0.15em;
                    124:      padding: 0 1em 0.25em 0.75em;
                    125:      border-left: solid #9999FF 0.25em;
                    126:      position: relative;
                    127:      z-index: 1;
                    128:    }
                    129:    .element:before {
                    130:      position: absolute;
                    131:      z-index: 2;
                    132:      top: 0;
                    133:      left: -1.15em;
                    134:      height: 2em;
                    135:      width: 0.9em;
                    136:      background: #EEEEFF;
                    137:      content: ' ';
                    138:      border-style: none none solid solid;
                    139:      border-color: #9999FF;
                    140:      border-width: 0.25em;
                    141:    }
                    142: 
                    143:    .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
                    144:    td > .example:only-child { margin: 0 0 0 0.1em; }
                    145: 
                    146:    .tall-and-narrow {
                    147:      font-size: 0.6em;
                    148:      column-width: 25em;
                    149:      column-gap: 1em;
                    150:      -moz-column-width: 25em;
                    151:      -moz-column-gap: 1em;
                    152:      -webkit-column-width: 25em;
                    153:      -webkit-column-gap: 1em;
                    154:    }
                    155: 
                    156:    ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
                    157:    ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
                    158:    ul.domTree li li { list-style: none; }
                    159:    ul.domTree li:first-child::before { position: absolute; top: 0; height: 0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
                    160:    ul.domTree li:not(:last-child)::after { position: absolute; top: 0; bottom: -0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
                    161:    ul.domTree span { font-style: italic; font-family: serif; }
                    162:    ul.domTree .t1 code { color: purple; font-weight: bold; }
                    163:    ul.domTree .t2 { font-style: normal; font-family: monospace; }
                    164:    ul.domTree .t2 .name { color: black; font-weight: bold; }
                    165:    ul.domTree .t2 .value { color: blue; font-weight: normal; }
                    166:    ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
                    167:    ul.domTree .t7 code, .domTree .t8 code { color: green; }
                    168:    ul.domTree .t10 code { color: teal; }
                    169: 
                    170:    #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
                    171:    #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
                    172:    #configUI p label { display: block; }
                    173:    #configUI #updateUI, #configUI .loginUI { text-align: center; }
                    174:    #configUI input[type=button] { display: block; margin: auto; }
                    175:   </style><style type="text/css">
                    176: 
                    177:    .applies thead th > * { display: block; }
                    178:    .applies thead code { display: block; }
                    179:    .applies tbody th { whitespace: nowrap; }
                    180:    .applies td { text-align: center; }
                    181:    .applies .yes { background: yellow; }
                    182: 
                    183:    .matrix, .matrix td { border: none; text-align: right; }
                    184:    .matrix { margin-left: 2em; }
                    185: 
                    186:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                    187:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                    188:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                    189: 
                    190:    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
                    191:    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
                    192:    #table-example-1 caption { padding-bottom: 0.5em; }
                    193:    #table-example-1 thead, #table-example-1 tbody { border: none; }
                    194:    #table-example-1 th, #table-example-1 td { border: solid thin; }
                    195:    #table-example-1 th { font-weight: normal; }
                    196:    #table-example-1 td { border-style: none solid; vertical-align: top; }
                    197:    #table-example-1 th { padding: 0.5em; vertical-align: middle; text-align: center; }
                    198:    #table-example-1 tbody tr:first-child td { padding-top: 0.5em; }
                    199:    #table-example-1 tbody tr:last-child td { padding-bottom: 1.5em; }
                    200:    #table-example-1 tbody td:first-child { padding-left: 2.5em; padding-right: 0; width: 9em; }
                    201:    #table-example-1 tbody td:first-child::after { content: leader(". "); }
                    202:    #table-example-1 tbody td { padding-left: 2em; padding-right: 2em; }
                    203:    #table-example-1 tbody td:first-child + td { width: 10em; }
                    204:    #table-example-1 tbody td:first-child + td ~ td { width: 2.5em; }
                    205:    #table-example-1 tbody td:first-child + td + td + td ~ td { width: 1.25em; }
                    206: 
                    207:    .apple-table-examples { border: none; border-collapse: separate; border-spacing: 1.5em 0em; width: 40em; margin-left: 3em; }
                    208:    .apple-table-examples * { font-family: "Times", serif; }
                    209:    .apple-table-examples td, .apple-table-examples th { border: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
                    210:    .apple-table-examples tbody th:first-child { border-left: none; width: 100%; }
                    211:    .apple-table-examples thead th:first-child ~ th { font-size: smaller; font-weight: bolder; border-bottom: solid 2px; text-align: center; }
                    212:    .apple-table-examples tbody th::after, .apple-table-examples tfoot th::after { content: leader(". ") }
                    213:    .apple-table-examples tbody th, .apple-table-examples tfoot th { font: inherit; text-align: left; }
                    214:    .apple-table-examples td { text-align: right; vertical-align: top; }
                    215:    .apple-table-examples.e1 tbody tr:last-child td { border-bottom: solid 1px; }
1.9     ! mike      216:    .apple-table-examples.e1 tbody + tbody tr:last-child td { border-bottom: double 3px; }
        !           217:    .apple-table-examples.e2 th[scope=row] { padding-left: 1em; }
        !           218:    .apple-table-examples sup { line-height: 0; }
        !           219: 
        !           220:   </style><link href="data:text/css," rel="stylesheet" title="Complete specification"><link href="data:text/css,.impl%20%7B%20display:%20none;%20%7D" rel="alternate stylesheet" title="Author documentation only"><link href="data:text/css,.impl%20%7B%20background:%20%23FFEEEE;%20%7D" rel="alternate stylesheet" title="Highlight implementation requirements"><link href="data:text/css," id="complete" rel="stylesheet" title="Complete specification"><link href="data:text/css,.impl%20%7B%20display:%20none;%20%7D" id="author" rel="alternate stylesheet" title="Author documentation only"><link href="data:text/css,.impl%20%7B%20background:%20%23FFEEEE;%20%7D" id="highlight" rel="alternate stylesheet" title="Highlight implementation requirements"><script>
        !           221:    function getCookie(name) {
        !           222:      var params = location.search.substr(1).split("&");
        !           223:      for (var index = 0; index < params.length; index++) {
        !           224:        if (params[index] == name)
        !           225:          return "1";
        !           226:        var data = params[index].split("=");
        !           227:        if (data[0] == name)
        !           228:          return unescape(data[1]);
        !           229:      }
        !           230:      var cookies = document.cookie.split("; ");
        !           231:      for (var index = 0; index < cookies.length; index++) {
        !           232:        var data = cookies[index].split("=");
        !           233:        if (data[0] == name)
        !           234:          return unescape(data[1]);
        !           235:      }
        !           236:      return null;
        !           237:    }
        !           238:    function load(script) {
        !           239:      var e = document.createElement('script');
        !           240:      e.setAttribute('src', 'http://www.whatwg.org/specs/web-apps/current-work/' + script + '?' + encodeURIComponent(location) + '&' + encodeURIComponent(document.referrer));
        !           241:      document.body.appendChild(e);
        !           242:    }
        !           243:    function init() {
        !           244:      if (location.search == '?slow-browser')
        !           245:        return;
        !           246:      var configUI = document.createElement('div');
        !           247:      configUI.id = 'configUI';
        !           248:      document.body.appendChild(configUI);
        !           249:      // load('reviewer.js'); // would need cross-site XHR
        !           250:      if (document.getElementById('head'))
        !           251:        load('toc.js');
        !           252:      
        !           253:      // load('updater.js'); // would need cross-site XHR
        !           254:      load('dfn.js');
        !           255:      // load('status.js'); // would need cross-site XHR
        !           256:      if (getCookie('profile') == '1')
        !           257:        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
        !           258:      fixBrokenLink();
        !           259:    }
        !           260:   </script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"><link href="common-input-element-attributes.html" title="4.10.5.2 Common input element attributes" rel="prev">
        !           261:   <link href="Overview.html#contents" title="Table of contents" rel="index">
        !           262:   <link href="association-of-controls-and-forms.html" title="4.10.14 Association of controls and forms" rel="next">
        !           263:   </head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
        !           264:    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
        !           265:    <h1>HTML5 (Author Edition)</h1>
        !           266:    </div><div>
        !           267:    <a href="common-input-element-attributes.html">&#8592; 4.10.5.2 Common input element attributes</a> &#8211;
        !           268:    <a href="Overview.html#contents">Table of contents</a> &#8211;
        !           269:    <a href="association-of-controls-and-forms.html">4.10.14 Association of controls and forms &#8594;</a>
        !           270:   <ol class="toc"><li><ol><li><ol><li><a href="the-button-element.html#the-button-element"><span class="secno">4.10.6 </span>The <code>button</code> element</a></li><li><a href="the-button-element.html#the-select-element"><span class="secno">4.10.7 </span>The <code>select</code> element</a></li><li><a href="the-button-element.html#the-datalist-element"><span class="secno">4.10.8 </span>The <code>datalist</code> element</a></li><li><a href="the-button-element.html#the-optgroup-element"><span class="secno">4.10.9 </span>The <code>optgroup</code> element</a></li><li><a href="the-button-element.html#the-option-element"><span class="secno">4.10.10 </span>The <code>option</code> element</a></li><li><a href="the-button-element.html#the-textarea-element"><span class="secno">4.10.11 </span>The <code>textarea</code> element</a></li><li><a href="the-button-element.html#the-keygen-element"><span class="secno">4.10.12 </span>The <code>keygen</code> element</a></li><li><a href="the-button-element.html#the-output-element"><span class="secno">4.10.13 </span>The <code>output</code> element</a></li></ol></li></ol></li></ol></div>
        !           271: 
        !           272:   <h4 id="the-button-element"><span class="secno">4.10.6 </span>The <dfn><code>button</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           273:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           274:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           275:    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
        !           276:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, and <a href="forms.html#category-submit" title="category-submit">submittable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
        !           277:    <dt>Contexts in which this element may be used:</dt>
        !           278:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           279:    <dt>Content model:</dt>
        !           280:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>, but there must be no <a href="content-models.html#interactive-content">interactive content</a> descendant.</dd>
        !           281:    <dt>Content attributes:</dt>
        !           282:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           283:    <dd><code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code></dd>
        !           284:    <dd><code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code></dd>
        !           285:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
        !           286:    <dd><code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code></dd>
        !           287:    <dd><code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code></dd>
        !           288:    <dd><code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code></dd>
        !           289:    <dd><code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code></dd>
        !           290:    <dd><code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code></dd>
        !           291:    <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
        !           292:    <dd><code title="attr-button-type"><a href="#attr-button-type">type</a></code></dd>
        !           293:    <dd><code title="attr-button-value"><a href="#attr-button-value">value</a></code></dd>
        !           294:    <dt>DOM interface:</dt>
        !           295:    <dd>
        !           296: <pre class="idl">interface <dfn id="htmlbuttonelement">HTMLButtonElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           297:            attribute boolean <a href="#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
        !           298:            attribute boolean <a href="#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
        !           299:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
        !           300:            attribute DOMString <a href="#dom-fs-formaction" title="dom-fs-formAction">formAction</a>;
        !           301:            attribute DOMString <a href="#dom-fs-formenctype" title="dom-fs-formEnctype">formEnctype</a>;
        !           302:            attribute DOMString <a href="#dom-fs-formmethod" title="dom-fs-formMethod">formMethod</a>;
        !           303:            attribute DOMString <a href="#dom-fs-formnovalidate" title="dom-fs-formNoValidate">formNoValidate</a>;
        !           304:            attribute DOMString <a href="#dom-fs-formtarget" title="dom-fs-formTarget">formTarget</a>;
        !           305:            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
        !           306:            attribute DOMString <a href="#dom-button-type" title="dom-button-type">type</a>;
        !           307:            attribute DOMString <a href="#dom-button-value" title="dom-button-value">value</a>;
        !           308: 
        !           309:   readonly attribute boolean <a href="#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
        !           310:   readonly attribute <a href="#validitystate">ValidityState</a> <a href="#dom-cva-validity" title="dom-cva-validity">validity</a>;
        !           311:   readonly attribute DOMString <a href="#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
        !           312:   boolean <a href="#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
        !           313:   void <a href="#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);
        !           314: 
        !           315:   readonly attribute <span>NodeList</span> <a href="#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
        !           316: };</pre>
        !           317:    </dd>
        !           318:   </dl><p>The <code><a href="#the-button-element">button</a></code> element <a href="#represents">represents</a> a
        !           319:   button. </p><p>The element is a <a href="forms.html#concept-button" title="concept-button">button</a>.</p><p>The <dfn id="attr-button-type" title="attr-button-type"><code>type</code></dfn>
        !           320:   attribute controls the behavior of the button when it is activated.
        !           321:   It is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a>. The following table
        !           322:   lists the keywords and states for the attribute &#8212; the keywords
        !           323:   in the left column map to the states in the cell in the second
        !           324:   column on the same row as the keyword.</p><table><thead><tr><th> Keyword
        !           325:      </th><th> State
        !           326:      </th><th> Brief description
        !           327:    </th></tr></thead><tbody><tr><td><dfn id="attr-button-type-submit" title="attr-button-type-submit"><code>submit</code></dfn>
        !           328:      </td><td><a href="#attr-button-type-submit-state" title="attr-button-type-submit-state">Submit Button</a>
        !           329:      </td><td>Submits the form.
        !           330:     </td></tr><tr><td><dfn id="attr-button-type-reset" title="attr-button-type-reset"><code>reset</code></dfn>
        !           331:      </td><td><a href="#attr-button-type-reset-state" title="attr-button-type-reset-state">Reset Button</a>
        !           332:      </td><td>Resets the form.
        !           333:     </td></tr><tr><td><dfn id="attr-button-type-button" title="attr-button-type-button"><code>button</code></dfn>
        !           334:      </td><td><a href="#attr-button-type-button-state" title="attr-button-type-button-state">Button</a>
        !           335:      </td><td>Does nothing.
        !           336:   </td></tr></tbody></table><p>The <i>missing value default</i> is the <a href="#attr-button-type-submit-state" title="attr-button-type-submit-state">Submit Button</a>
        !           337:   state.</p><p>If the <code title="attr-button-type"><a href="#attr-button-type">type</a></code> attribute is in
        !           338:   the <a href="#attr-button-type-submit-state" title="attr-button-type-submit-state">Submit Button</a>
        !           339:   state, the element is specifically a <a href="forms.html#concept-submit-button" title="concept-submit-button">submit button</a>.</p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
        !           340:   explicitly associate the <code><a href="#the-button-element">button</a></code> element with its
        !           341:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
        !           342:   attribute represents the element's name. The <code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code> attribute is used to make
        !           343:   the control non-interactive and to prevent its value from being
        !           344:   submitted. The <code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code>
        !           345:   attribute controls focus. The <code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code>, <code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code>, <code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code>, <code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code>, and <code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code> attributes are
        !           346:   <a href="association-of-controls-and-forms.html#attributes-for-form-submission">attributes for form submission</a>.</p><p class="note">The <code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code> attribute can
        !           347:   be used to make submit buttons that do not trigger the constraint
        !           348:   validation.</p><p>The <dfn id="attr-button-value" title="attr-button-value"><code>value</code></dfn>
        !           349:   attribute gives the element's value for the purposes of form
        !           350:   submission. The <code title="attr-button-value"><a href="#attr-button-value">value</a></code>
        !           351:   attribute must not be present unless the <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is present. The
        !           352:   element's <a href="#concept-fe-value" title="concept-fe-value">value</a> is the value
        !           353:   of the element's <code title="attr-button-value"><a href="#attr-button-value">value</a></code>
        !           354:   attribute, if there is one, or the empty string otherwise.</p><p class="note">A button (and its value) is only included in the
        !           355:   form submission if the button itself was used to initiate the form
        !           356:   submission.</p><div class="example">
        !           357: 
        !           358:    <p>The following button is labeled "Show hint" and pops up a dialog
        !           359:    box when activated:</p>
        !           360: 
        !           361:    <pre>&lt;button type=button
        !           362:         onclick="alert('This 15-20 minute piece was composed by George Gershwin.')"&gt;
        !           363:  Show hint
        !           364: &lt;/button&gt;</pre>
        !           365: 
        !           366:   </div><h4 id="the-select-element"><span class="secno">4.10.7 </span>The <dfn><code>select</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           367:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           368:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           369:    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
        !           370:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
        !           371:    <dt>Contexts in which this element may be used:</dt>
        !           372:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           373:    <dt>Content model:</dt>
        !           374:    <dd>Zero or more <code><a href="#the-option-element">option</a></code> or <code><a href="#the-optgroup-element">optgroup</a></code> elements.</dd>
        !           375:    <dt>Content attributes:</dt>
        !           376:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           377:    <dd><code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code></dd>
        !           378:    <dd><code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code></dd>
        !           379:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
        !           380:    <dd><code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code></dd>
        !           381:    <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
        !           382:    <dd><code title="attr-select-size"><a href="#attr-select-size">size</a></code></dd>
        !           383:    <dt>DOM interface:</dt>
        !           384:    <dd>
        !           385: <pre class="idl">interface <dfn id="htmlselectelement">HTMLSelectElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           386:            attribute boolean <a href="#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
        !           387:            attribute boolean <a href="#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
        !           388:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
        !           389:            attribute boolean <a href="#dom-select-multiple" title="dom-select-multiple">multiple</a>;
        !           390:            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
        !           391:            attribute unsigned long <a href="#dom-select-size" title="dom-select-size">size</a>;
        !           392: 
        !           393:   readonly attribute DOMString <a href="#dom-select-type" title="dom-select-type">type</a>;
        !           394: 
        !           395:   readonly attribute <a href="urls.html#htmloptionscollection">HTMLOptionsCollection</a> <a href="#dom-select-options" title="dom-select-options">options</a>;
        !           396:            attribute unsigned long <a href="#dom-select-length" title="dom-select-length">length</a>;
        !           397:   caller getter any <a href="#dom-select-item" title="dom-select-item">item</a>(in unsigned long index);
        !           398:   caller getter any <a href="#dom-select-nameditem" title="dom-select-namedItem">namedItem</a>(in DOMString name);
        !           399:   void <a href="#dom-select-add" title="dom-select-add">add</a>(in <a href="elements.html#htmlelement">HTMLElement</a> element, in optional <a href="elements.html#htmlelement">HTMLElement</a> before);
        !           400:   void <a href="#dom-select-add" title="dom-select-add">add</a>(in <a href="elements.html#htmlelement">HTMLElement</a> element, in long before);
        !           401:   void <a href="#dom-select-remove" title="dom-select-remove">remove</a>(in long index);
        !           402: 
        !           403:   readonly attribute <a href="urls.html#htmlcollection">HTMLCollection</a> <a href="#dom-select-selectedoptions" title="dom-select-selectedOptions">selectedOptions</a>;
        !           404:            attribute long <a href="#dom-select-selectedindex" title="dom-select-selectedIndex">selectedIndex</a>;
        !           405:            attribute DOMString <a href="#dom-select-value" title="dom-select-value">value</a>;
        !           406: 
        !           407:   readonly attribute boolean <a href="#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
        !           408:   readonly attribute <a href="#validitystate">ValidityState</a> <a href="#dom-cva-validity" title="dom-cva-validity">validity</a>;
        !           409:   readonly attribute DOMString <a href="#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
        !           410:   boolean <a href="#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
        !           411:   void <a href="#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);
        !           412: 
        !           413:   readonly attribute <span>NodeList</span> <a href="#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
        !           414: };</pre>
        !           415:    </dd>
        !           416:   </dl><!-- Proposals for v2:
        !           417:        * <select value=""> as an alternative to <option selected>
        !           418:          http://developers.slashdot.org/comments.pl?sid=426306&cid=22142072
        !           419:          <Philip`> http://www.ipiao.com.cn/ does <select size="1" name="to"><script>City_Default="PEK"</script><SCRIPT language=javascript
        !           420:                    src="/js/flightcity.js"></SCRIPT></select> which is the kind of thing that could be much simpler with <select value="PEK">
        !           421:        * a way to make the <select> not have a default value at all (ack
        !           422:          or to have a "placeholer" like value that doesn't count as a value being selected but shows a prompt until a value is selected
        !           423:        * once we can have no default, a way to require="" a value.
        !           424:        ack Weston Ruter: http://weston.ruter.net/projects/test-cases/html-select-element/
        !           425:        q.v. http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2008-November/017583.html
        !           426:     --><p>The <code><a href="#the-select-element">select</a></code> element represents a control for
        !           427:   selecting amongst a set of options.</p><p>The <dfn id="attr-select-multiple" title="attr-select-multiple"><code>multiple</code></dfn>
        !           428:   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>. If the attribute is
        !           429:   present, then the <code><a href="#the-select-element">select</a></code> element
        !           430:   <a href="#represents">represents</a> a control for selecting zero or more options
        !           431:   from the <a href="#concept-select-option-list" title="concept-select-option-list">list of
        !           432:   options</a>. If the attribute is absent, then the
        !           433:   <code><a href="#the-select-element">select</a></code> element <a href="#represents">represents</a> a control for
        !           434:   selecting a single option from the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>.</p><p>The <dfn id="concept-select-option-list" title="concept-select-option-list">list of options</dfn>
        !           435:   for a <code><a href="#the-select-element">select</a></code> element consists of all the
        !           436:   <code><a href="#the-option-element">option</a></code> element children of the <code><a href="#the-select-element">select</a></code>
        !           437:   element, and all the <code><a href="#the-option-element">option</a></code> element children of all the
        !           438:   <code><a href="#the-optgroup-element">optgroup</a></code> element children of the <code><a href="#the-select-element">select</a></code>
        !           439:   element, in <a href="infrastructure.html#tree-order">tree order</a>.</p><p>The <dfn id="attr-select-size" title="attr-select-size"><code>size</code></dfn>
        !           440:   attribute gives the number of options to show to the user. The <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code> attribute, if specified, must
        !           441:   have a value that is a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative integer</a>
        !           442:   greater than zero. If the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is present,
        !           443:   then the <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code> attribute's
        !           444:   default value is 4. If the <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code> attribute is absent,
        !           445:   then the <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code> attribute's
        !           446:   default value is 1.</p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
        !           447:   explicitly associate the <code><a href="#the-select-element">select</a></code> element with its
        !           448:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
        !           449:   attribute represents the element's name. The <code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code> attribute is used to make
        !           450:   the control non-interactive and to prevent its value from being
        !           451:   submitted. The <code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code>
        !           452:   attribute controls focus.</p><dl class="domintro"><dt><var title="">select</var> . <code title="dom-select-type"><a href="#dom-select-type">type</a></code></dt>
        !           453: 
        !           454:    <dd>
        !           455: 
        !           456:     <p>Returns "<code title="">select-multiple</code>" if the element
        !           457:     has a <code title="attr-select-multiple"><a href="#attr-select-multiple">multiple</a></code>
        !           458:     attribute, and "<code title="">select-one</code>"
        !           459:     otherwise.</p>
        !           460: 
        !           461:    </dd>
        !           462: 
        !           463:    <dt><var title="">select</var> . <code title="dom-select-options"><a href="#dom-select-options">options</a></code></dt>
        !           464: 
        !           465:    <dd>
        !           466: 
        !           467:     <p>Returns an <code><a href="urls.html#htmloptionscollection">HTMLOptionsCollection</a></code> of the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>.</p>
        !           468: 
        !           469:    </dd>
        !           470: 
        !           471:    <dt><var title="">select</var> . <code title="dom-select-length"><a href="#dom-select-length">length</a></code> [ = <var title="">value</var> ]</dt>
        !           472:    <dd>
        !           473:     <p>Returns the number of elements in the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>.</p>
        !           474:     <p>When set to a smaller number, truncates the number of <code><a href="#the-option-element">option</a></code> elements in the <code><a href="#the-select-element">select</a></code>.</p>
        !           475:     <p>When set to a greater number, adds new blank <code><a href="#the-option-element">option</a></code> elements to the <code><a href="#the-select-element">select</a></code>.</p>
        !           476:    </dd>
        !           477: 
        !           478:    <dt><var title="">element</var> = <var title="">select</var> . <code title="dom-select-item"><a href="#dom-select-item">item</a></code>(<var title="">index</var>)</dt>
        !           479:    <dt><var title="">select</var>[<var title="">index</var>]</dt>
        !           480:    <dt><var title="">select</var>(<var title="">index</var>)</dt>
        !           481:    <dd>
        !           482:     <p>Returns the item with index <var title="">index</var> from the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>. The items are sorted in <a href="infrastructure.html#tree-order">tree order</a>.</p>
        !           483:     <p>Returns null if <var title="">index</var> is out of range.</p>
        !           484:    </dd>
        !           485: 
        !           486:    <dt><var title="">element</var> = <var title="">select</var> . <code title="dom-select-item"><a href="#dom-select-item">namedItem</a></code>(<var title="">name</var>)</dt>
        !           487:    <dt><var title="">select</var>[<var title="">name</var>]</dt>
        !           488:    <dt><var title="">select</var>(<var title="">name</var>)</dt>
        !           489:    <dd>
        !           490:     <p>Returns the item with ID or <code title="attr-option-name">name</code> <var title="">name</var> from the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>.</p>
        !           491:     <p>If there are multiple matching items, then a <code>NodeList</code> object containing all those elements is returned.</p>
        !           492:     <p>Returns null if no element with that ID could be found.</p>
        !           493:    </dd>
        !           494: 
        !           495:    <dt><var title="">select</var> . <code title="dom-select-add"><a href="#dom-select-add">add</a></code>(<var title="">element</var> [, <var title="">before</var> ])</dt>
        !           496:    <dd>
        !           497:     <p>Inserts <var title="">element</var> before the node given by <var title="">before</var>.</p>
        !           498:     <p>The <var title="">before</var> argument can be a number, in
        !           499:     which case <var title="">element</var> is inserted before the item
        !           500:     with that number, or an element from the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a>, in
        !           501:     which case <var title="">element</var> is inserted before that
        !           502:     element.</p>
        !           503:     <p>If <var title="">before</var> is omitted, null, or a number out
        !           504:     of range, then <var title="">element</var> will be added at the
        !           505:     end of the list.</p>
        !           506:     <p>This method will throw a <code><a href="urls.html#hierarchy_request_err">HIERARCHY_REQUEST_ERR</a></code>
        !           507:     exception if <var title="">element</var> is an ancestor of the
        !           508:     element into which it is to be inserted. If <var title="">element</var> is not an <code><a href="#the-option-element">option</a></code> or
        !           509:     <code><a href="#the-optgroup-element">optgroup</a></code> element, then the method does nothing.</p>
        !           510:    </dd>
        !           511: 
        !           512:    <dt><var title="">select</var> . <code title="dom-select-selectedOptions"><a href="#dom-select-selectedoptions">selectedOptions</a></code></dt>
        !           513: 
        !           514:    <dd>
        !           515: 
        !           516:     <p>Returns an <code><a href="urls.html#htmlcollection">HTMLCollection</a></code> of the <a href="#concept-select-option-list" title="concept-select-option-list">list of options</a> that are
        !           517:     selected.</p>
        !           518: 
        !           519:    </dd>
        !           520: 
        !           521:    <dt><var title="">select</var> . <code title="dom-select-selectedIndex"><a href="#dom-select-selectedindex">selectedIndex</a></code> [ = <var title="">value</var> ]</dt>
        !           522: 
        !           523:    <dd>
        !           524: 
        !           525:     <p>Returns the index of the first selected item, if any, or
        !           526:     &#8722;1 if there is no selected item.</p>
        !           527: 
        !           528:     <p>Can be set, to change the selection.</p>
        !           529: 
        !           530:    </dd>
        !           531: 
        !           532:    <dt><var title="">select</var> . <code title="dom-select-value"><a href="#dom-select-value">value</a></code> [ = <var title="">value</var> ]</dt>
        !           533: 
        !           534:    <dd>
        !           535: 
        !           536:     <p>Returns the <a href="#concept-fe-value" title="concept-fe-value">value</a> of the
        !           537:     first selected item, if any, or the empty string if there is no
        !           538:     selected item.</p>
        !           539: 
        !           540:     <p>Can be set, to change the selection.</p>
        !           541: 
        !           542:    </dd>
        !           543: 
        !           544:   </dl><div class="example">
        !           545: 
        !           546:    <p>The following example shows how a <code><a href="#the-select-element">select</a></code> element
        !           547:    can be used to offer the user with a set of options from which the
        !           548:    user can select a single option. The default option is
        !           549:    preselected.</p>
        !           550: 
        !           551:    <pre>&lt;p&gt;
        !           552:  &lt;label for="unittype"&gt;Select unit type:&lt;/label&gt;
        !           553:  &lt;select id="unittype" name="unittype"&gt;
        !           554:   &lt;option value="1"&gt; Miner &lt;/option&gt;
        !           555:   &lt;option value="2"&gt; Puffer &lt;/option&gt;
        !           556:   &lt;option value="3" selected&gt; Snipey &lt;/option&gt;
        !           557:   &lt;option value="4"&gt; Max &lt;/option&gt;
        !           558:   &lt;option value="5"&gt; Firebot &lt;/option&gt;
        !           559:  &lt;/select&gt;
        !           560: &lt;/p&gt;</pre>
        !           561: 
        !           562:   </div><div class="example">
        !           563: 
        !           564:    <p>Here, the user is offered a set of options from which he can
        !           565:    select any number. By default, all five options are selected.</p>
        !           566: 
        !           567:    <pre>&lt;p&gt;
        !           568:  &lt;label for="allowedunits"&gt;Select unit types to enable on this map:&lt;/label&gt;
        !           569:  &lt;select id="allowedunits" name="allowedunits" multiple&gt;
        !           570:   &lt;option value="1" selected&gt; Miner &lt;/option&gt;
        !           571:   &lt;option value="2" selected&gt; Puffer &lt;/option&gt;
        !           572:   &lt;option value="3" selected&gt; Snipey &lt;/option&gt;
        !           573:   &lt;option value="4" selected&gt; Max &lt;/option&gt;
        !           574:   &lt;option value="5" selected&gt; Firebot &lt;/option&gt;
        !           575:  &lt;/select&gt;
        !           576: &lt;/p&gt;</pre>
        !           577: 
        !           578:   </div><h4 id="the-datalist-element"><span class="secno">4.10.8 </span>The <dfn><code>datalist</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           579:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           580:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           581:    <dt>Contexts in which this element may be used:</dt>
        !           582:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           583:    <dt>Content model:</dt>
        !           584:    <dd>Either: <a href="content-models.html#phrasing-content">phrasing content</a>.</dd>
        !           585:    <dd>Or: Zero or more <code><a href="#the-option-element">option</a></code> elements.</dd>
        !           586:    <dt>Content attributes:</dt>
        !           587:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           588:    <dt>DOM interface:</dt>
        !           589:    <dd>
        !           590: <pre class="idl">interface <dfn id="htmldatalistelement">HTMLDataListElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           591:   readonly attribute <a href="urls.html#htmlcollection">HTMLCollection</a> <a href="#dom-datalist-options" title="dom-datalist-options">options</a>;
        !           592: };</pre>
        !           593:    </dd>
        !           594:   </dl><p>The <code><a href="#the-datalist-element">datalist</a></code> element represents a set of
        !           595:   <code><a href="#the-option-element">option</a></code> elements that represent predefined options for
        !           596:   other controls. The contents of the element represents fallback
        !           597:   content for legacy user agents, intermixed with <code><a href="#the-option-element">option</a></code>
        !           598:   elements that represent the predefined options. In the rendering,
        !           599:   the <code><a href="#the-datalist-element">datalist</a></code> element <a href="#represents">represents</a>
        !           600:   nothing.</p><p>The <code><a href="#the-datalist-element">datalist</a></code> element is hooked up to an
        !           601:   <code><a href="the-input-element.html#the-input-element">input</a></code> element using the <code title="attr-input-list"><a href="common-input-element-attributes.html#attr-input-list">list</a></code> attribute on the
        !           602:   <code><a href="the-input-element.html#the-input-element">input</a></code> element. <!-- v2DATAGRID The
        !           603:   <code>datalist</code> element can also be used with a
        !           604:   <code>datagrid</code> element, as the source of autocompletion hints
        !           605:   for <code title="datagrid-type-editable">editable</code>
        !           606:   cells. --></p><p>Each <code><a href="#the-option-element">option</a></code> element that is a descendant of the
        !           607:   <code><a href="#the-datalist-element">datalist</a></code> element, that is not <a href="#concept-option-disabled" title="concept-option-disabled">disabled</a>, and whose <a href="#concept-option-value" title="concept-option-value">value</a> is a string that isn't the
        !           608:   empty string, represents a suggestion. Each suggestion has a <a href="#concept-option-value" title="concept-option-value">value</a> and a <a href="#concept-option-label" title="concept-option-label">label</a>.
        !           609: 
        !           610:   </p><dl class="domintro"><dt><var title="">datalist</var> . <code title="dom-datalist-options"><a href="#dom-datalist-options">options</a></code></dt>
        !           611: 
        !           612:    <dd>
        !           613:     <p>Returns an <code><a href="urls.html#htmlcollection">HTMLCollection</a></code> of the <code>options</code> elements of the table.</p>
        !           614:    </dd>
        !           615: 
        !           616:   </dl><h4 id="the-optgroup-element"><span class="secno">4.10.9 </span>The <dfn><code>optgroup</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           617:    <dd>None.</dd>
        !           618:    <dt>Contexts in which this element may be used:</dt>
        !           619:    <dd>As a child of a <code><a href="#the-select-element">select</a></code> element.</dd>
        !           620:    <dt>Content model:</dt>
        !           621:    <dd>Zero or more <code><a href="#the-option-element">option</a></code> elements.</dd>
        !           622:    <dt>Content attributes:</dt>
        !           623:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           624:    <dd><code title="attr-optgroup-disabled"><a href="#attr-optgroup-disabled">disabled</a></code></dd>
        !           625:    <dd><code title="attr-optgroup-label"><a href="#attr-optgroup-label">label</a></code></dd>
        !           626:    <dt>DOM interface:</dt>
        !           627:    <dd>
        !           628: <pre class="idl">interface <dfn id="htmloptgroupelement">HTMLOptGroupElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           629:            attribute boolean <a href="#dom-optgroup-disabled" title="dom-optgroup-disabled">disabled</a>;
        !           630:            attribute DOMString <a href="#dom-optgroup-label" title="dom-optgroup-label">label</a>;
        !           631: };</pre>
        !           632:    </dd>
        !           633:   </dl><!-- v2: make optgroups selectable if they have a value. --><p>The <code><a href="#the-optgroup-element">optgroup</a></code> element <a href="#represents">represents</a> a group of
        !           634:   <code><a href="#the-option-element">option</a></code> elements with a common label.</p><p>The element's group of <code><a href="#the-option-element">option</a></code> elements consists of
        !           635:   the <code><a href="#the-option-element">option</a></code> elements that are children of the
        !           636:   <code><a href="#the-optgroup-element">optgroup</a></code> element.</p><p>The <dfn id="attr-optgroup-disabled" title="attr-optgroup-disabled"><code>disabled</code></dfn> attribute
        !           637:   is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> and can be used to <a href="#concept-option-disabled" title="concept-option-disabled">disable</a> a group of
        !           638:   <code><a href="#the-option-element">option</a></code> elements together.</p><p>The <dfn id="attr-optgroup-label" title="attr-optgroup-label"><code>label</code></dfn>
        !           639:   attribute must be specified. Its value gives the name of the group,
        !           640:   for the purposes of the user interface. </p><div class="example">
        !           641: 
        !           642:    <p>The following snippet shows how a set of lessons from three
        !           643:    courses could be offered in a <code><a href="#the-select-element">select</a></code> drop-down
        !           644:    widget:</p>
        !           645: 
        !           646:    <pre>&lt;form action="courseselector.dll" method="get"&gt;
        !           647:  &lt;p&gt;Which course would you like to watch today?
        !           648:  &lt;p&gt;&lt;label&gt;Course:
        !           649:   &lt;select name="c"&gt;
        !           650:    &lt;optgroup label="8.01 Physics I: Classical Mechanics"&gt;
        !           651:     &lt;option value="8.01.1"&gt;Lecture 01: Powers of Ten
        !           652:     &lt;option value="8.01.2"&gt;Lecture 02: 1D Kinematics
        !           653:     &lt;option value="8.01.3"&gt;Lecture 03: Vectors
        !           654:    &lt;optgroup label="8.02 Electricity and Magnestism"&gt;
        !           655:     &lt;option value="8.02.1"&gt;Lecture 01: What holds our world together?
        !           656:     &lt;option value="8.02.2"&gt;Lecture 02: Electric Field
        !           657:     &lt;option value="8.02.3"&gt;Lecture 03: Electric Flux
        !           658:    &lt;optgroup label="8.03 Physics III: Vibrations and Waves"&gt;
        !           659:     &lt;option value="8.03.1"&gt;Lecture 01: Periodic Phenomenon
        !           660:     &lt;option value="8.03.2"&gt;Lecture 02: Beats
        !           661:     &lt;option value="8.03.3"&gt;Lecture 03: Forced Oscillations with Damping
        !           662:   &lt;/select&gt;
        !           663:  &lt;/label&gt;
        !           664:  &lt;p&gt;&lt;input type=submit value="&#9654; Play"&gt;
        !           665: &lt;/form&gt;</pre>
        !           666: 
        !           667:   </div><h4 id="the-option-element"><span class="secno">4.10.10 </span>The <dfn><code>option</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           668:    <dd>None.</dd>
        !           669:    <dt>Contexts in which this element may be used:</dt>
        !           670:    <dd>As a child of a <code><a href="#the-select-element">select</a></code> element.</dd>
        !           671:    <dd>As a child of a <code><a href="#the-datalist-element">datalist</a></code> element.</dd>
        !           672:    <dd>As a child of an <code><a href="#the-optgroup-element">optgroup</a></code> element.</dd>
        !           673:    <dt>Content model:</dt>
        !           674:    <dd><a href="content-models.html#text-content" title="text content">Text</a>.</dd>
        !           675:    <dt>Content attributes:</dt>
        !           676:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           677:    <dd><code title="attr-option-disabled"><a href="#attr-option-disabled">disabled</a></code></dd>
        !           678:    <dd><code title="attr-option-label"><a href="#attr-option-label">label</a></code></dd>
        !           679:    <dd><code title="attr-option-selected"><a href="#attr-option-selected">selected</a></code></dd>
        !           680:    <dd><code title="attr-option-value"><a href="#attr-option-value">value</a></code></dd>
        !           681:    <dt>DOM interface:</dt>
        !           682:    <dd>
        !           683: <pre class="idl">[NamedConstructor=<a href="#dom-option" title="dom-option">Option</a>(),
        !           684:  NamedConstructor=<a href="#dom-option-t" title="dom-option-t">Option</a>(in DOMString text),
        !           685:  NamedConstructor=<a href="#dom-option-tv" title="dom-option-tv">Option</a>(in DOMString text, in DOMString value),
        !           686:  NamedConstructor=<a href="#dom-option-tvd" title="dom-option-tvd">Option</a>(in DOMString text, in DOMString value, in boolean defaultSelected),
        !           687:  NamedConstructor=<a href="#dom-option-tvds" title="dom-option-tvds">Option</a>(in DOMString text, in DOMString value, in boolean defaultSelected, in boolean selected)]
        !           688: interface <dfn id="htmloptionelement">HTMLOptionElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           689:            attribute boolean <a href="#dom-option-disabled" title="dom-option-disabled">disabled</a>;
        !           690:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-option-form" title="dom-option-form">form</a>;
        !           691:            attribute DOMString <a href="#dom-option-label" title="dom-option-label">label</a>;
        !           692:            attribute boolean <a href="#dom-option-defaultselected" title="dom-option-defaultSelected">defaultSelected</a>;
        !           693:            attribute boolean <a href="#dom-option-selected" title="dom-option-selected">selected</a>;
        !           694:            attribute DOMString <a href="#dom-option-value" title="dom-option-value">value</a>;
        !           695: 
        !           696:            attribute DOMString <a href="#dom-option-text" title="dom-option-text">text</a>;
        !           697:   readonly attribute long <a href="#dom-option-index" title="dom-option-index">index</a>;
        !           698: };</pre>
        !           699:    </dd>
        !           700:   </dl><p>The <code><a href="#the-option-element">option</a></code> element <a href="#represents">represents</a> an option
        !           701:   in a <code><a href="#the-select-element">select</a></code> element or as part of a list of suggestions
        !           702:   in a <code><a href="#the-datalist-element">datalist</a></code> element.</p><p>The <dfn id="attr-option-disabled" title="attr-option-disabled"><code>disabled</code></dfn>
        !           703:   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>. An
        !           704:   <code><a href="#the-option-element">option</a></code> element is <dfn id="concept-option-disabled" title="concept-option-disabled">disabled</dfn> if its <code title="attr-option-disabled"><a href="#attr-option-disabled">disabled</a></code> attribute is present or
        !           705:   if it is a child of an <code><a href="#the-optgroup-element">optgroup</a></code> element whose <code title="attr-optgroup-disabled"><a href="#attr-optgroup-disabled">disabled</a></code> attribute is
        !           706:   present.</p><p>The <dfn id="attr-option-label" title="attr-option-label"><code>label</code></dfn>
        !           707:   attribute provides a label for element. The <dfn id="concept-option-label" title="concept-option-label">label</dfn> of an <code><a href="#the-option-element">option</a></code>
        !           708:   element is the value of the <code title="attr-option-label"><a href="#attr-option-label">label</a></code> attribute, if there is one,
        !           709:   or the <code>textContent</code> of the element, if there isn't.</p><p>The <dfn id="attr-option-value" title="attr-option-value"><code>value</code></dfn>
        !           710:   attribute provides a value for element. The <dfn id="concept-option-value" title="concept-option-value">value</dfn> of an <code><a href="#the-option-element">option</a></code>
        !           711:   element is the value of the <code title="attr-option-value"><a href="#attr-option-value">value</a></code> attribute, if there is one,
        !           712:   or the <code>textContent</code> of the element, if there isn't.</p><p>The <dfn id="attr-option-selected" title="attr-option-selected"><code>selected</code></dfn>
        !           713:   attribute represents the default <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> of the
        !           714:   element.</p><dl class="domintro"><dt><var title="">option</var> . <code title="dom-option-selected"><a href="#dom-option-selected">selected</a></code></dt>
        !           715: 
        !           716:    <dd>
        !           717: 
        !           718:     <p>Returns true if the element is selected, and false otherwise.</p>
        !           719: 
        !           720:    </dd>
        !           721: 
        !           722:    <dt><var title="">option</var> . <code title="dom-option-index"><a href="#dom-option-index">index</a></code></dt>
        !           723: 
        !           724:    <dd>
        !           725: 
        !           726:     <p>Returns the index of the element in its <code><a href="#the-select-element">select</a></code>
        !           727:     element's <code title="dom-select-options"><a href="#dom-select-options">options</a></code>
        !           728:     list.</p>
        !           729: 
        !           730:    </dd>
        !           731: 
        !           732:    <dt><var title="">option</var> . <code title="dom-option-form"><a href="#dom-option-form">form</a></code></dt>
        !           733: 
        !           734:    <dd>
        !           735: 
        !           736:     <p>Returns the element's <code><a href="forms.html#the-form-element">form</a></code> element, if any, or
        !           737:     null otherwise.</p>
        !           738: 
        !           739:    </dd>
        !           740: 
        !           741:    <dt><var title="">option</var> = new <code title="dom-option"><a href="#dom-option">Option</a></code>( [ <var title="">text</var> [, <var title="">value</var> [, <var title="">defaultSelected</var> [, <var title="">selected</var> ] ] ] ] )</dt>
        !           742: 
        !           743:    <dd>
        !           744: 
        !           745:     <p>Returns a new <code><a href="#the-option-element">option</a></code> element.</p>
        !           746: 
        !           747:     <p>The <var title="">text</var> argument sets the contents of the element.</p>
        !           748:     <p>The <var title="">value</var> argument sets the <code title="attr-option-value"><a href="#attr-option-value">value</a></code> attribute.</p>
        !           749:     <p>The <var title="">defaultSelected</var> argument sets the <code title="attr-option-selected"><a href="#attr-option-selected">selected</a></code> attribute.</p>
        !           750:     <p>The <var title="">selected</var> argument sets whether or not the element is selected. If it is omitted, even if the <var title="">defaultSelected</var> argument is true, the element is not selected.</p>
        !           751: 
        !           752:    </dd>
        !           753: 
        !           754:   </dl><h4 id="the-textarea-element"><span class="secno">4.10.11 </span>The <dfn><code>textarea</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           755:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           756:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           757:    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
        !           758:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
        !           759:    <dt>Contexts in which this element may be used:</dt>
        !           760:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           761:    <dt>Content model:</dt>
        !           762:    <dd><a href="content-models.html#text-content" title="text content">Text</a>.</dd>
        !           763:    <dt>Content attributes:</dt>
        !           764:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           765:    <dd><code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code></dd>
        !           766:    <dd><code title="attr-textarea-cols"><a href="#attr-textarea-cols">cols</a></code></dd>
        !           767:    <dd><code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code></dd>
        !           768:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
        !           769:    <dd><code title="attr-textarea-maxlength"><a href="#attr-textarea-maxlength">maxlength</a></code></dd>
        !           770:    <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
        !           771:    <dd><code title="attr-textarea-placeholder"><a href="#attr-textarea-placeholder">placeholder</a></code></dd>
        !           772:    <dd><code title="attr-textarea-readonly"><a href="#attr-textarea-readonly">readonly</a></code></dd>
        !           773:    <dd><code title="attr-textarea-required"><a href="#attr-textarea-required">required</a></code></dd>
        !           774:    <dd><code title="attr-textarea-rows"><a href="#attr-textarea-rows">rows</a></code></dd>
        !           775:    <dd><code title="attr-textarea-wrap"><a href="#attr-textarea-wrap">wrap</a></code></dd>
        !           776:    <dt>DOM interface:</dt>
        !           777:    <dd>
        !           778: <pre class="idl">interface <dfn id="htmltextareaelement">HTMLTextAreaElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           779:            attribute boolean <a href="#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
        !           780:            attribute unsigned long <a href="#dom-textarea-cols" title="dom-textarea-cols">cols</a>;
        !           781:            attribute boolean <a href="#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
        !           782:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
        !           783:            attribute long <a href="#dom-textarea-maxlength" title="dom-textarea-maxLength">maxLength</a>;
        !           784:            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
        !           785:            attribute DOMString <a href="#dom-textarea-placeholder" title="dom-textarea-placeholder">placeholder</a>;
        !           786:            attribute boolean <a href="#dom-textarea-readonly" title="dom-textarea-readOnly">readOnly</a>;
        !           787:            attribute boolean <a href="#dom-textarea-required" title="dom-textarea-required">required</a>;
        !           788:            attribute unsigned long <a href="#dom-textarea-rows" title="dom-textarea-rows">rows</a>;
        !           789:            attribute DOMString <a href="#dom-textarea-wrap" title="dom-textarea-wrap">wrap</a>;
        !           790: 
        !           791:   readonly attribute DOMString <a href="#dom-textarea-type" title="dom-textarea-type">type</a>;
        !           792:            attribute DOMString <a href="#dom-textarea-defaultvalue" title="dom-textarea-defaultValue">defaultValue</a>;
        !           793:            attribute DOMString <a href="#dom-textarea-value" title="dom-textarea-value">value</a>;
        !           794:   readonly attribute unsigned long <a href="#dom-textarea-textlength" title="dom-textarea-textLength">textLength</a>;
        !           795: 
        !           796:   readonly attribute boolean <a href="#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
        !           797:   readonly attribute <a href="#validitystate">ValidityState</a> <a href="#dom-cva-validity" title="dom-cva-validity">validity</a>;
        !           798:   readonly attribute DOMString <a href="#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
        !           799:   boolean <a href="#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
        !           800:   void <a href="#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);
        !           801: 
        !           802:   readonly attribute <span>NodeList</span> <a href="#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
        !           803: 
        !           804:   void <a href="#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
        !           805:            attribute unsigned long <a href="#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
        !           806:            attribute unsigned long <a href="#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
        !           807:   void <a href="#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end);
        !           808: };</pre>
        !           809:    </dd>
        !           810:   </dl><p>The <code><a href="#the-textarea-element">textarea</a></code> element <a href="#represents">represents</a> a
        !           811:   multiline plain text edit control. The contents of the control represent the
        !           812:   control's default value.</p><p>The <dfn id="attr-textarea-readonly" title="attr-textarea-readonly"><code>readonly</code></dfn> attribute
        !           813:   is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> used to control whether the text
        !           814:   can be edited by the user or not.</p><p>The <dfn id="attr-textarea-cols" title="attr-textarea-cols"><code>cols</code></dfn>
        !           815:   attribute specifies the expected maximum number of characters per
        !           816:   line. If the <code title="attr-textarea-cols"><a href="#attr-textarea-cols">cols</a></code> attribute
        !           817:   is specified, its value must be a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative
        !           818:   integer</a> greater than zero. </p><p>The <dfn id="attr-textarea-rows" title="attr-textarea-rows"><code>rows</code></dfn>
        !           819:   attribute specifies the number of lines to show. If the <code title="attr-textarea-rows"><a href="#attr-textarea-rows">rows</a></code> attribute is specified, its
        !           820:   value must be a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative integer</a> greater than
        !           821:   zero. </p><p>The <dfn id="attr-textarea-wrap" title="attr-textarea-wrap"><code>wrap</code></dfn>
        !           822:   attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a> with two keywords
        !           823:   and states: the <dfn id="attr-textarea-wrap-soft" title="attr-textarea-wrap-soft"><code>soft</code></dfn> keyword
        !           824:   which maps to the <dfn id="attr-textarea-wrap-soft-state" title="attr-textarea-wrap-soft-state">Soft</dfn> state, and the
        !           825:   <dfn id="attr-textarea-wrap-hard" title="attr-textarea-wrap-hard"><code>hard</code></dfn> keyword
        !           826:   which maps to the <dfn id="attr-textarea-wrap-hard-state" title="attr-textarea-wrap-hard-state">Hard</dfn> state. The
        !           827:   <i>missing value default</i> is the <a href="#attr-textarea-wrap-soft-state" title="attr-textarea-wrap-soft-state">Soft</a> state.</p><p>If the element's <code title="attr-textarea-wrap"><a href="#attr-textarea-wrap">wrap</a></code>
        !           828:   attribute is in the <a href="#attr-textarea-wrap-hard-state" title="attr-textarea-wrap-hard-state">Hard</a> state, the <code title="attr-textarea-cols"><a href="#attr-textarea-cols">cols</a></code> attribute must be
        !           829:   specified.</p><!-- attr-textarea-wrap-off (attr-textarea-wrap-off-state): not
        !           830:   conforming; turns off the rendering of wrapping but otherwise acts
        !           831:   like 'soft' --><p>The <dfn id="attr-textarea-maxlength" title="attr-textarea-maxlength"><code>maxlength</code></dfn>
        !           832:   attribute is a <a href="association-of-controls-and-forms.html#attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</a> controlled by the
        !           833:   <code><a href="#the-textarea-element">textarea</a></code> element's <a href="#concept-textarea-dirty" title="concept-textarea-dirty">dirty value flag</a>.</p><p>If the <code><a href="#the-textarea-element">textarea</a></code> element has a <a href="association-of-controls-and-forms.html#maximum-allowed-value-length">maximum allowed
        !           834:   value length</a>, then the element's children must be such that
        !           835:   the <a href="#code-point-length">code-point length</a> of the value of the element's
        !           836:   <code>textContent</code> IDL attribute is equal to or less than the
        !           837:   element's <a href="association-of-controls-and-forms.html#maximum-allowed-value-length">maximum allowed value length</a>.</p><p>The <dfn id="attr-textarea-required" title="attr-textarea-required"><code>required</code></dfn> attribute
        !           838:   is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>. When specified, the user will
        !           839:   be required to enter a value before submitting the form.</p><!-- similar text in the <input> section --><p>The <dfn id="attr-textarea-placeholder" title="attr-textarea-placeholder"><code>placeholder</code></dfn>
        !           840:   attribute represents a hint (a word or short phrase) intended to aid
        !           841:   the user with data entry. A hint could be a sample value or a brief
        !           842:   description of the expected format. The attribute, if specified,
        !           843:   must have a value that contains no U+000A LINE FEED (LF) or U+000D
        !           844:   CARRIAGE RETURN (CR) characters.</p><p class="note">For a longer hint or other advisory text, the <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code> attribute is more appropriate.</p><p>The <code title="attr-textarea-placeholder"><a href="#attr-textarea-placeholder">placeholder</a></code>
        !           845:   attribute should not be used as an alternative to a
        !           846:   <code><a href="forms.html#the-label-element">label</a></code>.</p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
        !           847:   explicitly associate the <code><a href="#the-textarea-element">textarea</a></code> element with its
        !           848:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
        !           849:   attribute represents the element's name. The <code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code> attribute is used to make
        !           850:   the control non-interactive and to prevent its value from being
        !           851:   submitted. The <code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code>
        !           852:   attribute controls focus.</p><dl class="domintro"><dt><var title="">textarea</var> . <code title="attr-textarea-type">type</code></dt>
        !           853: 
        !           854:    <dd>
        !           855: 
        !           856:     <p>Returns the string "<code title="">textarea</code>".</p>
        !           857: 
        !           858:    </dd>
        !           859: 
        !           860:    <dt><var title="">textarea</var> . <code title="attr-textarea-value">value</code></dt>
        !           861: 
        !           862:    <dd>
        !           863: 
        !           864:     <p>Returns the current value of the element.</p>
        !           865: 
        !           866:     <p>Can be set, to change the value.</p>
        !           867: 
        !           868:    </dd>
        !           869: 
        !           870:   </dl><div class="example">
        !           871: 
        !           872:    <p>Here is an example of a <code><a href="#the-textarea-element">textarea</a></code> being used for
        !           873:    unrestricted free-form text input in a form:</p>
        !           874: 
        !           875:    <pre>&lt;p&gt;If you have any comments, please let us know: &lt;textarea cols=80 name=comments&gt;&lt;/textarea&gt;&lt;/p&gt;</pre>
        !           876: 
        !           877:   </div><h4 id="the-keygen-element"><span class="secno">4.10.12 </span>The <dfn><code>keygen</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           878:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           879:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           880:    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
        !           881:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
        !           882:    <dt>Contexts in which this element may be used:</dt>
        !           883:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           884:    <dt>Content model:</dt>
        !           885:    <dd>Empty.</dd>
        !           886:    <dt>Content attributes:</dt>
        !           887:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           888:    <dd><code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code></dd>
        !           889:    <dd><code title="attr-keygen-challenge"><a href="#attr-keygen-challenge">challenge</a></code></dd>
        !           890:    <dd><code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code></dd>
        !           891:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
        !           892:    <dd><code title="attr-keygen-keytype"><a href="#attr-keygen-keytype">keytype</a></code></dd>
        !           893:    <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
        !           894:    <dt>DOM interface:</dt>
        !           895:    <dd>
        !           896: <pre class="idl">interface <dfn id="htmlkeygenelement">HTMLKeygenElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           897:            attribute boolean <a href="#dom-fe-autofocus" title="dom-fe-autofocus">autofocus</a>;
        !           898:            attribute DOMString <a href="#dom-keygen-challenge" title="dom-keygen-challenge">challenge</a>;
        !           899:            attribute boolean <a href="#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
        !           900:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
        !           901:            attribute DOMString <a href="#dom-keygen-keytype" title="dom-keygen-keytype">keytype</a>;
        !           902:            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
        !           903: 
        !           904:   readonly attribute DOMString <a href="#dom-keygen-type" title="dom-keygen-type">type</a>;
        !           905: 
        !           906:   readonly attribute boolean <a href="#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
        !           907:   readonly attribute <a href="#validitystate">ValidityState</a> <a href="#dom-cva-validity" title="dom-cva-validity">validity</a>;
        !           908:   readonly attribute DOMString <a href="#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
        !           909:   boolean <a href="#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
        !           910:   void <a href="#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);
        !           911: 
        !           912:   readonly attribute <span>NodeList</span> <a href="#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
        !           913: };</pre>
        !           914:    </dd>
        !           915:   </dl><p>The <code><a href="#the-keygen-element">keygen</a></code> element <a href="#represents">represents</a> a key
        !           916:   pair generator control. When the control's form is submitted, the
        !           917:   private key is stored in the local keystore, and the public key is
        !           918:   packaged and sent to the server.</p><p>The <dfn id="attr-keygen-challenge" title="attr-keygen-challenge"><code>challenge</code></dfn> attribute
        !           919:   may be specified. Its value will be packaged with the submitted
        !           920:   key.</p><p>The <dfn id="attr-keygen-keytype" title="attr-keygen-keytype"><code>keytype</code></dfn>
        !           921:   attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a>. The following
        !           922:   table lists the keywords and states for the attribute &#8212; the
        !           923:   keywords in the left column map to the states listed in the cell in
        !           924:   the second column on the same row as the keyword. User agents are
        !           925:   not required to support these values, and must only recognise values
        !           926:   whose corresponding algorithms they support.</p><table><thead><tr><th> Keyword </th><th> State
        !           927:    </th></tr></thead><tbody><tr><td> <code title="">rsa</code>
        !           928:      </td><td> <i title="">RSA</i>
        !           929: <!-- v2 (see below)
        !           930:     <tr>
        !           931:      <td> <code title="">ec</code>
        !           932:      <td> <i title="">EC</i>
        !           933: -->
        !           934:   </td></tr></tbody></table><p>The <i>invalid value default</i> state is the <i title="">unknown</i> state. The <i>missing value default</i> state
        !           935:   is the <i title="">RSA</i> state, if it is supported, or the <i title="">unknown</i> state otherwise.</p><p class="note">This specification does not specify what key types
        !           936:   user agents are to support &#8212; it is possible for a user agent
        !           937:   to not support any key types at all.</p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
        !           938:   explicitly associate the <code><a href="#the-keygen-element">keygen</a></code> element with its
        !           939:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
        !           940:   attribute represents the element's name. The <code title="attr-fe-disabled"><a href="association-of-controls-and-forms.html#attr-fe-disabled">disabled</a></code> attribute is used to make
        !           941:   the control non-interactive and to prevent its value from being
        !           942:   submitted. The <code title="attr-fe-autofocus"><a href="association-of-controls-and-forms.html#attr-fe-autofocus">autofocus</a></code>
        !           943:   attribute controls focus.</p><dl class="domintro"><dt><var title="">keygen</var> . <code title="attr-keygen-type">type</code></dt>
        !           944: 
        !           945:    <dd>
        !           946: 
        !           947:     <p>Returns the string "<code title="">keygen</code>".</p>
        !           948: 
        !           949:    </dd>
        !           950: 
        !           951:   </dl><p class="note">This specification does not specify how the private
        !           952:   key generated is to be used. It is expected that after receiving the
        !           953:   <code><a href="#signedpublickeyandchallenge">SignedPublicKeyAndChallenge</a></code> (SPKAC) structure, the
        !           954:   server will generate a client certificate and offer it back to the
        !           955:   user for download; this certificate, once downloaded and stored in
        !           956:   the key store along with the private key, can then be used to
        !           957:   authenticate to services that use SSL and certificate
        !           958:   authentication.</p><!-- how does the UA know which private key is associated with a
        !           959:   certificate it gets back after the server has taken the public key
        !           960:   created by <keygen> and turned it into a client cert? --><div class="example">
        !           961: 
        !           962:    <p>To generate a key pair, add the private key to the user's key
        !           963:    store, and submit the public key to the server, markup such as the
        !           964:    following can be used:</p>
        !           965: 
        !           966:    <pre>&lt;form action="processkey.cgi" method="post" enctype="multipart/formdata"&gt;
        !           967:  &lt;p&gt;&lt;keygen name="key"&gt;&lt;/p&gt;
        !           968:  &lt;p&gt;&lt;input type=submit value="Submit key..."&gt;&lt;/p&gt;
        !           969: &lt;/form&gt;</pre>
        !           970: 
        !           971:    <p>The server will then receive a form submission with a packaged
        !           972:    RSA public key as the value of "<code title="">key</code>". This
        !           973:    can then be used for various purposes, such as generating a client
        !           974:    certificate, as mentioned above.</p>
        !           975: 
        !           976:   </div><h4 id="the-output-element"><span class="secno">4.10.13 </span>The <dfn><code>output</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
        !           977:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
        !           978:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           979:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a> and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
        !           980:    <dt>Contexts in which this element may be used:</dt>
        !           981:    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
        !           982:    <dt>Content model:</dt>
        !           983:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
        !           984:    <dt>Content attributes:</dt>
        !           985:    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
        !           986:    <dd><code title="attr-output-for"><a href="#attr-output-for">for</a></code></dd>
        !           987:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
        !           988:    <dd><code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code></dd>
        !           989:    <dt>DOM interface:</dt>
        !           990:    <dd>
        !           991: <pre class="idl">interface <dfn id="htmloutputelement">HTMLOutputElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
        !           992:            attribute DOMString <span title="dom-output-wrap">htmlFor</span>;
        !           993:   readonly attribute <a href="forms.html#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
        !           994:            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
        !           995: 
        !           996:   readonly attribute DOMString <a href="#dom-output-type" title="dom-output-type">type</a>;
        !           997:            attribute DOMString <a href="#dom-output-defaultvalue" title="dom-output-defaultValue">defaultValue</a>;
        !           998:            attribute DOMString <a href="#dom-output-value" title="dom-output-value">value</a>;
        !           999: 
        !          1000:   readonly attribute boolean <a href="#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
        !          1001:   readonly attribute <a href="#validitystate">ValidityState</a> <a href="#dom-cva-validity" title="dom-cva-validity">validity</a>;
        !          1002:   readonly attribute DOMString <a href="#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
        !          1003:   boolean <a href="#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
        !          1004:   void <a href="#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(in DOMString error);
        !          1005: };</pre>
        !          1006:    </dd>
        !          1007:   </dl><p>The <code><a href="#the-output-element">output</a></code> element <a href="#represents">represents</a> the result of a
        !          1008:   calculation.</p><p>The <dfn id="attr-output-for" title="attr-output-for"><code>for</code></dfn> content
        !          1009:   attribute allows an explicit relationship to be made between the
        !          1010:   result of a calculation and the elements that represent the values
        !          1011:   that went into the calculation or that otherwise influenced the
        !          1012:   calculation. The <code title="attr-output-for"><a href="#attr-output-for">for</a></code> attribute,
        !          1013:   if specified, must contain a string consisting of an <a href="common-microsyntaxes.html#unordered-set-of-unique-space-separated-tokens">unordered
        !          1014:   set of unique space-separated tokens</a>, each of which must have
        !          1015:   the value of an ID of an element in the same
        !          1016:   <code>Document</code>.</p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
        !          1017:   explicitly associate the <code><a href="#the-output-element">output</a></code> element with its
        !          1018:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code>
        !          1019:   attribute represents the element's name.</p><dl class="domintro"><dt><var title="">output</var> . <code title="dom-output-value"><a href="#dom-output-value">value</a></code> [ = <var title="">value</var> ]</dt>
        !          1020: 
        !          1021:    <dd>
        !          1022: 
        !          1023:     <p>Returns the element's current value.</p>
        !          1024: 
        !          1025:     <p>Can be set, to change the value.</p>
        !          1026: 
        !          1027:    </dd>
        !          1028: 
        !          1029:    <dt><var title="">output</var> . <code title="dom-output-defaultValue"><a href="#dom-output-defaultvalue">defaultValue</a></code> [ = <var title="">value</var> ]</dt>
        !          1030: 
        !          1031:    <dd>
        !          1032: 
        !          1033:     <p>Returns the element's current default value.</p>
        !          1034: 
        !          1035:     <p>Can be set, to change the default value.</p>
        !          1036: 
        !          1037:    </dd>
        !          1038: 
        !          1039:    <dt><var title="">output</var> . <code title="dom-output-type"><a href="#dom-output-type">type</a></code></dt>
        !          1040: 
        !          1041:    <dd>
        !          1042: 
        !          1043:     <p>Returns the string "<code title="">output</code>".</p>
        !          1044: 
        !          1045:    </dd>
        !          1046: 
        !          1047:   </dl><div class="example">
        !          1048: 
        !          1049:    <p>A simple calculator could use <code><a href="#the-output-element">output</a></code> for its
        !          1050:    display of calculated results:</p>
        !          1051: 
        !          1052:    <pre>&lt;form onsubmit="return false"&gt;
        !          1053:  &lt;input name=a type=number step=any&gt; +
        !          1054:  &lt;input name=b type=number step=any&gt; =
        !          1055:  &lt;output onforminput="value = a.value + b.value"&gt;&lt;/output&gt;
        !          1056: &lt;/form&gt;</pre>
        !          1057: 
        !          1058:   </div></body></html>

Webmaster