Annotation of html5/spec-author-view/commands.html, revision 1.611

1.568     mike        1: <!doctype html>
1.608     mike        2: <html lang="en-US-x-Hixie" xml:lang="en-US-x-Hixie" xmlns="http://www.w3.org/1999/xhtml"><meta content="text-html; charset=utf-8" http-equiv="Content-Type"><meta content="HTML Tidy for HTML5 (experimental) for Linux/x86 http://github.com/w3c/tidy-html5/tree/c63cc39" name="generator"><meta charset="utf-8"><title>4.11.5 Commands &mdash; HTML5</title><link href="style.css" rel="stylesheet"><style type="text-css">
                      3: /**/
                      4: /**/
                      5: 
                      6:    .applies thead th > * { display: block; }
                      7:    .applies thead code { display: block; }
                      8:    .applies tbody th { white-space: nowrap; }
                      9:    .applies td { text-align: center; }
                     10:    .applies .yes { background: yellow; }
                     11: 
                     12:    .matrix, .matrix td { border: hidden; text-align: right; }
                     13:    .matrix { margin-left: 2em; }
                     14: 
                     15:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                     16:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                     17:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                     18: 
                     19:    td.eg { border-width: thin; text-align: center; }
                     20: 
                     21:    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
                     22:    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
                     23:    #table-example-1 caption { padding-bottom: 0.5em; }
                     24:    #table-example-1 thead, #table-example-1 tbody { border: none; }
                     25:    #table-example-1 th, #table-example-1 td { border: solid thin; }
                     26:    #table-example-1 th { font-weight: normal; }
                     27:    #table-example-1 td { border-style: none solid; vertical-align: top; }
                     28:    #table-example-1 th { padding: 0.5em; vertical-align: middle; text-align: center; }
                     29:    #table-example-1 tbody tr:first-child td { padding-top: 0.5em; }
                     30:    #table-example-1 tbody tr:last-child td { padding-bottom: 1.5em; }
                     31:    #table-example-1 tbody td:first-child { padding-left: 2.5em; padding-right: 0; width: 9em; }
                     32:    #table-example-1 tbody td:first-child::after { content: leader(". "); }
                     33:    #table-example-1 tbody td { padding-left: 2em; padding-right: 2em; }
                     34:    #table-example-1 tbody td:first-child + td { width: 10em; }
                     35:    #table-example-1 tbody td:first-child + td ~ td { width: 2.5em; }
                     36:    #table-example-1 tbody td:first-child + td + td + td ~ td { width: 1.25em; }
                     37: 
                     38:    .apple-table-examples { border: none; border-collapse: separate; border-spacing: 1.5em 0em; width: 40em; margin-left: 3em; }
                     39:    .apple-table-examples * { font-family: "Times", serif; }
                     40:    .apple-table-examples td, .apple-table-examples th { border: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
                     41:    .apple-table-examples tbody th:first-child { border-left: none; width: 100%; }
                     42:    .apple-table-examples thead th:first-child ~ th { font-size: smaller; font-weight: bolder; border-bottom: solid 2px; text-align: center; }
                     43:    .apple-table-examples tbody th::after, .apple-table-examples tfoot th::after { content: leader(". ") }
                     44:    .apple-table-examples tbody th, .apple-table-examples tfoot th { font: inherit; text-align: left; }
                     45:    .apple-table-examples td { text-align: right; vertical-align: top; }
                     46:    .apple-table-examples.e1 tbody tr:last-child td { border-bottom: solid 1px; }
                     47:    .apple-table-examples.e1 tbody + tbody tr:last-child td { border-bottom: double 3px; }
                     48:    .apple-table-examples.e2 th[scope=row] { padding-left: 1em; }
                     49:    .apple-table-examples sup { line-height: 0; }
                     50: 
                     51:    .details-example img { vertical-align: top; }
                     52: 
                     53:    #base64-table {
                     54:      white-space: nowrap;
                     55:      font-size: 0.6em;
                     56:      column-width: 6em;
                     57:      column-count: 5;
                     58:      column-gap: 1em;
                     59:      -moz-column-width: 6em;
                     60:      -moz-column-count: 5;
                     61:      -moz-column-gap: 1em;
                     62:      -webkit-column-width: 6em;
                     63:      -webkit-column-count: 5;
                     64:      -webkit-column-gap: 1em;
                     65:    }
                     66:    #base64-table thead { display: none; }
                     67:    #base64-table * { border: none; }
                     68:    #base64-table tbody td:first-child:after { content: ':'; }
                     69:    #base64-table tbody td:last-child { text-align: right; }
                     70: 
                     71:    #named-character-references-table {
                     72:      white-space: nowrap;
                     73:      font-size: 0.6em;
                     74:      column-width: 30em;
                     75:      column-gap: 1em;
                     76:      -moz-column-width: 30em;
                     77:      -moz-column-gap: 1em;
                     78:      -webkit-column-width: 30em;
                     79:      -webkit-column-gap: 1em;
                     80:    }
                     81:    #named-character-references-table > table > tbody > tr > td:first-child + td,
                     82:    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
                     83:    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
                     84:    #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
                     85: 
                     86:    .glyph.control { color: red; }
                     87: 
                     88:    @font-face {
                     89:      font-family: 'Essays1743';
                     90:      src: url('fonts/Essays1743.ttf');
                     91:    }
                     92:    @font-face {
                     93:      font-family: 'Essays1743';
                     94:      font-weight: bold;
                     95:      src: url('fonts/Essays1743-Bold.ttf');
                     96:    }
                     97:    @font-face {
                     98:      font-family: 'Essays1743';
                     99:      font-style: italic;
                    100:      src: url('fonts/Essays1743-Italic.ttf');
                    101:    }
                    102:    @font-face {
                    103:      font-family: 'Essays1743';
                    104:      font-style: italic;
                    105:      font-weight: bold;
                    106:      src: url('fonts/Essays1743-BoldItalic.ttf');
                    107:    }
                    108: 
                    109: /**/
                    110: /**/
                    111: </style><link href="data:text/css," id="complete" rel="stylesheet" title="Complete specification"><link href="data:text/css,.impl%20{%20display:%20none;%20}%0Ahtml%20{%20border:%20solid%20yellow;%20}%20.domintro:before%20{%20display:%20none;%20}" id="author" rel="alternate stylesheet" title="Author documentation only"><link href="data:text/css,.impl%20{%20background:%20%23FFEEEE;%20}%20.domintro:before%20{%20background:%20%23FFEEEE;%20}" id="highlight" rel="alternate stylesheet" title="Highlight implementation requirements"><style type="text-css">
