Skip to content

Order of lifecycleCallbacks in customeelementregistry.define doesn't match implementations #12016

@lukewarlow

Description

@lukewarlow

What is the issue with the HTML Standard?

Step 14.3 of https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-define

Defines lifecycleCallbacks in the order

  1. "connectedCallback"
  2. "disconnectedCallback"
  3. "adoptedCallback"
  4. "connectedMoveCallback"
  5. "attributeChangedCallback"

Both Chromium and Firefox, plus the WPTs (Such as https://wpt.live/custom-elements/CustomElementRegistry.html) have connectedMoveCallback before adoptedCallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: custom elementsRelates to custom elements (as defined in DOM and HTML)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions