diff --git a/dom.bs b/dom.bs index 69b5dbd97..cd0736b6b 100644 --- a/dom.bs +++ b/dom.bs @@ -4913,47 +4913,6 @@ returns true) so that old pages don't stop working. -

Interface {{DocumentFragment}}

-
-[Constructor,
- Exposed=Window]
-interface DocumentFragment : Node {
-};
-
- -A {{DocumentFragment}} node can have an -associated element named -host. - -An object A is a -host-including inclusive ancestor -of an object B, if either A is an -inclusive ancestor of -B, or if B's root -has an associated host and -A is a -host-including inclusive ancestor -of B's root's -host. - -

The {{DocumentFragment}} node's -host concept is useful for HTML's <{template}> element and the -{{ShadowRoot}} object and impacts the pre-insert and replace algorithms. - - - -

-
tree = new {{DocumentFragment()}} -
Returns a new {{DocumentFragment}} node. -
- -The DocumentFragment() constructor -must return a new {{DocumentFragment}} node whose -node document is the global object's associated -document. - -

Interface {{DocumentType}}

@@ -4965,31 +4924,59 @@ interface DocumentType : Node {
 };
 
-{{DocumentType}} nodes are -simply known as doctypes. +

{{DocumentType}} nodes are simply known as +doctypes. -Doctypes have an associated +

Doctypes have an associated name, public ID, and system ID. -When a doctype is created, its -name is always given. Unless -explicitly given when a doctype is -created, its public ID and -system ID are the empty string. +

When a doctype is created, its name is always given. Unless +explicitly given when a doctype is created, its public ID and system ID are the +empty string. -The name attribute -must return the name. +

The name attribute's getter must return the +context object's name. -The publicId -attribute must return the -public ID. +

The publicId attribute's getter must return +the context object's public ID. -The systemId -attribute must return the -system ID. +

The systemId attribute's getter must return +the context object's system ID. + + +

Interface {{DocumentFragment}}

+ +
+[Constructor,
+ Exposed=Window]
+interface DocumentFragment : Node {
+};
+
+

A {{DocumentFragment}} node can have an associated element named +host. + +

An object A is a +host-including inclusive ancestor +of an object B, if either A is an inclusive ancestor of B, +or if B's root has an associated host and +A is a host-including inclusive ancestor of B's root's +host. + +

The {{DocumentFragment}} node's host +concept is useful for HTML's <{template}> element and for shadow roots, and impacts the +pre-insert and replace algorithms. + +

+
tree = new {{DocumentFragment()}} +
Returns a new {{DocumentFragment}} node. +
+ +

The DocumentFragment() constructor, when +invoked, must return a new {{DocumentFragment}} node whose node document is the +global object's associated document.

Interface {{Element}}

diff --git a/dom.html b/dom.html index 87e106541..53678b643 100644 --- a/dom.html +++ b/dom.html @@ -69,7 +69,7 @@

DOM

-

Living Standard — Last Updated

+

Living Standard — Last Updated

Participate: @@ -154,8 +154,8 @@

Table of Contents

  1. 4.5.1 Interface DOMImplementation
