diff --git a/dom.bs b/dom.bs index a4b6e4b0..2ec90fca 100644 --- a/dom.bs +++ b/dom.bs @@ -6954,8 +6954,35 @@ null, or a {{CustomElementRegistry}} object registry (default "
  • Set result to the result of constructing C, with no arguments. -

  • Assert: result's custom element state and - custom element definition are initialized. +

  • +

    Assert: one of the following is true: + +

    + +
    +
    
    +          customElements.define("x-example", class extends HTMLElement {
    +            constructor() {
    +              // Non-conformant: returns an existing element instead of calling super().
    +              return document.createElement("p");
    +            }
    +          });
    +
    +          document.createElement("x-example");
    +         
    + +

    Here result is the p element, whose + custom element state is "uncustomized" and whose + custom element definition is null. +

  • Assert: result's namespace is the HTML namespace.