Annotation of html5/spec-author-view/embedded-content-0.html, revision 1.66

1.36      mike        1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
                      2: <html lang="en-US-x-Hixie"><head><title>3.2.5.1.6 Embedded content &#8212; HTML 5</title><style type="text/css">
                      3:    pre { margin-left: 2em; white-space: pre-wrap; }
                      4:    h2 { margin: 3em 0 1em 0; }
                      5:    h3 { margin: 2.5em 0 1em 0; }
                      6:    h4 { margin: 2.5em 0 0.75em 0; }
                      7:    h5, h6 { margin: 2.5em 0 1em; }
                      8:    h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
                      9:    h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
                     10:    p { margin: 1em 0; }
                     11:    hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
                     12:    dl, dd { margin-top: 0; margin-bottom: 0; }
                     13:    dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
                     14:    dt + dt { margin-top: 0; }
                     15:    dd dt { margin-top: 0.25em; margin-bottom: 0; }
                     16:    dd p { margin-top: 0; }
                     17:    dd dl + p { margin-top: 1em; }
                     18:    dd table + p { margin-top: 1em; }
                     19:    p + * > li, dd li { margin: 1em 0; }
                     20:    dt, dfn { font-weight: bold; font-style: normal; }
                     21:    dt dfn { font-style: italic; }
                     22:    pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
                     23:    pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
                     24:    pre em { font-weight: bolder; font-style: normal; }
                     25:    @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
                     26:    var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
                     27:    table { border-collapse: collapse; border-style: hidden hidden none hidden; }
                     28:    table thead { border-bottom: solid; }
                     29:    table tbody th:first-child { border-left: solid; }
                     30:    table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
                     31:    blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
                     32: 
                     33:    .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
                     34:    .matrix, .matrix td { border: none; text-align: right; }
                     35:    .matrix { margin-left: 2em; }
                     36:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                     37:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                     38:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                     39:    .applies th > * { display: block; }
                     40:    .applies thead code { display: block; }
                     41:    .applies td { text-align: center; }
                     42:    .applies .yes { background: yellow; }
                     43: 
                     44:    .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
                     45:    img.extra { float: right; }
                     46:    pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; }
                     47:    pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
                     48:    pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
                     49:    pre.css:first-line { color: #AAAA50; }
                     50:    dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #EEFFEE; }
                     51:    hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
                     52:    dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
                     53:    dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
                     54:    dl.domintro dd p { margin: 0.5em 0; }
                     55:    dl.switch { padding-left: 2em; }
                     56:    dl.switch > dt { text-indent: -1.5em; }
                     57:    dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
                     58:    dl.triple { padding: 0 0 0 1em; }
                     59:    dl.triple dt, dl.triple dd { margin: 0; display: inline }
                     60:    dl.triple dt:after { content: ':'; }
                     61:    dl.triple dd:after { content: '\A'; white-space: pre; }
                     62:    .diff-old { text-decoration: line-through; color: silver; background: transparent; }
                     63:    .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
                     64:    a .diff-new { border-bottom: 1px blue solid; }
                     65: 
                     66:    h2 { page-break-before: always; }
                     67:    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
                     68:    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
                     69: 
                     70:    p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
                     71: 
                     72:    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
                     73:    div.head p { margin: 0; }
                     74:    div.head h1 { margin: 0; }
                     75:    div.head .logo { float: right; margin: 0 1em; }
                     76:    div.head .logo img { border: none } /* remove border from top image */
                     77:    div.head dl { margin: 1em 0; }
                     78:    p.copyright { font-size: x-small; font-style: oblique; margin: 0; }
                     79: 
                     80:    body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
                     81:    body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
                     82:    body > .toc > li > * { margin-bottom: 0.5em; }
                     83:    body > .toc > li > * > li > * { margin-bottom: 0.25em; }
                     84:    .toc, .toc li { list-style: none; }
                     85: 
                     86:    .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
                     87:    .brief li { margin: 0; padding: 0; }
                     88:    .brief li p { margin: 0; padding: 0; }
                     89: 
                     90:    .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
                     91:    .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
                     92:    .category-list li { display: inline; }
                     93:    .category-list li:not(:last-child)::after { content: ', '; }
                     94:    .category-list li > span, .category-list li > a { text-transform: lowercase; }
                     95:    .category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */
                     96: 
                     97:    .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
                     98:    .XXX > :first-child { margin-top: 0; }
                     99:    p .XXX { line-height: 3em; }
                    100:    .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
                    101:    .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
                    102:    .annotation :link, .annotation :visited { color: inherit; }
                    103:    .annotation :link:hover, .annotation :visited:hover { background: transparent; }
                    104:    .annotation span { border: none ! important; }
                    105:    .note { color: green; background: transparent; font-family: sans-serif; }
                    106:    .warning { color: red; background: transparent; }
                    107:    .note, .warning { font-weight: bolder; font-style: italic; }
                    108:    p.note, div.note { padding: 0.5em 2em; }
                    109:    span.note { padding: 0 2em; }
                    110:    .note p:first-child, .warning p:first-child { margin-top: 0; }
                    111:    .note p:last-child, .warning p:last-child { margin-bottom: 0; }
                    112:    .warning:before { font-style: normal; }
                    113:    p.note:before { content: 'Note: '; }
                    114:    p.warning:before { content: '\26A0 Warning! '; }
                    115: 
                    116:    .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
                    117:    .bookkeeping { font-size: 0.8em; margin: 2em 0; }
                    118:    .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
                    119: 
                    120:    h4 { position: relative; z-index: 3; }
                    121:    h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
                    122:    .element {
                    123:      background: #EEEEFF;
                    124:      color: black;
                    125:      margin: 0 0 1em 0.15em;
                    126:      padding: 0 1em 0.25em 0.75em;
                    127:      border-left: solid #9999FF 0.25em;
                    128:      position: relative;
                    129:      z-index: 1;
                    130:    }
                    131:    .element:before {
                    132:      position: absolute;
                    133:      z-index: 2;
                    134:      top: 0;
                    135:      left: -1.15em;
                    136:      height: 2em;
                    137:      width: 0.9em;
                    138:      background: #EEEEFF;
                    139:      content: ' ';
                    140:      border-style: none none solid solid;
                    141:      border-color: #9999FF;
                    142:      border-width: 0.25em;
                    143:    }
                    144: 
                    145:    .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
                    146:    td > .example:only-child { margin: 0 0 0 0.1em; }
                    147: 
                    148:    .tall-and-narrow {
                    149:      font-size: 0.6em;
                    150:      column-width: 25em;
                    151:      column-gap: 1em;
                    152:      -moz-column-width: 25em;
                    153:      -moz-column-gap: 1em;
                    154:      -webkit-column-width: 25em;
                    155:      -webkit-column-gap: 1em;
                    156:    }
                    157: 
                    158:    ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
                    159:    ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
                    160:    ul.domTree li li { list-style: none; }
                    161:    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; }
                    162:    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; }
                    163:    ul.domTree span { font-style: italic; font-family: serif; }
                    164:    ul.domTree .t1 code { color: purple; font-weight: bold; }
                    165:    ul.domTree .t2 { font-style: normal; font-family: monospace; }
                    166:    ul.domTree .t2 .name { color: black; font-weight: bold; }
                    167:    ul.domTree .t2 .value { color: blue; font-weight: normal; }
                    168:    ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
                    169:    ul.domTree .t7 code, .domTree .t8 code { color: green; }
                    170:    ul.domTree .t10 code { color: teal; }
                    171: 
                    172:   </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="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet" type="text/css"><!-- ZZZ ED vs WD --><link href="dom.html" title="3 Semantics, structure, and APIs of HTML documents" rel="prev">
                    173:   <link href="Overview.html#contents" title="Table of contents" rel="index">
                    174:   <link href="semantics.html" title="4 The elements of HTML" rel="next">
                    175:   </head><body onload="fixBrokenLink(); fixBrokenLink()"><div class="head">
                    176:    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
                    177:    <h1>HTML5</h1>
                    178:    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
1.66    ! mike      179: <p>This is revision 1.2932.</p>
1.36      mike      180:    </div><div>
                    181:    <a href="dom.html">&#8592; 3 Semantics, structure, and APIs of HTML documents</a> &#8211;
                    182:    <a href="Overview.html#contents">Table of contents</a> &#8211;
                    183:    <a href="semantics.html">4 The elements of HTML &#8594;</a>
                    184:   </div>
                    185: 
                    186:   <h6 id="embedded-content-0"><span class="secno">3.2.5.1.6 </span>Embedded content</h6><p><dfn id="embedded-content">Embedded content</dfn> is content that imports another
                    187:   resource into the document, or content from another vocabulary that
                    188:   is inserted into the document.</p><ul class="brief category-list"><li><code><a href="video.html#audio">audio</a></code></li>
                    189:    <li><code><a href="the-canvas-element.html#the-canvas-element">canvas</a></code></li>
                    190:    <li><code><a href="text-level-semantics.html#the-embed-element">embed</a></code></li>
                    191:    <li><code><a href="text-level-semantics.html#the-iframe-element">iframe</a></code></li>
                    192:    <li><code><a href="text-level-semantics.html#the-img-element">img</a></code></li>
                    193:    <li><code><a href="the-canvas-element.html#math">math</a></code></li>
                    194:    <li><code><a href="text-level-semantics.html#the-object-element">object</a></code></li>
                    195:    <li><code><a href="the-canvas-element.html#svg">svg</a></code></li>
                    196:    <li><code><a href="video.html#video">video</a></code></li>
                    197:   </ul><p>Elements that are from namespaces other than the <a href="#html-namespace-0">HTML
                    198:   namespace</a> and that convey content but not metadata, are
                    199:   <a href="#embedded-content">embedded content</a> for the purposes of the content models
                    200:   defined in this specification. (For example, MathML, or SVG.)</p><p>Some embedded content elements can have <dfn id="fallback-content">fallback
                    201:   content</dfn>: content that is to be used when the external resource
                    202:   cannot be used (e.g. because it is of an unsupported format). The
                    203:   element definitions state what the fallback is, if any.</p><h6 id="interactive-content-0"><span class="secno">3.2.5.1.7 </span>Interactive content</h6><!--
                    204: TESTS:
                    205: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cp%20tabindex%3D1%3Etest%20%3Ca%20href%3D%22%22%3E%20%3Cem%3Etest%3C/em%3E%20%3C/a%3E%0A%3Cscript%3E%0A%20function%20test%20%28e%29%20%7B%20w%28e.type%20+%20%27%20on%20%27%20+%20e.target.tagName%20+%20%27%20through%20%27%20+%20e.currentTarget.tagName%29%3B%20%7D%0A%20document.getElementsByTagName%28%27a%27%29%5B0%5D.addEventListener%28%27click%27%2C%20test%2C%20false%29%3B%0A%20document.getElementsByTagName%28%27a%27%29%5B0%5D.addEventListener%28%27DOMActivate%27%2C%20test%2C%20false%29%3B%0A%20document.getElementsByTagName%28%27p%27%29%5B0%5D.addEventListener%28%27click%27%2C%20test%2C%20false%29%3B%0A%20document.getElementsByTagName%28%27p%27%29%5B0%5D.addEventListener%28%27DOMActivate%27%2C%20test%2C%20false%29%3B%0A%3C/script%3E%0A
                    206: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0A%3Ca%20href%3Dhttp%3A//google.com/%20target%3Da%3EA%3C/a%3E%3Ca%20href%3Dhttp%3A//yahoo.com/%20target%3Db%3EB%3C/a%3E%3Cbr%3E%0A%3Ciframe%20name%3Da%3E%3C/iframe%3E%3Ciframe%20name%3Db%3E%3C/iframe%3E%0A%3Cscript%3E%0A%20var%20a%20%3D%20document.getElementsByTagName%28%27a%27%29%5B0%5D%3B%0A%20var%20b%20%3D%20document.getElementsByTagName%28%27a%27%29%5B1%5D%3B%0A%20a.appendChild%28b%29%3B%0A%3C/script%3E
                    207: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0A%3Cform%20action%3D%22http%3A//google.com/%22%20onsubmit%3D%22w%28%27onsubmit%27%29%22%3E%3Cem%3EA%3C/em%3E%3C/form%3E%0A%3Cscript%3E%0Adocument.getElementsByTagName%28%27form%27%29%5B0%5D.attachEvent%28%27onsubmit%27%2C%20function%20%28%29%20%7B%20w%28%27submit%20fired%27%29%20%7D%29%3B%0Adocument.getElementsByTagName%28%27form%27%29%5B0%5D.fireEvent%28%27onsubmit%27%29%3B%0A%3C/script%3E
                    208: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0A%3Cform%20action%3D%22http%3A//google.com/%22%3EX%3C/form%3E%0A%3Cscript%3E%0Avar%20evt%20%3D%20document.createEvent%28%22Events%22%29%3B%0Aevt.initEvent%28%22submit%22%2C%20true%2C%20true%29%3B%0Adocument.getElementsByTagName%28%27form%27%29%5B0%5D.dispatchEvent%28evt%29%3B%0A%3C/script%3E
                    209: --><p><dfn id="interactive-content">Interactive content</dfn> is content that is specifically
                    210:   intended for user interaction.</p><ul class="brief category-list"><li><code><a href="text-level-semantics.html#the-a-element">a</a></code></li>
                    211:    <li><code><a href="video.html#audio">audio</a></code> (if the <code title="attr-media-controls"><a href="video.html#attr-media-controls">controls</a></code> attribute is present)</li>
                    212:    <li><code><a href="forms.html#the-button-element">button</a></code></li>
                    213: <!-- v2DATAGRID   <li><code>datagrid</code></li> -->
                    214:    <li><code><a href="interactive-elements.html#the-details-element">details</a></code></li>
                    215:    <li><code><a href="text-level-semantics.html#the-embed-element">embed</a></code></li>
                    216:    <li><code><a href="text-level-semantics.html#the-iframe-element">iframe</a></code></li>
                    217:    <li><code><a href="text-level-semantics.html#the-img-element">img</a></code> (if the <code title="attr-hyperlink-usemap"><a href="the-canvas-element.html#attr-hyperlink-usemap">usemap</a></code> attribute is present)</li>
                    218:    <li><code><a href="forms.html#the-input-element">input</a></code> (if the <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="forms.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state)</li>
                    219:    <li><code><a href="forms.html#the-keygen-element">keygen</a></code></li>
                    220:    <li><code><a href="forms.html#the-label-element">label</a></code></li>
                    221:    <li><code><a href="interactive-elements.html#menus">menu</a></code> (if the <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute is in the <a href="interactive-elements.html#tool-bar-state" title="tool bar state">tool bar</a> state)</li>
                    222:    <li><code><a href="text-level-semantics.html#the-object-element">object</a></code> (if the <code title="attr-hyperlink-usemap"><a href="the-canvas-element.html#attr-hyperlink-usemap">usemap</a></code> attribute is present)<!-- see also comment in <object> section --></li>
                    223:    <li><code><a href="forms.html#the-select-element">select</a></code></li>
                    224:    <li><code><a href="forms.html#the-textarea-element">textarea</a></code></li>
                    225:    <li><code><a href="video.html#video">video</a></code> (if the <code title="attr-media-controls"><a href="video.html#attr-media-controls">controls</a></code> attribute is present)</li>
                    226:   </ul><p>Certain elements in HTML have an <a href="#activation-behavior">activation
                    227:   behavior</a>, which means that the user can activate them. This
                    228:   triggers a sequence of events dependent on the activation mechanism,
                    229:   and normally culminating in a <code title="event-click">click</code>
                    230:   event followed by a <code title="event-DOMActivate">DOMActivate</code> event.</p><h5 id="transparent-content-models"><span class="secno">3.2.5.2 </span>Transparent content models</h5><p>Some elements are described as <dfn id="transparent">transparent</dfn>; they have
                    231:   "transparent" in the description of their content model.</p><p>When a content model includes a part that is "transparent", those
                    232:   parts must not contain content that would not be conformant if all
                    233:   transparent elements in the tree were replaced, in their parent
                    234:   element, by the children in the "transparent" part of their content
                    235:   model, retaining order.</p><p>When a transparent element has no parent, then the part of its
                    236:   content model that is "transparent" must instead be treated as
                    237:   accepting any <a href="dom.html#flow-content">flow content</a>.</p><h5 id="paragraphs"><span class="secno">3.2.5.3 </span>Paragraphs</h5><p class="note">The term <a href="#paragraph">paragraph</a> as defined in this
                    238:   section is distinct from (though related to) the <code><a href="semantics.html#the-p-element">p</a></code>
                    239:   element defined later. The <a href="#paragraph">paragraph</a> concept defined
                    240:   here is used to describe how to interpret documents.</p><p>A <dfn id="paragraph">paragraph</dfn> is typically a run of <a href="dom.html#phrasing-content">phrasing
                    241:   content</a> that forms a block of text with one or more sentences
                    242:   that discuss a particular topic, as in typography, but can also be
                    243:   used for more general thematic grouping. For instance, an address is
                    244:   also a paragraph, as is a part of a form, a byline, or a stanza in a
                    245:   poem.</p><div class="example">
                    246: 
                    247:    <p>In the following example, there are two paragraphs in a
                    248:    section. There is also a heading, which contains phrasing content
                    249:    that is not a paragraph. Note how the comments and
                    250:    <a href="dom.html#inter-element-whitespace">inter-element whitespace</a> do not form paragraphs.</p>
                    251: 
                    252:    <pre>&lt;section&gt;
                    253:   &lt;h1&gt;Example of paragraphs&lt;/h1&gt;
                    254:   This is the &lt;em&gt;first&lt;/em&gt; paragraph in this example.
                    255:   &lt;p&gt;This is the second.&lt;/p&gt;
                    256:   &lt;!-- This is not a paragraph. --&gt;
                    257: &lt;/section&gt;</pre>
                    258: 
                    259:   </div><p>Paragraphs in <a href="dom.html#flow-content">flow content</a> are defined relative to
                    260:   what the document looks like without the <code><a href="text-level-semantics.html#the-a-element">a</a></code>,
                    261:   <code><a href="text-level-semantics.html#the-ins-element">ins</a></code>, <code><a href="text-level-semantics.html#the-del-element">del</a></code>, and <code><a href="the-canvas-element.html#the-map-element">map</a></code> elements
                    262:   complicating matters, since those elements, with their hybrid
                    263:   content models, can straddle paragraph boundaries, as shown in the
                    264:   first two examples below.</p><p class="note">Generally, having elements straddle paragraph
                    265:   boundaries is best avoided. Maintaining such markup can be
                    266:   difficult.</p><div class="example">
                    267: 
                    268:    <p>The following example takes the markup from the earlier example
                    269:    and puts <code><a href="text-level-semantics.html#the-ins-element">ins</a></code> and <code><a href="text-level-semantics.html#the-del-element">del</a></code> elements around some
                    270:    of the markup to show that the text was changed (though in this
                    271:    case, the changes admittedly don't make much sense). Notice how
                    272:    this example has exactly the same paragraphs as the previous one,
                    273:    despite the <code><a href="text-level-semantics.html#the-ins-element">ins</a></code> and <code><a href="text-level-semantics.html#the-del-element">del</a></code> elements &#8212;
                    274:    the <code><a href="text-level-semantics.html#the-ins-element">ins</a></code> element straddles the heading and the first
                    275:    paragraph, and the <code><a href="text-level-semantics.html#the-del-element">del</a></code> element straddles the boundary
                    276:    between the two paragraphs.</p>
                    277: 
                    278:    <pre>&lt;section&gt;
                    279:   &lt;ins&gt;&lt;h1&gt;Example of paragraphs&lt;/h1&gt;
                    280:   This is the &lt;em&gt;first&lt;/em&gt; paragraph in&lt;/ins&gt; this example&lt;del&gt;.
                    281:   &lt;p&gt;This is the second.&lt;/p&gt;&lt;/del&gt;
                    282:   &lt;!-- This is not a paragraph. --&gt;
                    283: &lt;/section&gt;</pre>
                    284: 
                    285:   </div><p>A <a href="#paragraph">paragraph</a> is also formed explicitly by
                    286:   <code><a href="semantics.html#the-p-element">p</a></code> elements.</p><p class="note">The <code><a href="semantics.html#the-p-element">p</a></code> element can be used to wrap
                    287:   individual paragraphs when there would otherwise not be any content
                    288:   other than phrasing content to separate the paragraphs from each
                    289:   other.</p><div class="example">
                    290: 
                    291:    <p>In the following example, the link spans half of the first
                    292:    paragraph, all of the heading separating the two paragraphs, and
                    293:    half of the second paragraph. It straddles the paragraphs and the
                    294:    heading.</p>
                    295: 
                    296:    <pre>&lt;aside&gt;
                    297:  Welcome!
                    298:  &lt;a href="about.html"&gt;
                    299:   This is home of...
                    300:   &lt;h1&gt;The Falcons!&lt;/h1&gt;
                    301:   The Lockheed Martin multirole jet fighter aircraft!
                    302:  &lt;/a&gt;
                    303:  This page discusses the F-16 Fighting Falcon's innermost secrets.
                    304: &lt;/aside&gt;</pre>
                    305: 
                    306:    <p>Here is another way of marking this up, this time showing the
                    307:    paragraphs explicitly, and splitting the one link element into
                    308:    three:</p>
                    309: 
                    310:    <pre>&lt;aside&gt;
                    311:  &lt;p&gt;Welcome! &lt;a href="about.html"&gt;This is home of...&lt;/a&gt;&lt;/p&gt;
                    312:  &lt;h1&gt;&lt;a href="about.html"&gt;The Falcons!&lt;/a&gt;&lt;/h1&gt;
                    313:  &lt;p&gt;&lt;a href="about.html"&gt;The Lockheed Martin multirole jet
                    314:  fighter aircraft!&lt;/a&gt; This page discusses the F-16 Fighting
                    315:  Falcon's innermost secrets.&lt;/p&gt;
                    316: &lt;/aside&gt;</pre>
                    317: 
                    318:   </div><div class="example">
                    319: 
                    320:    <!-- I don't know if there's a better way to deal with this, but if
                    321:    there is, let me know... -->
                    322: 
                    323:    <p>It is possible for paragraphs to overlap when using certain
                    324:    elements that define fallback content. For example, in the
                    325:    following section:</p>
                    326: 
                    327:    <pre>&lt;section&gt;
                    328:  &lt;h1&gt;My Cats&lt;/h1&gt;
                    329:  You can play with my cat simulator.
                    330:  &lt;object data="cats.sim"&gt;
                    331:   To see the cat simulator, use one of the following links:
                    332:   &lt;ul&gt;
                    333:    &lt;li&gt;&lt;a href="cats.sim"&gt;Download simulator file&lt;/a&gt;
                    334:    &lt;li&gt;&lt;a href="http://sims.example.com/watch?v=LYds5xY4INU"&gt;Use online simulator&lt;/a&gt;
                    335:   &lt;/ul&gt;
                    336:   Alternatively, upgrade to the Mellblom Browser.
                    337:  &lt;/object&gt;
                    338:  I'm quite proud of it.
                    339: &lt;/section&gt;</pre>
                    340: 
                    341:    <p>There are five paragraphs:</p>
                    342: 
                    343:    <ol class="brief"><li>The paragraph that says "You can play with my cat
                    344:     simulator. <i title="">object</i> I'm quite proud of it.", where
                    345:     <i title="">object</i> is the <code><a href="text-level-semantics.html#the-object-element">object</a></code> element.</li>
                    346: 
                    347:     <li>The paragraph that says "To see the cat simulator, use one of
                    348:     the following links:".</li>
                    349: 
                    350:     <li>The paragraph that says "Download simulator file".</li>
                    351: 
                    352:     <li>The paragraph that says "Use online simulator".</li>
                    353: 
                    354:     <li>The paragraph that says "Alternatively, upgrade to the Mellblom Browser.".</li>
                    355: 
                    356:    </ol><p>The first paragraph is overlapped by the other four. A user
                    357:    agent that supports the "cats.sim" resource will only show the
                    358:    first one, but a user agent that shows the fallback will
                    359:    confusingly show the first sentence of the first paragraph as
                    360:    if it was in the same paragraph as the second one, and will show
                    361:    the last paragraph as if it was at the start of the second sentence
                    362:    of the first paragraph.</p>
                    363: 
                    364:    <p>To avoid this confusion, explicit <code><a href="semantics.html#the-p-element">p</a></code> elements can be
                    365:    used.</p>
                    366: 
                    367:   </div><h4 id="annotations-for-assistive-technology-products"><span class="secno">3.2.6 </span><dfn>Annotations for assistive technology products</dfn></h4><p class="XXX annotation"><b>Status: </b><i>First draft. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/14">ISSUE-14</a> (aria-role) and <a href="http://www.w3.org/html/wg/tracker/issues/35">ISSUE-35</a> (aria-processing) block progress to Last Call</span></p><p>Authors may use the ARIA <code title="attr-aria-role">role</code>
                    368:   and <code title="attr-aria-*">aria-*</code> attributes on <a href="infrastructure.html#html-elements">HTML
                    369:   elements</a>, in accordance with the requirements described in
                    370:   the ARIA specifications, except where these conflict with the
                    371:   <span>strong native semantics</span> described below. These
                    372:   exceptions are intended to prevent authors from making assistive
                    373:   technology products report nonsensical states that do not represent
                    374:   the actual state of the document. <a href="references.html#refsARIA">[ARIA]</a></p><p>The following table defines the <span>strong native
                    375:   semantics</span>  that apply to <a href="infrastructure.html#html-elements">HTML
                    376:   elements</a>. Each language feature (element or attribute) in a
                    377:   cell in the first column implies the ARIA semantics (role, states,
                    378:   and/or properties) given in the cell in the second column of the
                    379:   same row. Authors must not set the ARIA <code title="attr-aria-role">role</code> and <code title="attr-aria-*">aria-*</code> attributes in a manner that
                    380:   conflicts with the semantics described in the following table. </p><table><thead><tr><th>Language feature
                    381:      </th><th>Strong native semantics and implied ARIA semantics</th></tr></thead><tbody><tr><td><code><a href="text-level-semantics.html#the-a-element">a</a></code> element that represents a <a href="history.html#hyperlink">hyperlink</a>
                    382:      </td><td><code title="attr-aria-role-link">link</code> role
                    383: 
                    384:     </td></tr><tr><td><code><a href="semantics.html#the-address-element">address</a></code> element
                    385:      </td><td><code title="attr-aria-role-contentinfo">contentinfo</code> role
                    386: 
                    387:     </td></tr><tr><td><code><a href="the-canvas-element.html#the-area-element">area</a></code> element that represents a <a href="history.html#hyperlink">hyperlink</a>
                    388:      </td><td><code title="attr-aria-role-link">link</code> role
                    389: 
                    390:     </td></tr><tr><td><code><a href="forms.html#the-button-element">button</a></code> element
                    391:      </td><td><code title="attr-aria-role-button">button</code> role
                    392: 
                    393:     </td></tr><tr><td><code><a href="forms.html#the-datalist-element">datalist</a></code> element
                    394:      </td><td><code title="attr-aria-role-listbox">listbox</code> role, with the <code title="attr-aria-multiselectable">aria-multiselectable</code> property set to "false"
                    395: 
                    396:     </td></tr><tr><td><code><a href="semantics.html#the-footer-element">footer</a></code> element
                    397:      </td><td><code title="attr-aria-role-contentinfo">contentinfo</code> role
                    398: 
                    399:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h1</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      400:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      401: 
                    402:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h2</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      403:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      404: 
                    405:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h3</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      406:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      407: 
                    408:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h4</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      409:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      410: 
                    411:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h5</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      412:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      413: 
                    414:     </td></tr><tr><td><code><a href="semantics.html#the-h1-h2-h3-h4-h5-and-h6-elements">h6</a></code> element that does not have an <code><a href="semantics.html#the-hgroup-element">hgroup</a></code> ancestor
1.38      mike      415:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      416: 
                    417:     </td></tr><tr><td><code><a href="semantics.html#the-header-element">header</a></code> element
                    418:      </td><td><code title="attr-aria-role-banner">banner</code> role
                    419: 
                    420:     </td></tr><tr><td><code><a href="semantics.html#the-hgroup-element">hgroup</a></code> element
1.38      mike      421:      </td><td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <a href="#outline-depth">outline depth</a>
1.36      mike      422: 
                    423:     </td></tr><tr><td><code><a href="semantics.html#the-hr-element">hr</a></code> element
                    424:      </td><td><code title="attr-aria-role-separator">separator</code> role
                    425: 
                    426:     </td></tr><tr><td><code><a href="text-level-semantics.html#the-img-element">img</a></code> element whose <code title="attr-img-alt"><a href="text-level-semantics.html#attr-img-alt">alt</a></code> attribute's value is empty
                    427:      </td><td><code title="attr-aria-role-presentation">presentation</code> role
                    428: 
                    429:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#button-state" title="attr-input-type-button">Button</a> state
                    430:      </td><td><code title="attr-aria-role-button">button</code> role
                    431: 
                    432:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#checkbox-state" title="attr-input-type-checkbox">Checkbox</a> state
                    433:      </td><td><code title="attr-aria-role-checkbox">checkbox</code> role, with the <code title="attr-aria-checked">aria-checked</code> state set to "mixed" if the element's <code title="dom-input-indeterminate"><a href="#dom-input-indeterminate">indeterminate</a></code> IDL attribute is true, or "true" if the element's <a href="#concept-fe-checked" title="concept-fe-checked">checkedness</a> is true, or "false" otherwise
                    434: 
                    435:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#color-state" title="attr-input-type-color">Color</a> state
                    436:      </td><td>No role
                    437: 
                    438:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#date-state" title="attr-input-type-date">Date</a> state
                    439:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    440: 
                    441:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#date-and-time-state" title="attr-input-type-datetime">Date and Time</a> state
                    442:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    443: 
                    444:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#local-date-and-time-state" title="attr-input-type-datetime-local">Local Date and Time</a> state
                    445:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    446: 
                    447:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#e-mail-state" title="attr-input-type-email">E-mail</a> state with no <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    448:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    449: 
                    450:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#file-upload-state" title="attr-input-type-file">File Upload</a> state
                    451:      </td><td><code title="attr-aria-role-button">button</code> role
                    452: 
                    453:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state
                    454:      </td><td>No role
                    455: 
                    456:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#image-button-state" title="attr-input-type-image">Image Button</a> state
                    457:      </td><td><code title="attr-aria-role-button">button</code> role
                    458: 
                    459:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#month-state" title="attr-input-type-month">Month</a> state
                    460:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    461: 
                    462:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#number-state" title="attr-input-type-number">Number</a> state
                    463:      </td><td><code title="attr-aria-role-spinbutton">spinbutton</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute, the <code title="attr-aria-valuemax">aria-valuemax</code> property set to the element's <a href="#concept-input-max" title="concept-input-max">maximum</a>, the <code title="attr-aria-valuemin">aria-valuemin</code> property set to the element's <a href="#concept-input-min" title="concept-input-min">minimum</a>, and, if the result of applying the <a href="#rules-for-parsing-floating-point-number-values">rules for parsing floating point number values</a> to the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> is a number, with the <code title="attr-aria-valuenow">aria-valuenow</code> property set to that number
                    464: 
                    465:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#password-state" title="attr-input-type-password">Password</a> state
                    466:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    467: 
                    468:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#radio-button-state" title="attr-input-type-radio">Radio Button</a> state
                    469:      </td><td><code title="attr-aria-role-radio">radio</code> role, with the <code title="attr-aria-checked">aria-checked</code> state set to "true" if the element's <a href="#concept-fe-checked" title="concept-fe-checked">checkedness</a> is true, or "false" otherwise
                    470: 
                    471:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#range-state" title="attr-input-type-range">Range</a> state
                    472:      </td><td><code title="attr-aria-role-slider">slider</code> role, with the <code title="attr-aria-valuemax">aria-valuemax</code> property set to the element's <a href="#concept-input-max" title="concept-input-max">maximum</a>, the <code title="attr-aria-valuemin">aria-valuemin</code> property set to the element's <a href="#concept-input-min" title="concept-input-min">minimum</a>, and the <code title="attr-aria-valuenow">aria-valuenow</code> property set to the result of applying the <a href="#rules-for-parsing-floating-point-number-values">rules for parsing floating point number values</a> to the element's <a href="#concept-fe-value" title="concept-fe-value">value</a>, if that that results in a number, or the <a href="forms.html#concept-input-value-default-range" title="concept-input-value-default-range">default value</a> otherwise
                    473: 
                    474:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#reset-button-state" title="attr-input-type-reset">Reset Button</a> state
                    475:      </td><td><code title="attr-aria-role-button">button</code> role
                    476: 
                    477:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#text-state-and-search-state" title="attr-input-type-search">Search</a> state with no <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    478:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    479: 
                    480:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#submit-button-state" title="attr-input-type-submit">Submit Button</a> state
                    481:      </td><td><code title="attr-aria-role-button">button</code> role
                    482: 
                    483:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#telephone-state" title="attr-input-type-tel">Telephone</a> state with no <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    484:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    485: 
                    486:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#text-state-and-search-state" title="attr-input-type-text">Text</a> state with no <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    487:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    488: 
                    489:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#text-state-and-search-state" title="attr-input-type-text">Text</a>, <a href="forms.html#text-state-and-search-state" title="attr-input-type-search">Search</a>, <a href="forms.html#telephone-state" title="attr-input-type-tel">Telephone</a>, <a href="forms.html#url-state" title="attr-input-type-url">URL</a>, or <a href="forms.html#e-mail-state" title="attr-input-type-email">E-mail</a> states with a <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    490:      </td><td><code title="attr-aria-role-combobox">combobox</code> role, with the <code title="attr-aria-owns">aria-owns</code> property set to the same value as the <code title="attr-input-list"><a href="forms.html#attr-input-list">list</a></code> attribute, and the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    491: 
                    492:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#time-state" title="attr-input-type-time">Time</a> state
                    493:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    494: 
                    495:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#url-state" title="attr-input-type-url">URL</a> state with no <a href="#concept-input-list" title="concept-input-list">suggestions source element</a>
                    496:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    497: 
                    498:     </td></tr><tr><td><code><a href="forms.html#the-input-element">input</a></code> element with a <code title="attr-input-type"><a href="forms.html#attr-input-type">type</a></code> attribute in the <a href="forms.html#week-state" title="attr-input-type-week">Week</a> state
                    499:      </td><td>No role, with the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-input-readonly"><a href="forms.html#attr-input-readonly">readonly</a></code> attribute
                    500: 
                    501:     </td></tr><tr><td><code><a href="semantics.html#the-link-element">link</a></code> element that represents a <a href="history.html#hyperlink">hyperlink</a>
                    502:      </td><td><code title="attr-aria-role-link">link</code> role
                    503: 
                    504:     </td></tr><tr><td><code><a href="interactive-elements.html#menus">menu</a></code> element with a <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#context-menu-state" title="context menu state">context menu</a> state
                    505:      </td><td>No role
                    506: 
                    507:     </td></tr><tr><td><code><a href="interactive-elements.html#menus">menu</a></code> element with a <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#list-state" title="list state">list</a> state
                    508:      </td><td><code title="attr-aria-role-menu">menu</code> role
                    509: 
                    510:     </td></tr><tr><td><code><a href="interactive-elements.html#menus">menu</a></code> element with a <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#tool-bar-state" title="tool bar state">tool bar</a> state
                    511:      </td><td><code title="attr-aria-role-toolbar">toolbar</code> role
                    512: 
                    513:     </td></tr><tr><td><code><a href="semantics.html#the-nav-element">nav</a></code> element
                    514:      </td><td><code title="attr-aria-role-navigation">navigation</code> role
                    515: 
                    516:     </td></tr><tr><td><code><a href="forms.html#the-option-element">option</a></code> element that is in a <a href="forms.html#concept-select-option-list" title="concept-select-option-list">list of options</a> or that represents a suggestion in a <code><a href="forms.html#the-datalist-element">datalist</a></code> element
                    517:      </td><td><code title="attr-aria-role-option">option</code> role, with the <code title="attr-aria-selected">aria-selected</code> state set to "true" if the element's <a href="#concept-option-selectedness" title="concept-option-selectedness">selectedness</a> is true, or "false" otherwise.
                    518: 
                    519:     </td></tr><tr><td><code><a href="text-level-semantics.html#the-progress-element">progress</a></code> element
                    520:      </td><td><code title="attr-aria-role-progressbar">progressbar</code> role, with, if the progress bar is determinate, the <code title="attr-aria-valuemax">aria-valuemax</code> property set to the maximum value of the progress bar, the <code title="attr-aria-valuemin">aria-valuemin</code> property set to zero, and the <code title="attr-aria-valuenow">aria-valuenow</code> property set to the current value of the progress bar
                    521: 
                    522:     </td></tr><tr><td><code><a href="forms.html#the-select-element">select</a></code> element with a <code title="attr-select-multiple"><a href="forms.html#attr-select-multiple">multiple</a></code> attribute
                    523:      </td><td><code title="attr-aria-role-listbox">listbox</code> role, with the <code title="attr-aria-multiselectable">aria-multiselectable</code> property set to "true"
                    524: 
                    525:     </td></tr><tr><td><code><a href="forms.html#the-select-element">select</a></code> element with no <code title="attr-select-multiple"><a href="forms.html#attr-select-multiple">multiple</a></code> attribute
                    526:      </td><td><code title="attr-aria-role-listbox">listbox</code> role, with the <code title="attr-aria-multiselectable">aria-multiselectable</code> property set to "false"
                    527: 
                    528:     </td></tr><tr><td><code><a href="tabular-data.html#the-td-element">td</a></code> element
                    529:      </td><td><code title="attr-aria-role-gridcell">gridcell</code> role, with the <code title="attr-aria-labelledby">aria-labelledby</code> property set to the value of the <code title="attr-tdth-headers"><a href="tabular-data.html#attr-tdth-headers">headers</a></code> attribute, if any
                    530: 
                    531:     </td></tr><tr><td><code><a href="forms.html#the-textarea-element">textarea</a></code> element
                    532:      </td><td><code title="attr-aria-role-textbox">textbox</code> role, with the <code title="attr-aria-multiline">aria-multiline</code> property set to "true", and the <code title="title-aria-readonly">aria-readonly</code> state set to "true" if the element has a <code title="attr-textarea-readonly"><a href="forms.html#attr-textarea-readonly">readonly</a></code> attribute
                    533: 
                    534:     </td></tr><tr><td><code><a href="tabular-data.html#the-th-element">th</a></code> elemen that is neither a <a href="#column-header">column header</a> nor a <a href="#row-header">row header</a>
                    535:      </td><td><code title="attr-aria-role-gridcell">gridcell</code> role, with the <code title="attr-aria-labelledby">aria-labelledby</code> property set to the value of the <code title="attr-tdth-headers"><a href="tabular-data.html#attr-tdth-headers">headers</a></code> attribute, if any
                    536: 
                    537:     </td></tr><tr><td><code><a href="tabular-data.html#the-th-element">th</a></code> element that is a <a href="#column-header">column header</a>
                    538:      </td><td><code title="attr-aria-role-columnheader">columnheader</code> role, with the <code title="attr-aria-labelledby">aria-labelledby</code> property set to the value of the <code title="attr-tdth-headers"><a href="tabular-data.html#attr-tdth-headers">headers</a></code> attribute, if any
                    539: 
                    540:     </td></tr><tr><td><code><a href="tabular-data.html#the-th-element">th</a></code> element that is a <a href="#row-header">row header</a>
                    541:      </td><td><code title="attr-aria-role-rowheader">rowheader</code> role, with the <code title="attr-aria-labelledby">aria-labelledby</code> property set to the value of the <code title="attr-tdth-headers"><a href="tabular-data.html#attr-tdth-headers">headers</a></code> attribute, if any
                    542: 
                    543:     </td></tr><tr><td><code><a href="tabular-data.html#the-tr-element">tr</a></code> element
                    544:      </td><td><code title="attr-aria-role-row">row</code> role
                    545: 
                    546:     </td></tr><tr><td>An element that <a href="interactive-elements.html#concept-command" title="concept-command">defines a command</a>, whose <a href="interactive-elements.html#command-facet-type" title="command-facet-type">Type</a> facet is "checkbox", and that is a descendant of a <code><a href="interactive-elements.html#menus">menu</a></code> element whose <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#list-state" title="list state">list</a> state
                    547:      </td><td><code title="attr-aria-role-menuitemcheckbox">menuitemcheckbox</code> role, with the <code title="attr-aria-checked">aria-checked</code> state set to "true" if the command's <a href="interactive-elements.html#command-facet-checkedstate" title="command-facet-checkedstate">Checked State</a> facet is true, and "false" otherwise
                    548: 
                    549:     </td></tr><tr><td>An element that <a href="interactive-elements.html#concept-command" title="concept-command">defines a command</a>, whose <a href="interactive-elements.html#command-facet-type" title="command-facet-type">Type</a> facet is "command", and that is a descendant of a <code><a href="interactive-elements.html#menus">menu</a></code> element whose <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#list-state" title="list state">list</a> state
                    550:      </td><td><code title="attr-aria-role-menuitem">menuitem</code> role
                    551: 
                    552:     </td></tr><tr><td>An element that <a href="interactive-elements.html#concept-command" title="concept-command">defines a command</a>, whose <a href="interactive-elements.html#command-facet-type" title="command-facet-type">Type</a> facet is "radio", and that is a descendant of a <code><a href="interactive-elements.html#menus">menu</a></code> element whose <code title="attr-menu-type"><a href="interactive-elements.html#attr-menu-type">type</a></code> attribute in the <a href="interactive-elements.html#list-state" title="list state">list</a> state
                    553:      </td><td><code title="attr-aria-role-menuitemradio">menuitemradio</code> role, with the <code title="attr-aria-checked">aria-checked</code> state set to "true" if the command's <a href="interactive-elements.html#command-facet-checkedstate" title="command-facet-checkedstate">Checked State</a> facet is true, and "false" otherwise
                    554: 
                    555:     </td></tr><tr><td>Elements that are <a href="forms.html#concept-fe-disabled" title="concept-fe-disabled">disabled</a>
                    556:      </td><td>The <code title="title-aria-disabled">aria-disabled</code> state set to "true"
                    557: 
                    558:     </td></tr><tr><td>Elements that are <a href="forms.html#concept-input-required" title="concept-input-required">required</a>
                    559:      </td><td>The <code title="title-aria-required">aria-required</code> state set to "true"
                    560: 
                    561:   </td></tr></tbody></table><p>Some <a href="infrastructure.html#html-elements">HTML elements</a> have native semantics that can be
                    562:   overridden. The following table lists these elements,
                    563:   along with the restrictions that apply to those elements. Each
                    564:   language feature (element or attribute) in a cell in the first
                    565:   column implies, unless otherwise overriden, the ARIA semantic (role,
                    566:   state, or property) given in the cell in the second column of the
                    567:   same row, but this semantic may be overridden under the conditions
                    568:   listed in the cell in the third column of that row.</p><table><thead><tr><th>Language feature
                    569:      </th><th>Default implied ARIA semantic
                    570:      </th><th>Restrictions
                    571: 
                    572:    </th></tr></thead><tbody><tr><td><code><a href="semantics.html#the-article-element">article</a></code> element
                    573:      </td><td><code title="attr-aria-role-article">article</code> role
                    574:      </td><td>Role must be either <code title="attr-aria-role-article">article</code>, <code title="attr-aria-role-document">document</code>, <code title="attr-aria-role-application">application</code>, or <code title="attr-aria-role-main">main</code>
                    575: 
                    576:     </td></tr><tr><td><code><a href="semantics.html#the-aside-element">aside</a></code> element
                    577:      </td><td><code title="attr-aria-role-note">note</code> role
                    578:      </td><td>Role must be either <code title="attr-aria-role-note">note</code>, <code title="attr-aria-role-complementary">complementary</code>, or <code title="attr-aria-role-search">search</code>
                    579: 
                    580:     </td></tr><tr><td><code><a href="semantics.html#the-li-element">li</a></code> element whose parent is an <code><a href="semantics.html#the-ol-element">ol</a></code> or <code><a href="semantics.html#the-ul-element">ul</a></code> element
                    581:      </td><td><code title="attr-aria-role-listitem">listitem</code> role
                    582:      </td><td>Role must be either <code title="attr-aria-role-listitem">listitem</code> or <code title="attr-aria-role-treeitem">treeitem</code>
                    583: 
                    584:     </td></tr><tr><td><code><a href="semantics.html#the-ol-element">ol</a></code> element
                    585:      </td><td><code title="attr-aria-role-list">list</code> role
                    586:      </td><td>Role must be either <code title="attr-aria-role-list">list</code>, <code title="attr-aria-role-tree">tree</code>, or <code title="attr-aria-role-directory">directory</code>
                    587: 
                    588:     </td></tr><tr><td><code><a href="forms.html#the-output-element">output</a></code> element
                    589:      </td><td><code title="attr-aria-role-status">status</code> role
                    590:      </td><td>No restrictions
                    591: 
                    592:     </td></tr><tr><td><code><a href="semantics.html#the-section-element">section</a></code> element
                    593:      </td><td><code title="attr-aria-role-region">region</code> role
                    594:      </td><td>Role must be either <code title="attr-aria-role-region">region</code>, <code title="attr-aria-role-document">document</code>, <code title="attr-aria-role-application">application</code>, <code title="attr-aria-role-contentinfo">contentinfo</code>, <code title="attr-aria-role-main">main</code>, <code title="attr-aria-role-search">search</code>, <code title="attr-aria-role-alert">alert</code>, <code title="attr-aria-role-dialog">dialog</code>, <code title="attr-aria-role-alertdialog">alertdialog</code>, <code title="attr-aria-role-status">status</code>, or <code title="attr-aria-role-log">log</code>
                    595: 
                    596:     </td></tr><tr><td><code><a href="tabular-data.html#the-table-element">table</a></code> element
                    597:      </td><td><code title="attr-aria-role-grid">grid</code> role
                    598:      </td><td>Role must be either <code title="attr-aria-role-grid">grid</code> or <code title="attr-aria-role-treegrid">treegrid</code>
                    599: 
                    600:     </td></tr><tr><td><code><a href="semantics.html#the-ul-element">ul</a></code> element
                    601:      </td><td><code title="attr-aria-role-list">list</code> role
                    602:      </td><td>Role must be either <code title="attr-aria-role-list">list</code> or <code title="attr-aria-role-tree">tree</code>, or <code title="attr-aria-role-directory">directory</code>
                    603: 
                    604:     </td></tr><tr><td><a href="dom.html#the-body-element">The body element</a>
                    605:      </td><td><code title="attr-aria-role-document">document</code> role
                    606:      </td><td>Role must be either <code title="attr-aria-role-document">document</code> or <code title="attr-aria-role-application">application</code>
                    607: 
                    608:   </td></tr></tbody></table><h3 id="apis-in-html-documents"><span class="secno">3.3 </span>APIs in HTML documents</h3><p class="XXX annotation"><b>Status: </b><i>Awaiting implementation feedback</i></p><p>For <a href="dom.html#html-documents">HTML documents</a>, and for <a href="infrastructure.html#html-elements">HTML
                    609:   elements</a> in <a href="dom.html#html-documents">HTML documents</a>, certain APIs defined
                    610:   in DOM Core become case-insensitive or case-changing, as sometimes
                    611:   defined in DOM Core, and as summarized  below. <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><p>This does not apply to <a href="dom.html#xml-documents">XML documents</a> or to elements
                    612:   that are not in the <a href="#html-namespace-0">HTML namespace</a> despite being in
                    613:   <a href="dom.html#html-documents">HTML documents</a>.</p><dl><dt><code title="">Element.tagName</code> and <code title="">Node.nodeName</code></dt>
                    614: 
                    615:    <dd>
                    616: 
                    617:     <p>These attributes must<a href="#converted-to-ascii-uppercase">converted to ASCII uppercase</a>, regardless of the case
                    618:     with which they were created.</p>
                    619: 
                    620:    </dd>
                    621: 
                    622: 
                    623:    <dt><code title="">Document.createElement()</code></dt>
                    624: 
                    625:    <dd>
                    626: 
                    627:     <p>The canonical form of HTML markup is all-lowercase; thus, this
                    628:     method will <a href="#converted-to-ascii-lowercase" title="converted to ASCII lowercase">lowercase</a>
                    629:     the argument before creating the requisite element. .</p>
                    630: 
                    631:     <p class="note">This doesn't apply to <code title="">Document.createElementNS()</code>. Thus, it is possible,
                    632:     by passing this last method a tag name in the wrong case, to
                    633:     create an element that claims to have the tag name of an element
                    634:     defined in this specification, but doesn't support its interfaces,
                    635:     because it really has another tag name not accessible from the DOM
                    636:     APIs.</p>
                    637: 
                    638:    </dd>
                    639: 
                    640: 
                    641:    <dt><code title="">Element.setAttribute()</code></dt>
                    642:    <dt><code title="">Element.setAttributeNode()</code></dt>
                    643: 
                    644:    <dd>
                    645: 
                    646:     <p>Attribute names are <a href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.</p>
                    647: 
                    648:     
                    649: 
                    650:     <p class="note">This doesn't apply to <code title="">Document.setAttributeNS()</code> and <code title="">Document.setAttributeNodeNS()</code>.</p>
                    651: 
                    652:    </dd>
                    653: 
                    654: 
                    655:    <dt><code title="">Element.getAttribute()</code></dt>
                    656:    <dt><code title="">Element.getAttributeNode()</code></dt>
                    657: 
                    658:    <dd>
                    659: 
                    660:     <p>Attribute names are <a href="#converted-to-ascii-lowercase">converted to ASCII lowercase</a>.</p>
                    661: 
                    662:     
                    663: 
                    664:     <p class="note">This doesn't apply to <code title="">Document.getAttributeNS()</code> and <code title="">Document.getAttributeNodeNS()</code>.</p>
                    665: 
                    666:    </dd>
                    667: 
                    668: 
                    669:    <dt><code title="">Document.getElementsByTagName()</code></dt>
                    670:    <dt><code title="">Element.getElementsByTagName()</code></dt>
                    671: 
                    672:    <dd>
                    673: 
                    674:     <p>HTML elements match by lower-casing the argument before
                    675:     comparison, elements from other namespaces are treated as in XML
                    676:     (case-sensitively).</p>
                    677: 
                    678:     
                    679: 
                    680:     <p class="note">Thus, in an <a href="dom.html#html-documents" title="HTML documents">HTML
                    681:     document</a> with nodes in multiple namespaces, these methods
                    682:     will effectively be both case-sensitive and case-insensitive at
                    683:     the same time.</p>
                    684: 
                    685:    </dd>
                    686: 
                    687: 
                    688:   </dl><h3 id="dynamic-markup-insertion"><span class="secno">3.4 </span><dfn>Dynamic markup insertion</dfn></h3><p class="note">APIs for dynamically inserting markup into the
                    689:   document interact with the parser, and thus their behavior, varies
                    690:   depending on whether they are used with <a href="dom.html#html-documents">HTML documents</a>
                    691:   (and the <a href="#html-parser">HTML parser</a>) or XHTML in <a href="dom.html#xml-documents">XML
                    692:   documents</a> (and the <a href="#xml-parser">XML parser</a>).</p><h4 id="opening-the-input-stream"><span class="secno">3.4.1 </span>Opening the input stream</h4><p>The <dfn id="dom-document-open" title="dom-document-open"><code>open()</code></dfn>
                    693:   method comes in several variants with different numbers of
                    694:   arguments.</p><dl class="domintro"><dt><var title="">document</var> = <var title="">document</var> . <code title="dom-document-open"><a href="#dom-document-open">open</a></code>( [ <var title="">type</var> [, <var title="">replace</var> ] ] )</dt>
                    695: 
                    696:    <dd>
                    697: 
                    698:     <p>Causes the <code>Document</code> to be replaced in-place, as if
                    699:     it was a new <code>Document</code> object, but reusing the
                    700:     previous object, which is then returned.</p>
                    701: 
                    702:     <p>If the <var title="">type</var> argument is omitted or has the
                    703:     value "<code><a href="iana-considerations.html#text-html">text/html</a></code>", then the resulting
                    704:     <code>Document</code> has an HTML parser associated with it, which
                    705:     can be given data to parse using <code title="dom-document-write"><a href="#dom-document-write">document.write()</a></code>. Otherwise, all
                    706:     content passed to <code title="dom-document-write"><a href="#dom-document-write">document.write()</a></code> will be parsed
                    707:     as plain text.</p>
                    708: 
                    709:     <p>If the <var title="">replace</var> argument is present and has
                    710:     the value "<code title="">replace</code>", the existing entries in
                    711:     the session history for the <code>Document</code> object are
                    712:     removed.</p>
                    713: 
                    714:     <p>The method has no effect if the <code>Document</code> is still
                    715:     being parsed.</p>
                    716: 
1.44      mike      717:     <p>Throws an <code><a href="infrastructure.html#invalid_state_err">INVALID_STATE_ERR</a></code> exception if the
                    718:     <code>Document</code> is an <a href="dom.html#xml-documents" title="XML documents">XML
                    719:     document</a>.</p>
                    720: 
1.36      mike      721:    </dd>
                    722: 
                    723:    <dt><var title="">window</var> = <var title="">document</var> . <code title="dom-document-open"><a href="#dom-document-open">open</a></code>( <var title="">url</var>, <var title="">name</var>, <var title="">features</var> [, <var title="">replace</var> ] )</dt>
                    724: 
                    725:    <dd>
                    726: 
                    727:     <p>Works like the <code title="dom-open"><a href="#dom-open">window.open()</a></code>
                    728:     method.</p>
                    729: 
                    730:    </dd>
                    731: 
                    732:   </dl><h4 id="closing-the-input-stream"><span class="secno">3.4.2 </span>Closing the input stream</h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-close"><a href="#dom-document-close">close</a></code>()</dt>
                    733: 
                    734:    <dd>
                    735: 
                    736:     <p>Closes the input stream that was opened by the <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> method.</p>
                    737: 
                    738:    </dd>
                    739: 
                    740:   </dl><h4 id="document.write"><span class="secno">3.4.3 </span><code title="dom-document-write"><a href="#dom-document-write">document.write()</a></code></h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-write"><a href="#dom-document-write">write</a></code>(<var title="">text</var>...)</dt>
                    741: 
                    742:    <dd>
                    743: 
                    744:     <p>Adds the given string(s) to the <code>Document</code>'s input
                    745:     stream. If necessary, calls the <code title="dom-document-open"><a href="#dom-document-open">open()</a></code> method implicitly
                    746:     first.</p>
                    747: 
                    748:     <p>This method throws an <code><a href="infrastructure.html#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception
                    749:     when invoked on <a href="dom.html#xml-documents">XML documents</a>.</p>
                    750: 
                    751:    </dd>
                    752: 
                    753:   </dl><h4 id="document.writeln"><span class="secno">3.4.4 </span><code title="dom-document-writeln"><a href="#dom-document-writeln">document.writeln()</a></code></h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-writeln"><a href="#dom-document-writeln">writeln</a></code>(<var title="">text</var>...)</dt>
                    754: 
                    755:    <dd>
                    756: 
                    757:     <p>Adds the given string(s) to the <code>Document</code>'s input
                    758:     stream, followed by a newline character. If necessary, calls the
                    759:     <code title="dom-document-open"><a href="#dom-document-open">open()</a></code> method implicitly
                    760:     first.</p>
                    761: 
                    762:     <p>This method throws an <code><a href="infrastructure.html#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception
                    763:     when invoked on <a href="dom.html#xml-documents">XML documents</a>.</p>
                    764: 
                    765:    </dd>
                    766: 
                    767:   </dl><h4 id="innerhtml"><span class="secno">3.4.5 </span><code title="dom-innerHTML"><a href="#dom-innerhtml">innerHTML</a></code></h4><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed</i></p><p>The <dfn id="dom-innerhtml" title="dom-innerHTML"><code>innerHTML</code></dfn> IDL
                    768:   attribute represents the markup of the node's contents.</p><dl class="domintro"><dt><var title="">document</var> . <code title="dom-innerHTML"><a href="#dom-innerhtml">innerHTML</a></code> [ = <var title="">value</var> ]</dt>
                    769: 
                    770:    <dd>
                    771: 
                    772:     <p>Returns a fragment of HTML or XML that represents the
                    773:     <code>Document</code>.</p>
                    774: 
                    775:     <p>Can be set, to replace the <code>Document</code>'s contents
                    776:     with the result of parsing the given string.</p>
                    777: 
                    778:     <p>In the case of <a href="dom.html#xml-documents">XML documents</a>, will throw an
                    779:     <code><a href="infrastructure.html#invalid_state_err">INVALID_STATE_ERR</a></code> if the <code>Document</code> cannot
                    780:     be serialized to XML, and a <code><a href="infrastructure.html#syntax_err">SYNTAX_ERR</a></code> if the given
                    781:     string is not well-formed.</p>
                    782: 
                    783:    </dd>
                    784: 
                    785:    <dt><var title="">element</var> . <code title="dom-innerHTML"><a href="#dom-innerhtml">innerHTML</a></code> [ = <var title="">value</var> ]</dt>
                    786: 
                    787:    <dd>
                    788: 
                    789:     <p>Returns a fragment of HTML or XML that represents the element's
                    790:     contents.</p>
                    791: 
                    792:     <p>Can be set, to replace the contents of the element with nodes
                    793:     parsed from the given string.</p>
                    794: 
                    795:     <p>In the case of <a href="dom.html#xml-documents">XML documents</a>, will throw an
                    796:     <code><a href="infrastructure.html#invalid_state_err">INVALID_STATE_ERR</a></code> if the element cannot be serialized
                    797:     to XML, and a <code><a href="infrastructure.html#syntax_err">SYNTAX_ERR</a></code> if the given string is not
                    798:     well-formed.</p>
                    799: 
                    800:    </dd>
                    801: 
                    802:   </dl><h4 id="outerhtml"><span class="secno">3.4.6 </span><code title="dom-outerHTML"><a href="#dom-outerhtml">outerHTML</a></code></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="dom-outerhtml" title="dom-outerHTML"><code>outerHTML</code></dfn> IDL
                    803:   attribute represents the markup of the element and its contents.</p><dl class="domintro"><dt><var title="">element</var> . <code title="dom-outerHTML"><a href="#dom-outerhtml">outerHTML</a></code> [ = <var title="">value</var> ]</dt>
                    804: 
                    805:    <dd>
                    806: 
                    807:     <p>Returns a fragment of HTML or XML that represents the element
                    808:     and its contents.</p>
                    809: 
                    810:     <p>Can be set, to replace the element with nodes parsed from the
                    811:     given string.</p>
                    812: 
                    813:     <p>In the case of <a href="dom.html#xml-documents">XML documents</a>, will throw an
                    814:     <code><a href="infrastructure.html#invalid_state_err">INVALID_STATE_ERR</a></code> if the element cannot be serialized
                    815:     to XML, and a <code><a href="infrastructure.html#syntax_err">SYNTAX_ERR</a></code> if the given string is not
                    816:     well-formed.</p>
                    817: 
                    818:     <p>Throws a <code><a href="infrastructure.html#no_modification_allowed_err">NO_MODIFICATION_ALLOWED_ERR</a></code> exception if
                    819:     the parent of the element is the <code>Document</code>
                    820:     node.</p>
                    821: 
                    822:    </dd>
                    823: 
                    824:   </dl><h4 id="insertadjacenthtml"><span class="secno">3.4.7 </span><code title="dom-insertAdjacentHTML"><a href="#dom-insertadjacenthtml">insertAdjacentHTML()</a></code></h4><dl class="domintro"><dt><var title="">element</var> . <code title="dom-insertAdjacentHTML"><a href="#dom-insertadjacenthtml">insertAdjacentHTML</a></code>(<var title="">position</var>, <var title="">text</var>)</dt>
                    825: 
                    826:    <dd>
                    827: 
                    828:     <p>Parsed the given string <var title="">text</var> as HTML or XML
                    829:     and inserts the resulting nodes into the tree in the position
                    830:     given by the <var title="">position</var> argument, as
                    831:     follows:</p>
                    832: 
                    833:     <dl><dt>"beforebegin"</dt>
                    834:      <dd>Before the element itself.</dd>
                    835:      <dt>"afterbegin"</dt>
                    836:      <dd>Just inside the element, before its first child.</dd>
                    837:      <dt>"beforeend"</dt>
                    838:      <dd>Just inside the element, after its last child.</dd>
                    839:      <dt>"afterend"</dt>
                    840:      <dd>After the element itself.</dd>
                    841:     </dl><p>Throws a <code><a href="infrastructure.html#syntax_err">SYNTAX_ERR</a></code> exception the arguments have
                    842:     invalid values (e.g., in the case of <a href="dom.html#xml-documents">XML documents</a>,
                    843:     if the given string is not well-formed).</p>
                    844: 
                    845:     <p>Throws a <code><a href="infrastructure.html#no_modification_allowed_err">NO_MODIFICATION_ALLOWED_ERR</a></code> exception if
                    846:     the given position isn't possible (e.g. inserting elements after
                    847:     the root element of a <code>Document</code>).</p>
                    848: 
                    849:    </dd>
                    850: 
                    851:   </dl></body></html>

Webmaster