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