1.604     mike      112: /**/
                    113: /**/
1.595     mike      114:    pre { margin-left: 2em; white-space: pre-wrap; }
                    115:    h2 { margin: 3em 0 1em 0; }
                    116:    h3 { margin: 2.5em 0 1em 0; }
                    117:    h4 { margin: 2.5em 0 0.75em 0; }
                    118:    h5, h6 { margin: 2.5em 0 1em; }
                    119:    h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
                    120:    h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
                    121:    p { margin: 1em 0; }
                    122:    hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
                    123:    dl, dd { margin-top: 0; margin-bottom: 0; }
                    124:    dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
                    125:    dt + dt { margin-top: 0; }
                    126:    dd dt { margin-top: 0.25em; margin-bottom: 0; }
                    127:    dd p { margin-top: 0; }
                    128:    dd dl + p { margin-top: 1em; }
                    129:    dd table + p { margin-top: 1em; }
                    130:    p + * > li, dd li { margin: 1em 0; }
                    131:    dt, dfn { font-weight: bold; font-style: normal; }
                    132:    i, em { font-style: italic; }
                    133:    dt dfn { font-style: italic; }
                    134:    pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
                    135:    pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
                    136:    pre em { font-weight: bolder; font-style: normal; }
                    137:    @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
                    138:    var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
                    139:    table { border-collapse: collapse; border-style: hidden hidden none hidden; }
                    140:    table thead, table tbody { border-bottom: solid; }
                    141:    table tbody th:first-child { border-left: solid; }
                    142:    table tbody th { text-align: left; }
                    143:    table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
                    144:    blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
                    145: 
                    146:    .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
                    147:    .matrix, .matrix td { border: none; text-align: right; }
                    148:    .matrix { margin-left: 2em; }
                    149:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                    150:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                    151:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                    152: 
                    153:    .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
                    154:    img.extra, p.overview { float: right; }
                    155:    pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
                    156:    pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
                    157:    pre.idl::before { content: "IDL"; font: bold small sans-serif; padding: 0.5em; background: white; position: absolute; top: 0; margin: -1px 0 0 -4em; width: 1.5em; border: thin solid; border-radius: 0 0 0 0.5em }
                    158:    pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
                    159:    pre.css:first-line { color: #AAAA50; }
                    160:    dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
                    161:    hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
                    162:    dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
                    163:    dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
                    164:    dl.domintro dd p { margin: 0.5em 0; }
                    165:    dl.domintro:before { display: table; margin: -1em -0.5em -0.5em auto; width: auto; content: 'This box is non-normative. Implementation requirements are given below this box.'; color: black; font-style: italic; border: solid 2px; background: white; padding: 0 0.25em; }
                    166:    dl.switch { padding-left: 2em; }
                    167:    dl.switch > dt { text-indent: -1.5em; }
                    168:    dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
                    169:    dl.triple { padding: 0 0 0 1em; }
                    170:    dl.triple dt, dl.triple dd { margin: 0; display: inline }
                    171:    dl.triple dt:after { content: ':'; }
                    172:    dl.triple dd:after { content: '\A'; white-space: pre; }
                    173:    .diff-old { text-decoration: line-through; color: silver; background: transparent; }
                    174:    .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
                    175:    a .diff-new { border-bottom: 1px blue solid; }
                    176: 
1.604     mike      177:    figure.diagrams { border: double black; background: white; padding: 1em; }
                    178:    figure.diagrams img { display: block; margin: 1em auto; } 
                    179: 
1.595     mike      180:    h2 { page-break-before: always; }
                    181:    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
                    182:    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
                    183: 
                    184:    p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
1.608     mike      185:    li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]) { border-bottom: solid #9999CC; }
1.595     mike      186: 
                    187:    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
                    188:    div.head p { margin: 0; }
                    189:    div.head h1 { margin: 0; }
                    190:    div.head .logo { float: right; margin: 0 1em; }
                    191:    div.head .logo img { border: none } /* remove border from top image */
                    192:    div.head dl { margin: 1em 0; }
                    193:    div.head p.copyright, div.head p.alt { font-size: x-small; font-style: oblique; margin: 0; }
                    194: 
                    195:    body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
                    196:    body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
                    197:    body > .toc > li > * { margin-bottom: 0.5em; }
                    198:    body > .toc > li > * > li > * { margin-bottom: 0.25em; }
                    199:    .toc, .toc li { list-style: none; }
                    200: 
                    201:    .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
                    202:    .brief li { margin: 0; padding: 0; }
                    203:    .brief li p { margin: 0; padding: 0; }
                    204: 
                    205:    .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
                    206:    .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
                    207:    .category-list li { display: inline; }
                    208:    .category-list li:not(:last-child)::after { content: ', '; }
                    209:    .category-list li > span, .category-list li > a { text-transform: lowercase; }
1.604     mike      210:    .category-list li * { text-transform: none; } /* don't  */
1.595     mike      211: 
                    212:    .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
                    213:    .XXX > :first-child { margin-top: 0; }
                    214:    p .XXX { line-height: 3em; }
                    215:    .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
                    216:    .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
                    217:    .annotation :link, .annotation :visited { color: inherit; }
                    218:    .annotation :link:hover, .annotation :visited:hover { background: transparent; }
                    219:    .annotation span { border: none ! important; }
                    220:    .note { color: green; background: transparent; font-family: sans-serif; }
                    221:    .warning { color: red; background: transparent; }
                    222:    .note, .warning { font-weight: bolder; font-style: italic; }
                    223:    .note em, .warning em, .note i, .warning i { font-style: normal; }
                    224:    p.note, div.note { padding: 0.5em 2em; }
                    225:    span.note { padding: 0 2em; }
                    226:    .note p:first-child, .warning p:first-child { margin-top: 0; }
                    227:    .note p:last-child, .warning p:last-child { margin-bottom: 0; }
                    228:    .warning:before { font-style: normal; }
                    229:    p.note:before { content: 'Note: '; }
                    230:    p.warning:before { content: '\26A0 Warning! '; }
                    231: 
                    232:    .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
                    233:    .bookkeeping { font-size: 0.8em; margin: 2em 0; }
                    234:    .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
                    235:    .bookkeeping dt { margin: 0.5em 2em 0; }
                    236:    .bookkeeping dd { margin: 0 3em 0.5em; }
                    237: 
                    238:    h4 { position: relative; z-index: 3; }
                    239:    h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
                    240:    .element {
                    241:      background: #EEEEFF;
                    242:      color: black;
                    243:      margin: 0 0 1em 0.15em;
                    244:      padding: 0 1em 0.25em 0.75em;
                    245:      border-left: solid #9999FF 0.25em;
                    246:      position: relative;
                    247:      z-index: 1;
                    248:    }
                    249:    .element:before {
                    250:      position: absolute;
                    251:      z-index: 2;
                    252:      top: 0;
                    253:      left: -1.15em;
                    254:      height: 2em;
                    255:      width: 0.9em;
                    256:      background: #EEEEFF;
                    257:      content: ' ';
                    258:      border-style: none none solid solid;
                    259:      border-color: #9999FF;
                    260:      border-width: 0.25em;
                    261:    }
                    262: 
                    263:    .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
                    264:    td > .example:only-child { margin: 0 0 0 0.1em; }
                    265: 
                    266:    ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
                    267:    ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
                    268:    ul.domTree li li { list-style: none; }
                    269:    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; }
                    270:    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; }
                    271:    ul.domTree span { font-style: italic; font-family: serif; }
                    272:    ul.domTree .t1 code { color: purple; font-weight: bold; }
                    273:    ul.domTree .t2 { font-style: normal; font-family: monospace; }
                    274:    ul.domTree .t2 .name { color: black; font-weight: bold; }
                    275:    ul.domTree .t2 .value { color: blue; font-weight: normal; }
                    276:    ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
                    277:    ul.domTree .t7 code, .domTree .t8 code { color: green; }
                    278:    ul.domTree .t10 code { color: teal; }
                    279: 
                    280:    body.dfnEnabled dfn { cursor: pointer; }
                    281:    .dfnPanel {
                    282:      display: inline;
                    283:      position: absolute;
                    284:      z-index: 10;
                    285:      height: auto;
                    286:      width: auto;
                    287:      padding: 0.5em 0.75em;
                    288:      font: small sans-serif, Droid Sans Fallback;
                    289:      background: #DDDDDD;
                    290:      color: black;
                    291:      border: outset 0.2em;
                    292:    }
                    293:    .dfnPanel * { margin: 0; padding: 0; font: inherit; text-indent: 0; }
                    294:    .dfnPanel :link, .dfnPanel :visited { color: black; }
                    295:    .dfnPanel p { font-weight: bolder; }
                    296:    .dfnPanel * + p { margin-top: 0.25em; }
                    297:    .dfnPanel li { list-style-position: inside; }
                    298: 
                    299:    #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
                    300:    #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
                    301:    #configUI p label { display: block; }
                    302:    #configUI #updateUI, #configUI .loginUI { text-align: center; }
                    303:    #configUI input[type=button] { display: block; margin: auto; }
                    304: 
                    305:    fieldset { margin: 1em; padding: 0.5em 1em; }
                    306:    fieldset > legend + * { margin-top: 0; }
                    307:    fieldset > :last-child { margin-bottom: 0; }
                    308:    fieldset p { margin: 0.5em 0; }
                    309: 
1.604     mike      310:    .stability {
                    311:      position: fixed;
                    312:      bottom: 0;
                    313:      left: 0; right: 0;
                    314:      margin: 0 auto 0 auto;
                    315:      width: 50%;
                    316:      background: maroon; color: yellow;
                    317:      -webkit-border-radius: 1em 1em 0 0;
                    318:      -moz-border-radius: 1em 1em 0 0;
                    319:      border-radius: 1em 1em 0 0;
                    320:      -moz-box-shadow: 0 0 1em #500;
                    321:      -webkit-box-shadow: 0 0 1em #500;
                    322:      box-shadow: 0 0 1em red;
                    323:      padding: 0.5em 1em;
                    324:      text-align: center;
                    325:    }
                    326:    .stability strong {
                    327:      display: block;
                    328:    }
                    329:    .stability input {
1.608     mike      330:      -moz-appearance: none; -webkit-appearance: none; margin: 0; 
                    331:      border: 0; padding: 0.25em 0.5em; background: transparent; color: black;
1.604     mike      332:      position: absolute; top: -0.5em; right: 0; font: 1.25em sans-serif; text-align: center;
                    333:    }
                    334:    .stability input:hover {
                    335:      color: white;
                    336:      text-shadow: 0 0 2px black;
                    337:    }
                    338:    .stability input:active {
                    339:      padding: 0.3em 0.45em 0.2em 0.55em;
                    340:    }
                    341:    .stability :link, .stability :visited,
                    342:    .stability :link:hover, .stability :visited:hover {
                    343:      background: transparent;
                    344:      color: white;
                    345:    }
                    346: 
                    347: /**/
                    348: /**/
1.608     mike      349: </style><link href="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet" type="text-css"><meta content="noindex" name="robots"><script>
1.604     mike      350: 
                    351: 
                    352:    function getCookie(name) {
                    353:      var params = location.search.substr(1).split("&");
                    354:      for (var index = 0; index < params.length; index++) {
                    355:        if (params[index] == name)
                    356:          return "1";
                    357:        var data = params[index].split("=");
                    358:        if (data[0] == name)
                    359:          return unescape(data[1]);
                    360:      }
                    361:      var cookies = document.cookie.split("; ");
                    362:      for (var index = 0; index < cookies.length; index++) {
                    363:        var data = cookies[index].split("=");
                    364:        if (data[0] == name)
                    365:          return unescape(data[1]);
                    366:      }
                    367:      return null;
1.29      mike      368:    }
                    369: 
1.604     mike      370: 
                    371: </script><link href="the-menu-element.html" rel="prev" title="4.11.4 The menu element">
1.569     mike      372:   <link href="Overview.html#contents" rel="contents" title="Table of contents">
1.561     mike      373:   <link href="links.html" rel="next" title="4.12 Links">
1.604     mike      374:   <body class="split chapter" onload="fixBrokenLink();"><div class="head" id="head" xmlns="">
1.458     mike      375: <div aria-haspopup="true" id="jumpIndexA-button" role="button" tabindex="0">jump
1.604     mike      376: <div id="jumpIndexA">
                    377: <ul><li><a class="noindex" href="the-a-element.html#the-a-element">a</a><a class="noindex" href="the-abbr-element.html#the-abbr-element">abbr</a><a class="noindex" href="the-address-element.html#the-address-element">address</a><a class="noindex" href="the-area-element.html#the-area-element">area</a><a class="noindex" href="the-article-element.html#the-article-element">article</a><a class="noindex" href="the-aside-element.html#the-aside-element">aside</a><a class="noindex" href="the-audio-element.html#the-audio-element">audio</a></li>
                    378: </ul><ul><li><a class="noindex" href="the-b-element.html#the-b-element">b</a><a class="noindex" href="the-base-element.html#the-base-element">base</a><a class="noindex" href="the-bdi-element.html#the-bdi-element">bdi</a><a class="noindex" href="the-bdo-element.html#the-bdo-element">bdo</a><a class="noindex" href="the-blockquote-element.html#the-blockquote-element">blockquote</a><a class="noindex" href="the-body-element.html#the-body-element">body</a><a class="noindex" href="the-br-element.html#the-br-element">br</a><a class="noindex" href="the-button-element.html#the-button-element">button</a></li>
                    379: </ul><ul><li><a class="noindex" href="the-canvas-element.html#the-canvas-element">canvas</a><a class="noindex" href="the-caption-element.html#the-caption-element">caption</a><a class="noindex" href="the-cite-element.html#the-cite-element">cite</a><a class="noindex" href="the-code-element.html#the-code-element">code</a><a class="noindex" href="the-col-element.html#the-col-element">col</a><a class="noindex" href="the-colgroup-element.html#the-colgroup-element">colgroup</a><a class="noindex" href="the-command-element.html#the-command-element">command</a></li>
                    380: </ul><ul><li><a class="noindex" href="the-datalist-element.html#the-datalist-element">datalist</a><a class="noindex" href="the-dd-element.html#the-dd-element">dd</a><a class="noindex" href="the-del-element.html#the-del-element">del</a><a class="noindex" href="the-details-element.html#the-details-element">details</a><a class="noindex" href="the-dfn-element.html#the-dfn-element">dfn</a><a class="noindex" href="the-div-element.html#the-div-element">div</a><a class="noindex" href="the-dl-element.html#the-dl-element">dl</a><a class="noindex" href="the-dt-element.html#the-dt-element">dt</a></li>
                    381: </ul><ul><li><a class="noindex" href="the-em-element.html#the-em-element">em</a><a class="noindex" href="the-embed-element.html#the-embed-element">embed</a><a class="noindex" href="the-fieldset-element.html#the-fieldset-element">fieldset</a><a class="noindex" href="the-figcaption-element.html#the-figcaption-element">figcaption</a><a class="noindex" href="the-figure-element.html#the-figure-element">figure</a><a class="noindex" href="the-footer-element.html#the-footer-element">footer</a><a class="noindex" href="the-form-element.html#the-form-element">form</a></li>
1.610     mike      382: </ul><ul><li><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h1" reference in the full HTML5 spec.'>h1</a><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h2" reference in the full HTML5 spec.'>h2</a><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h3" reference in the full HTML5 spec.'>h3</a><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h4" reference in the full HTML5 spec.'>h4</a><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h5" reference in the full HTML5 spec.'>h5</a><a class="full-spec-link" href="http://dev.w3.org/html5/spec/.html#the-h1-h2-h3-h4-h5-and-h6-elements" title='Read about this "h6" reference in the full HTML5 spec.'>h6</a><a class="noindex" href="the-head-element.html#the-head-element">head</a><a class="noindex" href="the-header-element.html#the-header-element">header</a><a class="noindex" href="the-hgroup-element.html#the-hgroup-element">hgroup</a><a class="noindex" href="the-hr-element.html#the-hr-element">hr</a><a class="noindex" href="the-html-element.html#the-html-element">html</a></li>
1.604     mike      383: </ul><ul><li><a class="noindex" href="the-i-element.html#the-i-element">i</a><a class="noindex" href="the-iframe-element.html#the-iframe-element">iframe</a><a class="noindex" href="the-img-element.html#the-img-element">img</a><a class="noindex" href="the-input-element.html#the-input-element">input</a><a class="noindex" href="the-ins-element.html#the-ins-element">ins</a><a class="noindex" href="the-kbd-element.html#the-kbd-element">kbd</a><a class="noindex" href="the-keygen-element.html#the-keygen-element">keygen</a></li>
                    384: </ul><ul><li><a class="noindex" href="the-label-element.html#the-label-element">label</a><a class="noindex" href="the-legend-element.html#the-legend-element">legend</a><a class="noindex" href="the-li-element.html#the-li-element">li</a><a class="noindex" href="the-link-element.html#the-link-element">link</a><a class="noindex" href="the-map-element.html#the-map-element">map</a><a class="noindex" href="the-mark-element.html#the-mark-element">mark</a><a class="noindex" href="the-menu-element.html#the-menu-element">menu</a><a class="noindex" href="the-meta-element.html#the-meta-element">meta</a><a class="noindex" href="the-meter-element.html#the-meter-element">meter</a></li>
                    385: </ul><ul><li><a class="noindex" href="the-nav-element.html#the-nav-element">nav</a><a class="noindex" href="the-noscript-element.html#the-noscript-element">noscript</a><a class="noindex" href="the-object-element.html#the-object-element">object</a><a class="noindex" href="the-ol-element.html#the-ol-element">ol</a><a class="noindex" href="the-optgroup-element.html#the-optgroup-element">optgroup</a><a class="noindex" href="the-option-element.html#the-option-element">option</a><a class="noindex" href="the-output-element.html#the-output-element">output</a></li>
                    386: </ul><ul><li><a class="noindex" href="the-p-element.html#the-p-element">p</a><a class="noindex" href="the-param-element.html#the-param-element">param</a><a class="noindex" href="the-pre-element.html#the-pre-element">pre</a><a class="noindex" href="the-progress-element.html#the-progress-element">progress</a><a class="noindex" href="the-q-element.html#the-q-element">q</a><a class="noindex" href="the-rp-element.html#the-rp-element">rp</a><a class="noindex" href="the-rt-element.html#the-rt-element">rt</a><a class="noindex" href="the-ruby-element.html#the-ruby-element">ruby</a></li>
                    387: </ul><ul><li><a class="noindex" href="the-s-element.html#the-s-element">s</a><a class="noindex" href="the-samp-element.html#the-samp-element">samp</a><a class="noindex" href="the-script-element.html#the-script-element">script</a><a class="noindex" href="the-section-element.html#the-section-element">section</a><a class="noindex" href="the-select-element.html#the-select-element">select</a><a class="noindex" href="the-small-element.html#the-small-element">small</a><a class="noindex" href="the-source-element.html#the-source-element">source</a><a class="noindex" href="the-span-element.html#the-span-element">span</a></li>
                    388: </ul><ul><li><a class="noindex" href="the-strong-element.html#the-strong-element">strong</a><a class="noindex" href="the-style-element.html#the-style-element">style</a><a class="noindex" href="the-sub-and-sup-elements.html#the-sub-and-sup-elements">sub</a><a class="noindex" href="the-summary-element.html#the-summary-element">summary</a><a class="noindex" href="the-sub-and-sup-elements.html#the-sub-and-sup-elements">sup</a></li>
                    389: </ul><ul><li><a class="noindex" href="the-table-element.html#the-table-element">table</a><a class="noindex" href="the-tbody-element.html#the-tbody-element">tbody</a><a class="noindex" href="the-td-element.html#the-td-element">td</a><a class="noindex" href="the-textarea-element.html#the-textarea-element">textarea</a><a class="noindex" href="the-tfoot-element.html#the-tfoot-element">tfoot</a><a class="noindex" href="the-th-element.html#the-th-element">th</a><a class="noindex" href="the-thead-element.html#the-thead-element">thead</a><a class="noindex" href="the-time-element.html#the-time-element">time</a><a class="noindex" href="the-title-element.html#the-title-element">title</a></li>
                    390: </ul><ul><li><a class="noindex" href="the-tr-element.html#the-tr-element">tr</a><a class="noindex" href="the-track-element.html#the-track-element">track</a><a class="noindex" href="the-u-element.html#the-u-element">u</a><a class="noindex" href="the-ul-element.html#the-ul-element">ul</a><a class="noindex" href="the-var-element.html#the-var-element">var</a><a class="noindex" href="the-video-element.html#the-video-element">video</a><a class="noindex" href="the-wbr-element.html#the-wbr-element">wbr</a></li>
                    391: </ul><ul class="jumpIndexA-other"><li><a class="noindex" href="global-attributes.html#global-attributes">global
                    392: attributes</a><a class="noindex" href="index-of-terms.html#index-of-terms">terms</a></li>
                    393: </ul></div>
                    394: </div>
                    395: <script src="jump-indexes.js">
                    396: </script><p xmlns="http://www.w3.org/1999/xhtml"><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
                    397: <h1 xmlns="http://www.w3.org/1999/xhtml">HTML5</h1>
                    398: </div>
                    399: <div class="prev_next">