-
  • 4.6 Interface DocumentFragment -
  • 4.7 Interface DocumentType +
  • 4.6 Interface DocumentType +
  • 4.7 Interface DocumentFragment
  • 4.8 Interface Element
      @@ -2709,40 +2709,41 @@

      methods existed. As such, it is no longer to be used, but continues to exist (and simply returns true) so that old pages don’t stop working.

  • -

    4.6. Interface DocumentFragment

    +

    4.6. Interface DocumentType

    +
    [Exposed=Window]
    +interface DocumentType : Node {
    +  readonly attribute DOMString name;
    +  readonly attribute DOMString publicId;
    +  readonly attribute DOMString systemId;
    +};
    +
    +

    DocumentType nodes are simply known as doctypes.

    +

    Doctypes have an associated name, public ID, and system ID.

    +

    When a doctype is created, its name is always given. Unless +explicitly given when a doctype is created, its public ID and system ID are the +empty string.

    +

    The name attribute’s getter must return the context object’s name.

    +

    The publicId attribute’s getter must return +the context object’s public ID.

    +

    The systemId attribute’s getter must return +the context object’s system ID.

    +

    4.7. Interface DocumentFragment

    [Constructor,
      Exposed=Window]
     interface DocumentFragment : Node {
     };
     
    -

    A DocumentFragment node can have an -associated element named host.

    -

    An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.

    -

    The DocumentFragment node’s host concept is useful for HTML’s template element and the ShadowRoot object and impacts the pre-insert and replace algorithms.

    +

    A DocumentFragment node can have an associated element named host.

    +

    An object A is a host-including inclusive ancestor of an object B, if either A is an inclusive ancestor of B, +or if B’s root has an associated host and A is a host-including inclusive ancestor of B’s root’s host.

    +

    The DocumentFragment node’s host concept is useful for HTML’s template element and for shadow roots, and impacts the pre-insert and replace algorithms.

    tree = new DocumentFragment()
    Returns a new DocumentFragment node.
    -

    The DocumentFragment() constructor -must return a new DocumentFragment node whose node document is the global object’s associated document.

    -

    4.7. Interface DocumentType

    -
    [Exposed=Window]
    -interface DocumentType : Node {
    -  readonly attribute DOMString name;
    -  readonly attribute DOMString publicId;
    -  readonly attribute DOMString systemId;
    -};
    -
    -

    DocumentType nodes are -simply known as doctypes.

    -

    Doctypes have an associated name, public ID, and system ID.

    -

    When a doctype is created, its name is always given. Unless -explicitly given when a doctype is -created, its public ID and system ID are the empty string.

    -

    The name attribute -must return the name.

    -

    The publicId attribute must return the public ID.

    -

    The systemId attribute must return the system ID.

    +

    The DocumentFragment() constructor, when +invoked, must return a new DocumentFragment node whose node document is the +global object’s associated document.

    4.8. Interface Element

    [Exposed=Window]
     interface Element : Node {
    @@ -4845,15 +4846,15 @@ 

    attribute for Document, in §4.5 -
  • definition of, in §4.7 +
  • definition of, in §4.6
  • Document(), in §4.5
  • Document, in §4.5
  • document, in §4.5
  • documentElement, in §4.5
  • document element, in §4.8 -
  • DocumentFragment, in §4.6 -
  • DocumentFragment(), in §4.6 +
  • DocumentFragment, in §4.7 +
  • DocumentFragment(), in §4.7
  • DOCUMENT_FRAGMENT_NODE, in §4.4
  • DOCUMENT_NODE, in §4.4
  • DOCUMENT_POSITION_CONTAINED_BY, in §4.4 @@ -4862,7 +4863,7 @@

    DOCUMENT_POSITION_FOLLOWING, in §4.4
  • DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, in §4.4
  • DOCUMENT_POSITION_PRECEDING, in §4.4 -
  • DocumentType, in §4.7 +
  • DocumentType, in §4.6
  • DOCUMENT_TYPE_NODE, in §4.4
  • documentURI, in §4.5
  • domConfig, in §8.2 @@ -4985,8 +4986,8 @@

    hasChildNodes(), in §4.4
  • hasFeature(), in §4.5.1 -
  • host, in §4.6 -
  • host-including inclusive ancestor, in §4.6 +
  • host, in §4.7 +
  • host-including inclusive ancestor, in §4.7
  • HTMLCollection, in §4.2.7.2
  • HTML document, in §4.5
  • HTML namespace, in §2.5 @@ -5092,8 +5093,8 @@

    dfn for DocumentType, in §4.7 -
  • attribute for DocumentType, in §4.7 +
  • dfn for DocumentType, in §4.6 +
  • attribute for DocumentType, in §4.6
  • attribute for Attr, in §4.8.2
  • named attribute, in §4.8.2 @@ -5216,8 +5217,8 @@

    ProcessingInstruction, in §4.11
  • PROCESSING_INSTRUCTION_NODE, in §4.4 -
  • publicId, in §4.7 -
  • public ID, in §4.7 +
  • publicId, in §4.6 +
  • public ID, in §4.6
  • qualified name