Skip to content

Commit 54b3226

Browse files
committed
Remove outerHTML property.
This has been moved to the HTML spec.
1 parent fa620cf commit 54b3226

File tree

1 file changed

+3
-51
lines changed

1 file changed

+3
-51
lines changed

index.html

+3-51
Original file line numberDiff line numberDiff line change
@@ -258,63 +258,15 @@ <h2>Extensibility</h2>
258258

259259
<pre class="idl">
260260
partial interface Element {
261-
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
262261
[CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
263262
};
264263
</pre>
265264

266265
<!-- outerHTML -->
267266

268-
<p>The <dfn data-dfn-for="Element"><code>outerHTML</code></dfn> IDL attribute represents the markup of the
269-
<code><a>Element</a></code> and its contents.
267+
<span id="dom-element-outerhtml"></span>
270268

271-
<dl class=domintro>
272-
<dt><var>element</var> . <a data-link-for="Element">outerHTML</a> [ = <var>value</var> ]
273-
<dd>Returns a fragment of HTML or XML that represents the element and its contents.
274-
275-
<p>Can be set, to replace the element with nodes parsed from the given string.
276-
277-
<p>In the case of an <a>XML document</a>, throws a "<code><a>InvalidStateError</a></code>"
278-
<code><a>DOMException</a></code> if the element cannot be serialized to XML, or a
279-
"<code><a>SyntaxError</a></code>" <code><a>DOMException</a></code> if the given string is not
280-
well-formed.
281-
282-
<p>Throws a "<code><a>NoModificationAllowedError</a></code>" <code><a>DOMException</a></code>
283-
if the parent of the element is a <code><a>Document</a></code>.
284-
</dl>
285-
286-
<p>On getting, return the result of invoking the <a>fragment serializing algorithm</a> on a
287-
fictional node whose only child is the <a>context object</a> providing <code>true</code> for the
288-
<a><var>require well-formed</var></a> flag (this might throw an exception instead of returning a string).
289-
290-
<p>On setting, the following steps must be run:
291-
292-
<ol>
293-
<li>Let <var>parent</var> be the <a>context object</a>'s <a>parent</a>.
294-
295-
<li>If <var>parent</var> is null, terminate these steps. There would be no way to obtain a
296-
reference to the nodes created even if the remaining steps were run.
297-
298-
<li>If <var>parent</var> is a <code><a>Document</a></code>, throw a
299-
"<code><a>NoModificationAllowedError</a></code>" <code><a>DOMException</a></code>.
300-
301-
<li>If <var>parent</var> is a <code><a>DocumentFragment</a></code>, let <var>parent</var> be a
302-
new <code><a>Element</a></code> with:
303-
304-
<ul>
305-
<li><code>body</code> as its <a>local name</a>,
306-
307-
<li>The <a>HTML namespace</a> as its <a data-lt="concept namespace">namespace</a>, and
308-
309-
<li>The <a>context object</a>'s <a>node document</a> as its <a>node document</a>.
310-
</ul>
311-
312-
<li>Let <var>fragment</var> be the result of invoking the <a>fragment parsing algorithm</a> with
313-
the new value as <var>markup</var>, and <var>parent</var> as the <var>context element</var>.
314-
315-
<li><a>Replace</a> the <a>context object</a> with <var>fragment</var> within the
316-
<a>context object</a>'s <a>parent</a>.
317-
</ol>
269+
<p>The definition of <code>outerHTML</code> has moved to <a href="https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#outerhtml-property">the HTML Standard</a>.</p>
318270

319271
<!-- insertAdjacentHTML -->
320272

@@ -1574,7 +1526,6 @@ <h2>Dependencies</h2>
15741526
an <dfn><a href="https://www.w3.org/TR/html5/single-page.html#active-document">active document</a></dfn>;
15751527
<li>Parsing concepts:
15761528
the <dfn><a href="https://html.spec.whatwg.org/dynamic-markup-insertion.html#fragment-parsing-algorithm-steps">fragment parsing algorithm</a></dfn>;
1577-
the <dfn><a href="https://html.spec.whatwg.org/dynamic-markup-insertion.html#fragment-serializing-algorithm-steps">fragment serializing algorithm</a></dfn>;
15781529
<dfn><a href="https://www.w3.org/TR/html5/single-page.html#html-parser">HTML parser</a></dfn>;
15791530
<dfn><a href="https://www.w3.org/TR/html5/single-page.html#parsing-xhtml-documents">parsing XHTML documents</a></dfn>;
15801531
<dfn><a href="https://www.w3.org/TR/html5/single-page.html#xml-parser">XML parser</a></dfn>;
@@ -1588,6 +1539,7 @@ <h2>Dependencies</h2>
15881539
<li>The <a>template</a>'s <dfn data-lt="template content"><a href="https://www.w3.org/TR/html5/single-page.html#template-contents">template contents</a></dfn>
15891540
<li>The <dfn data-lt="CEReactions"><a href="https://www.w3.org/TR/html5/single-page.html#cereactios">[CEReactions]</a></dfn> IDL <a>extended attribute</a>
15901541
<li>The <dfn><a href="https://html.spec.whatwg.org/dynamic-markup-insertion.html#dom-element-innerhtml">innerHTML</a></dfn>;
1542+
<li>The <dfn><a href="https://html.spec.whatwg.org/dynamic-markup-insertion.html#dom-element-outerhtml">outerHTML</a></dfn>;
15911543
</ul>
15921544

15931545
The DOM specification [[!DOM4]] defines the following terms used in this document:

0 commit comments

Comments
 (0)