From adb3934da79b4dfec48600d26291a253070cf13e Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Wed, 10 Apr 2024 14:41:33 +0100 Subject: [PATCH] Remove outerHTML property. This has been moved to the HTML spec. --- index.html | 54 +++--------------------------------------------------- 1 file changed, 3 insertions(+), 51 deletions(-) diff --git a/index.html b/index.html index 9d8fffe..34fa8bf 100644 --- a/index.html +++ b/index.html @@ -258,63 +258,15 @@

Extensibility

     partial interface Element {
-      [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
       [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
     };
   
-

The outerHTML IDL attribute represents the markup of the - Element and its contents. + -

-
element . outerHTML [ = value ] -
Returns a fragment of HTML or XML that represents the element and its contents. - -

Can be set, to replace the element with nodes parsed from the given string. - -

In the case of an XML document, throws a "InvalidStateError" - DOMException if the element cannot be serialized to XML, or a - "SyntaxError" DOMException if the given string is not - well-formed. - -

Throws a "NoModificationAllowedError" DOMException - if the parent of the element is a Document. -

- -

On getting, return the result of invoking the fragment serializing algorithm on a - fictional node whose only child is the context object providing true for the - require well-formed flag (this might throw an exception instead of returning a string). - -

On setting, the following steps must be run: - -

    -
  1. Let parent be the context object's parent. - -
  2. If parent is null, terminate these steps. There would be no way to obtain a - reference to the nodes created even if the remaining steps were run. - -
  3. If parent is a Document, throw a - "NoModificationAllowedError" DOMException. - -
  4. If parent is a DocumentFragment, let parent be a - new Element with: - - - -
  5. Let fragment be the result of invoking the fragment parsing algorithm with - the new value as markup, and parent as the context element. - -
  6. Replace the context object with fragment within the - context object's parent. -
+

The definition of outerHTML has moved to the HTML Standard.

@@ -1574,7 +1526,6 @@

Dependencies

an active document;
  • Parsing concepts: the fragment parsing algorithm; - the fragment serializing algorithm; HTML parser; parsing XHTML documents; XML parser; @@ -1588,6 +1539,7 @@

    Dependencies

  • The template's template contents
  • The [CEReactions] IDL extended attribute
  • The innerHTML property; +
  • The outerHTML property; The DOM specification [[!DOM4]] defines the following terms used in this document: