diff --git a/source b/source index 8419eda4468..067049f8c7a 100644 --- a/source +++ b/source @@ -3415,6 +3415,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • valid attribute local name
  • valid element local name
  • is a global custom element registry
  • +
  • keep element custom element registry null
  • The following features are defined in UI Events: UIEVENTS

    @@ -12622,6 +12623,7 @@ interface HTMLElement : Element { [CEReactions, ReflectSetter] attribute DOMString writingSuggestions; [CEReactions, ReflectSetter] attribute DOMString autocapitalize; [CEReactions] attribute boolean autocorrect; + [CEReactions, Reflect] attribute boolean customElementRegistry; [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText; [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText; @@ -13976,6 +13978,7 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%
  • autocorrect
  • autofocus
  • contenteditable
  • +
  • customelementregistry
  • dir
  • draggable
  • enterkeyhint
  • @@ -77597,6 +77600,14 @@ console.assert(el instanceof SpiderMan); // upgraded! CustomElementRegistry object, it intentionally cannot be changed any further. This simplifies reasoning about code and allows implementations to optimize.

    +

    The customelementregistry attribute

    + +

    The + customelementregistry + attribute is used to specify whether the parser should be + looking up a custom element registry + when the parser runs Create an element for the token. The value is boolean.

    +

    Upgrades

    @@ -139837,8 +139848,15 @@ dictionary StorageEventInit : EventInit {
  • Let is be the value of the "is" attribute in token, if such an attribute exists; otherwise null.

  • -
  • Let registry be the result of looking up a custom element registry given intendedParent.

  • +
  • Let registry be null if + customelementregistry attribute exists; + otherwise let registry be the result of + looking up a custom element registry + given intendedParent.

  • + +
  • Let keepRegistryNull be true if + customelementregistry attribute exists; + otherwise false.

  • Let definition be the result of looking up a custom element definition given registry, @@ -139927,6 +139945,10 @@ dictionary StorageEventInit : EventInit { with the form element pointed to by the form element pointer and set element's parser inserted flag.

  • +
  • If keepRegistryNull is true, set element's + keep element custom element registry null + to true. +

  • Return element.

  • @@ -144648,6 +144670,15 @@ document.body.appendChild(text); data-x="escaping a string">escaped as described below in attribute mode, followed by a U+0022 QUOTATION MARK character (").

    +

    If the element does not have a + customelementregistry attribute in its + attribute list, and current node's + custom element registry is not the + same as the result of + looking up a custom element + registry given current node's parent element, then append + " customelementregistry=""".

    +

    For each attribute that the element has, append a U+0020 SPACE character, the attribute's serialized name as described below, a U+003D EQUALS SIGN character (=), a U+0022 QUOTATION MARK character ("), the @@ -153378,6 +153409,11 @@ interface External { "anonymous"; "use-credentials"; the empty string + + customelementregistry + HTML elements + Whether the element should use scoped custom element registry + Boolean attribute data object