1.603     mike      400:    <a href="the-menu-element.html">&slarr; 4.11.4 The menu element</a> &ndash;
1.151     mike      401:    <a href="Overview.html#contents">Table of contents</a> &ndash;
1.603     mike      402:    <a href="links.html">4.12 Links &srarr;</a>
1.604     mike      403:   <ol class="toc"><li><ol><li><ol><li><a href="commands.html#commands"><span class="secno">4.11.5</span>
                    404: Commands</a><li><a href="commands.html#the-dialog-element" id="4.11.6-the-dialog-element"><span class="secno">4.11.6</span> The
                    405: <code>dialog</code> element</a>
                    406: <ol><li><a href="commands.html#anchor-points"><span class="secno">4.11.6.1</span>
                    407: Anchor points</a></ol></ol></ol></ol></div>
                    408: 
                    409:   <h4 id="commands"><span class="secno">4.11.5</span> Commands</h4>
                    410: <p>A <dfn id="concept-command" title="concept-command">command</dfn> is the abstraction behind menu
                    411: items, buttons, and links. Once a command is defined, other parts
                    412: of the interface can refer to the same command, allowing many
                    413: access points to a single feature to share facets such as the
                    414: <a href="#command-facet-disabledstate" id="command-facet-disabledstate_0" title="command-facet-DisabledState">Disabled State</a>.</p>
                    415: <p id="facets">Commands are defined to have the following <dfn id="concept-facet" title="concept-facet">facets</dfn>:</p>
                    416: <dl><dt><dfn id="command-facet-type" title="command-facet-Type">Type</dfn></dt>
                    417: <dd>The kind of command: "command", meaning it is a normal command;
                    418: "radio", meaning that triggering the command will, amongst other
                    419: things, set the <a href="#command-facet-checkedstate" id="command-facet-checkedstate_2" title="command-facet-CheckedState">Checked State</a> to true (and
                    420: probably uncheck some other commands); or "checkbox", meaning that
                    421: triggering the command will, amongst other things, toggle the value
                    422: of the <a href="#command-facet-checkedstate" id="command-facet-checkedstate_3" title="command-facet-CheckedState">Checked State</a>.</dd>
                    423: <dt><dfn id="command-facet-id" title="command-facet-ID">ID</dfn></dt>
                    424: <dd>The name of the command, for referring to the command from the
                    425: markup or from script. If a command has no ID, it is an <dfn id="anonymous-command">anonymous command</dfn>.</dd>
                    426: <dt><dfn id="command-facet-label" title="command-facet-Label">Label</dfn></dt>
                    427: <dd>The name of the command as seen by the user.</dd>
                    428: <dt><dfn id="command-facet-hint" title="command-facet-Hint">Hint</dfn></dt>
                    429: <dd>A helpful or descriptive string that can be shown to the
                    430: user.</dd>
                    431: <dt><dfn id="command-facet-icon" title="command-facet-Icon">Icon</dfn></dt>
                    432: <dd>An <a href="urls.html#absolute-url" id="absolute-url_7">absolute URL</a>
                    433: identifying a graphical image that represents the action. A command
                    434: might not have an Icon.</dd>
                    435: <!--
                    436:    changing base URLs might change the icon -->
                    437: <dt><dfn id="command-facet-accesskey" title="command-facet-AccessKey">Access Key</dfn></dt>
                    438: <dd>A key combination selected by the user agent that triggers the
                    439: command. A command might not have an Access Key.</dd>
                    440: <dt><dfn id="command-facet-hiddenstate" title="command-facet-HiddenState">Hidden State</dfn></dt>
                    441: <dd>Whether the command is hidden or not (basically, whether it
                    442: should be shown in menus).</dd>
                    443: <dt><dfn id="command-facet-disabledstate" title="command-facet-DisabledState">Disabled State</dfn></dt>
                    444: <dd>Whether the command is relevant and can be triggered or
                    445: not.</dd>
                    446: <dt><dfn id="command-facet-checkedstate" title="command-facet-CheckedState">Checked State</dfn></dt>
                    447: <dd>Whether the command is checked or not.</dd>
                    448: <dt><dfn id="command-facet-action" title="command-facet-Action">Action</dfn></dt>
                    449: <dd>The actual effect that triggering the command will have. This
                    450: could be a scripted event handler, a <a href="urls.html#url" id="url_16">URL</a> to which to <a href="#navigate">navigate</a>, or a
                    451: form submission.</dd>
                    452: <!-- v2COMMAND
                    453:    <dt><dfn title="command-facet-Triggers">Triggers</dfn></dt>
                    454: 
                    455:    <dd>The list of elements that can trigger the command. The element
                    456:    defining a command is always in the list of elements that can
                    457:    trigger the command. For anonymous commands, only the element
                    458:    defining the command is on the list, since other elements have no
                    459:    way to refer to it.</dd>
                    460: --></dl><!--TOPIC:DOM APIs--><p>These facets are exposed on elements using the <dfn id="command-api">command API</dfn>:</p>
1.611   ! mike      461: <dl class="domintro"><dt><var title="">element</var> . <code title="dom-command-ro-commandType"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commandtype">commandType</a></code></dt>
1.604     mike      462: <dd>
                    463: <p>Exposes the <a href="#command-facet-type" id="command-facet-type_3" title="command-facet-Type">Type</a> facet of
                    464: the command.</p>
                    465: </dd>
1.611   ! mike      466: <dt><var title="">element</var> . <code title="dom-Element-id"><a href="http://dev.w3.org/html5/spec/single-page.html#domelement-id">id</a></code></dt>
1.604     mike      467: <dd>
                    468: <p>Exposes the <a href="#command-facet-id" id="command-facet-id_0" title="command-facet-ID">ID</a> facet of the command.</p>
                    469: </dd>
1.611   ! mike      470: <dt><var title="">element</var> . <code title="dom-command-ro-commandLabel"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commandlabel">commandLabel</a></code></dt>
1.604     mike      471: <dd>
                    472: <p>Exposes the <a href="#command-facet-label" id="command-facet-label_0" title="command-facet-Label">Label</a> facet
                    473: of the command.</p>
                    474: </dd>
1.611   ! mike      475: <dt><var title="">element</var> . <code title="dom-title"><a href="http://dev.w3.org/html5/spec/single-page.html#domtitle">title</a></code></dt>
1.604     mike      476: <dd>
                    477: <p>Exposes the <a href="#command-facet-hint" id="command-facet-hint_0" title="command-facet-Hint">Hint</a> facet of
                    478: the command.</p>
                    479: </dd>
1.611   ! mike      480: <dt><var title="">element</var> . <code title="dom-command-ro-commandIcon"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commandicon">commandIcon</a></code></dt>
1.604     mike      481: <dd>
                    482: <p>Exposes the <a href="#command-facet-icon" id="command-facet-icon_0" title="command-facet-Icon">Icon</a> facet of
                    483: the command.</p>
                    484: </dd>
1.611   ! mike      485: <dt><var title="">element</var> . <code title="dom-accessKeyLabel"><a href="http://dev.w3.org/html5/spec/single-page.html#domaccesskeylabel">accessKeyLabel</a></code></dt>
1.604     mike      486: <dd>
                    487: <p>Exposes the <a href="#command-facet-accesskey" id="command-facet-accesskey_0" title="command-facet-AccessKey">Access
                    488: Key</a> facet of the command.</p>
                    489: </dd>
1.611   ! mike      490: <dt><var title="">element</var> . <code title="dom-command-ro-commandHidden"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commandhidden">commandHidden</a></code></dt>
1.604     mike      491: <dd>
                    492: <p>Exposes the <a href="#command-facet-hiddenstate" id="command-facet-hiddenstate_0" title="command-facet-HiddenState">Hidden State</a> facet of the
                    493: command.</p>
                    494: </dd>
1.611   ! mike      495: <dt><var title="">element</var> . <code title="dom-command-ro-commandDisabled"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commanddisabled">commandDisabled</a></code></dt>
1.604     mike      496: <dd>
                    497: <p>Exposes the <a href="#command-facet-disabledstate" id="command-facet-disabledstate_1" title="command-facet-DisabledState">Disabled State</a> facet of the
                    498: command.</p>
                    499: </dd>
1.611   ! mike      500: <dt><var title="">element</var> . <code title="dom-command-ro-commandChecked"><a href="http://dev.w3.org/html5/spec/single-page.html#domcommand-ro-commandchecked">commandChecked</a></code></dt>
1.604     mike      501: <dd>
                    502: <p>Exposes the <a href="#command-facet-checkedstate" id="command-facet-checkedstate_4" title="command-facet-CheckedState">Checked State</a> facet of the
                    503: command.</p>
                    504: </dd>
1.611   ! mike      505: <dt><var title="">element</var> . <code title="dom-click"><a href="http://dev.w3.org/html5/spec/single-page.html#domclick">click</a></code>()</dt>
1.604     mike      506: <dd>
                    507: <p>Triggers the <a href="#command-facet-action" id="command-facet-action_0" title="command-facet-Action">Action</a> of
                    508: the command.</p>
                    509: </dd>
                    510: <!--v2COMMAND
                    511:    <dt><var title="">element</var> . <code title="dom-command-ro-commandTriggers">commandTriggers</code></dt>
                    512: 
                    513:    <dd>
                    514: 
                    515:     <p>Exposes the <span title="command-facet-Triggers">Triggers</span> facet of the command.</p>
                    516: 
                    517:    </dd>
1.611   ! mike      518: --></dl><hr><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-commands"><a href="http://dev.w3.org/html5/spec/single-page.html#domdocument-commands">commands</a></code></dt>
1.604     mike      519: <dd>
                    520: <p>Returns an <code><a href="#htmlcollection">HTMLCollection</a></code> of the elements in the
                    521: <code><a href="dom.html#document" id="document_73">Document</a></code> that
                    522: define commands and have IDs.</p>
                    523: </dd>
                    524: </dl><!--TOPIC:HTML--><hr><p>User agents may expose the <a href="#concept-command" id="concept-command_5" title="concept-command">commands</a> whose
                    525: <a href="#command-facet-hiddenstate" id="command-facet-hiddenstate_1" title="command-facet-HiddenState">Hidden State</a> facet is false
                    526: (visible) and whose elements are <a href="infrastructure.html#in-a-document" id="in-a-document_3">in a <code>Document</code></a>. For example, such
                    527: commands could be listed in the user agent's menu bar. User agents
                    528: are encouraged to do this especially for commands that have
                    529: <a href="#command-facet-accesskey" id="command-facet-accesskey_1" title="command-facet-AccessKey">Access Keys</a>, as a way to
                    530: advertise those keys to the user.</p>
                    531: <h4 id="the-dialog-element"><span class="secno">4.11.6</span> The
                    532: <dfn><code>dialog</code></dfn> element</h4>
                    533: <dl class="element"><dt><a href="element-definitions.html#element-dfn-categories" id="element-dfn-categories_102" title="element-dfn-categories">Categories</a>:</dt>
                    534: <dd><a href="content-models.html#flow-content-1" id="flow-content_143">Flow
                    535: content</a>.</dd>
                    536: <dd><a href="headings-and-sections.html#sectioning-root" id="sectioning-root_11">Sectioning
                    537: root</a>.</dd>
                    538: <dt><a href="element-definitions.html#element-dfn-contexts" id="element-dfn-contexts_102" title="element-dfn-contexts">Contexts in which this element can be
                    539: used</a>:</dt>
                    540: <dd>Where <a href="content-models.html#flow-content-1" id="flow-content_144">flow
                    541: content</a> is expected.</dd>
                    542: <dd>As a child of a <code><a href="the-dt-element.html#the-dt-element" id="dt_9">dt</a></code> element.</dd>
                    543: <dd>As a child of a <code><a href="the-th-element.html#the-th-element" id="th_23">th</a></code> element.</dd>
                    544: <dt><a href="element-definitions.html#element-dfn-content-model" id="element-dfn-content-model_102" title="element-dfn-content-model">Content model</a>:</dt>
                    545: <dd><a href="content-models.html#flow-content-1" id="flow-content_145">Flow
                    546: content</a>.</dd>
                    547: <dt><a href="element-definitions.html#element-dfn-attributes" id="element-dfn-attributes_102" title="element-dfn-attributes">Content
                    548: attributes</a>:</dt>
                    549: <dd><a href="global-attributes.html#global-attributes" id="global-attributes_103">Global
                    550: attributes</a></dd>
                    551: <dd><code title="attr-dialog-open"><a href="#attr-dialog-open" id="open_4">open</a></code></dd>
                    552: <dt><a href="element-definitions.html#element-dfn-dom" id="element-dfn-dom_102" title="element-dfn-dom">DOM interface</a>:</dt>
                    553: <!--TOPIC:DOM APIs-->
                    554: <dd>
                    555: <pre class="idl">
                    556: interface <dfn id="htmldialogelement">HTMLDialogElement</dfn> : <a href="elements.html#htmlelement" id="htmlelement_111">HTMLElement</a> {
1.611   ! mike      557:            attribute boolean <a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-open" title="dom-dialog-open">open</a>;
        !           558:            attribute DOMString <a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-returnvalue" title="dom-dialog-returnValue">returnValue</a>;
        !           559:   void <a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-show" title="dom-dialog-show">show</a>(optional (<a href="#mouseevent-10">MouseEvent</a> or <a href="#element">Element</a>) anchor);
        !           560:   void <a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-showmodal" title="dom-dialog-showModal">showModal</a>(optional (<a href="#mouseevent-10">MouseEvent</a> or <a href="#element">Element</a>) anchor);
        !           561:   void <a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-close" title="dom-dialog-close">close</a>(optional DOMString returnValue);
1.604     mike      562: };
                    563: </pre></dd>
1.608     mike      564: </dl><!--TOPIC:HTML--><p>The <code><a href="#the-dialog-element" id="dialog_6">dialog</a></code> element represents a part of an
1.604     mike      565: application that a user interacts with to perform a task, for
                    566: example a dialog box, inspector, or window.</p>
                    567: <p>The <dfn id="attr-dialog-open" title="attr-dialog-open"><code>open</code></dfn> attribute is a <a href="common-microsyntaxes.html#boolean-attribute" id="boolean-attribute_27">boolean
1.608     mike      568: attribute</a>. When specified, it indicates that the <code><a href="#the-dialog-element" id="dialog_7">dialog</a></code> element is
1.604     mike      569: active and that the user can interact with it.</p>
                    570: <!--TOPIC:DOM APIs-->
1.611   ! mike      571: <dl class="domintro"><dt><var title="">dialog</var> . <code title="dom-dialog-show"><a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-show">show</a></code>( [
1.604     mike      572: <var title="">anchor</var> ] )</dt>
                    573: <dd>
1.608     mike      574: <p>Displays the <code><a href="#the-dialog-element" id="dialog_8">dialog</a></code> element.</p>
1.604     mike      575: <p>The argument, if provided, provides an anchor point to which the
                    576: element will be fixed.</p>
                    577: </dd>
1.611   ! mike      578: <dt><var title="">dialog</var> . <code title="dom-dialog-showModal"><a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-showmodal">showModal</a></code>( [ <var title="">anchor</var> ] )</dt>
1.604     mike      579: <dd>
1.608     mike      580: <p>Displays the <code><a href="#the-dialog-element" id="dialog_9">dialog</a></code> element and makes it the top-most
1.604     mike      581: modal dialog.</p>
                    582: <p>The argument, if provided, provides an anchor point to which the
                    583: element will be fixed.</p>
1.608     mike      584: <p>This method honors the <code title="attr-fe-autofocus"><a href="attributes-common-to-form-controls.html#attr-fe-autofocus" id="autofocus_11">autofocus</a></code>
                    585: attribute.</p>
1.604     mike      586: </dd>
1.611   ! mike      587: <dt><var title="">dialog</var> . <code title="dom-dialog-close"><a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-close">close</a></code>( [
1.604     mike      588: <var title="">result</var> ] )</dt>
                    589: <dd>
1.608     mike      590: <p>Closes the <code><a href="#the-dialog-element" id="dialog_10">dialog</a></code> element.</p>
1.604     mike      591: <p>The argument, if provided, provides a return value.</p>
                    592: </dd>
1.611   ! mike      593: <dt><var title="">dialog</var> . <code title="dom-dialog-returnValue"><a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-returnvalue">returnValue</a></code> [ = <var title="">result</var> ]</dt>
1.604     mike      594: <dd>
1.608     mike      595: <p>Returns the <code><a href="#the-dialog-element" id="dialog_11">dialog</a></code>'s return value.</p>
1.604     mike      596: <p>Can be set, to update the return value.</p>
                    597: </dd>
                    598: </dl><h5 id="anchor-points"><span class="secno">4.11.6.1</span> Anchor
                    599: points</h5>
                    600: <p class="critical">This section will eventually be moved to a CSS
                    601: specification; it is specified here only on an interim basis until
                    602: an editor can be found to own this.</p>
                    603: <table class="css-property"><caption>'anchor-point'</caption>
                    604: <tr><th>Value:</th>
                    605: <td>none | &lt;position&gt;</td>
                    606: <tr><th>Initial:</th>
                    607: <td>none</td>
                    608: <tr><th>Applies to:</th>
                    609: <td>all elements</td>
                    610: <tr><th>Inherited:</th>
                    611: <td>no</td>
                    612: <tr><th>Percentages:</th>
                    613: <td>refer to width or height of box; see prose</td>
                    614: <tr><th>Media:</th>
                    615: <td>visual</td>
                    616: <tr><th>Computed value:</th>
                    617: <td>The specified value, but with any lengths replaced by their
                    618: corresponding absolute length</td>
                    619: <tr><th>Animatable:</th>
                    620: <td>no</td>
                    621: <tr><th>Canonical order:</th>
                    622: <td>per grammar</td>
                    623: </table><p>The 'anchor-point' property specifies a point to which dialog
                    624: boxes are to be aligned.</p>
                    625: <p>If the value is a &lt;position&gt;, the alignment point is the
                    626: point given by the value, which must be interpreted relative to the
                    627: element's first rendered box's margin box. Percentages must be
                    628: calculated relative to the element's first rendered box's margin
                    629: box (specifically, its width for the horizontal position and its
                    630: height for the vertical position). <a href="references.html#refsCSSVALUES">[CSSVALUES]</a> <a href="references.html#refsCSS">[CSS]</a></p>
                    631: <p>If the value is the keyword 'none', then no explicit alignment
                    632: point is defined. The user agent will pick an alignment point
                    633: automatically if necessary (as described in the definition of the
1.611   ! mike      634: <code title="dom-dialog-open"><a href="http://dev.w3.org/html5/spec/single-page.html#domdialog-open">open()</a></code> method above).</p>

Webmaster