From f773299e9f9107ae80df933a6cea8e050563fb9b Mon Sep 17 00:00:00 2001
From: Domenic Denicola Add constructor to this Prepare to run script with the current settings object. Run the following substeps while catching any exceptions: If Type(prototype) is not Object, then throw a
Let connectedCallback be Get(prototype,
- "connectedCallback"). Rethrow any exceptions. Let connectedCallback, disconnectedCallback, and
+ attributeChangedCallback be null. If connectedCallback is not undefined, and
- IsCallable(connectedCallback) is false, then throw a
- Let connectedCallbackValue be Get(prototype, "connectedCallback"). Rethrow any
+ exceptions. Let disconnectedCallback be If connectedCallbackValue is not undefined, then set
+ connectedCallback to the result of converting connectedCallbackValue to the Web IDL
+ Let disconnectedCallbackValue be Get(prototype, "disconnectedCallback"). Rethrow any
exceptions. If disconnectedCallback is not undefined, and
- IsCallable(disconnectedCallback) is false, then throw a
- If disconnectedCallbackValue is not undefined, then set
+ disconnectedCallback to the result of converting disconnectedCallbackValue to the Web
+ IDL Let attributeChangedCallback be Let attributeChangedCallbackValue be Get(prototype, "attributeChangedCallback"). Rethrow any
exceptions. If attributeChangedCallbackValue is not undefined, then set
+ attributeChangedCallback to the result of converting attributeChangedCallbackValue to the
+ Web IDL Let observedAttributes be an empty If attributeChangedCallback is not undefined, then: If attributeChangedCallback is not null, then: If IsCallable(attributeChangedCallback) is false, then throw
- a Let observedAttributesIterable be Get(constructor, "observedAttributes"). Rethrow any
exceptions.ArrayBufferView
boolean
DOMString
- USVString
double
+ Error
Function
long
@@ -2927,7 +2927,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
Uint8ClampedArray
unrestricted double
unsigned long
- USVString
@@ -66330,8 +66330,9 @@ console.log(plasticButton2.getAttribute("is")); // will output "plastic-button"<
data-x="concept-custom-element-definition-lifecycle-callbacks">lifecycle callbacks
connectedCallback
",
"disconnectedCallback
", and "attributeChangedCallback
". The corresponding values are either a JavaScript
- function object, or undefined. By default the value of each entry is undefined.Function
callback function type value, or null. By default the
+ value of each entry is null.
CustomElementsRegistry
's set of
being-defined constructors.TypeError
exception.TypeError
exception.Function
callback type. Rethrow any exceptions.TypeError
exception.Function
callback type. Rethrow any exceptions.Function
callback type. Rethrow any
+ exceptions.sequence<DOMString>
.
-
TypeError
exception.
Clean up after running script with the current settings - object.
Remove name from this CustomElementsRegistry
's set of
being-defined names.
If callback is undefined, then abort these steps.
If callback is null, then abort these steps.
If callbackName is "attributeChangedCallback
", then: