Skip to content

Comments

Draft: Scoped custom elements registries#1

Open
leobalter wants to merge 1 commit intomasterfrom
scoped-custom-elements-registries
Open

Draft: Scoped custom elements registries#1
leobalter wants to merge 1 commit intomasterfrom
scoped-custom-elements-registries

Conversation

@leobalter
Copy link
Owner

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chrome: …
    • Firefox: …
    • Safari: …

(See WHATWG Working Mode: Changes for more details.)

source Outdated

<p>New instances of <code>CustomElementRegistry</code> can be defined and attached to a
<span>ShadowRoot</span> through the registry option from <code
data-x="dom-Element-attachShadow">attachShadow()</code>. Those instances are are independent of

This comment was marked as resolved.

source Outdated

<dd>Defines a new <span data-x="dom-CustomElementRegistry">Registry</span> that can map an
independent set of <span data-x="dom-window-customElements">custom elements</span>, which is
not attached yet to any <span>Document</span> or any <span>ShadowRoot</span>.</dd>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe custom registries can only be associated to a shadow root instance, not to a document.

also, I will like to use the the word "association" rather than "attach", because that opens the door to change that association at any given time.

@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from bae7b7a to b82f148 Compare August 20, 2020 20:12
@leobalter
Copy link
Owner Author

cc @justinfagnani

@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from b82f148 to 9cb3afc Compare October 16, 2020 20:15
@leobalter leobalter force-pushed the scoped-custom-elements-registries branch from e2c3553 to e069979 Compare October 16, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants