diff --git a/source b/source index 7c905d3f93f..e3d5ae8b3f9 100644 --- a/source +++ b/source @@ -2917,8 +2917,8 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
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.
Add constructor to this CustomElementsRegistry
's set of
being-defined constructors.
Prepare to run script with the current settings object.
Run the following substeps while catching any exceptions:
@@ -66546,35 +66545,44 @@ dictionary ElementDefinitionOptions {If Type(prototype) is not Object, then throw a
TypeError
exception.
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
- TypeError
exception.
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
+ Function
callback type. Rethrow any exceptions.
Let disconnectedCallbackValue be Get(prototype, "disconnectedCallback"). Rethrow any exceptions.
If disconnectedCallback is not undefined, and
- IsCallable(disconnectedCallback) is false, then throw a
- TypeError
exception.
If disconnectedCallbackValue is not undefined, then set
+ disconnectedCallback to the result of converting disconnectedCallbackValue to the Web
+ IDL Function
callback type. Rethrow any exceptions.
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 Function
callback type. Rethrow any
+ exceptions.
Let observedAttributes be an empty sequence<DOMString>
.
If attributeChangedCallback is not undefined, then:
+If attributeChangedCallback is not null, then:
If IsCallable(attributeChangedCallback) is false, then throw
- a TypeError
exception.
Let observedAttributesIterable be Get(constructor, "observedAttributes"). Rethrow any exceptions.
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: