Skip to content

Commit f837ce1

Browse files
mfreed7annevk
andauthored
Add "precustomized" custom element state
For whatwg/html#5909. Tests: web-platform-tests/wpt#25794. Co-authored-by: Anne van Kesteren <[email protected]>
1 parent 12beda2 commit f837ce1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: dom.bs

+8-8
Original file line numberDiff line numberDiff line change
@@ -5875,19 +5875,19 @@ dictionary ShadowRootInit {
58755875
initialized.
58765876

58775877
<p>An <a for=/>element</a>'s <a for=Element>custom element state</a> is one of
5878-
"<code>undefined</code>", "<code>failed</code>", "<code>uncustomized</code>", or
5879-
"<code>custom</code>". An <a for=/>element</a> whose <a for=Element>custom element state</a> is
5880-
"<code>uncustomized</code>" or "<code>custom</code>" is said to be
5881-
<dfn export id=concept-element-defined for=Element>defined</dfn>. An <a for=/>element</a> whose
5882-
<a for=Element>custom element state</a> is "<code>custom</code>" is said to be
5878+
"<code>undefined</code>", "<code>failed</code>", "<code>uncustomized</code>",
5879+
"<code>precustomized</code>", or "<code>custom</code>". An <a for=/>element</a> whose
5880+
<a for=Element>custom element state</a> is "<code>uncustomized</code>" or "<code>custom</code>" is
5881+
said to be <dfn export id=concept-element-defined for=Element>defined</dfn>. An <a for=/>element</a>
5882+
whose <a for=Element>custom element state</a> is "<code>custom</code>" is said to be
58835883
<dfn export id=concept-element-custom for=Element>custom</dfn>.
58845884

58855885
<p class=note>Whether or not an element is <a for=Element>defined</a> is used to determine the
58865886
behavior of the '':defined'' pseudo-class. Whether or not an element is <a for=Element>custom</a> is
58875887
used to determine the behavior of the <a href=#mutation-algorithms>mutation algorithms</a>. The
5888-
"<code>failed</code>" state is used to ensure that if a <a>custom element constructor</a> fails to
5889-
execute correctly the first time, it is not executed again by an
5890-
<a lt="upgrade an element">upgrade</a>.</p>
5888+
"<code>failed</code>" and "<code>precustomized</code>" states are used to ensure that if a
5889+
<a>custom element constructor</a> fails to execute correctly the first time, it is not executed
5890+
again by an <a lt="upgrade an element">upgrade</a>.</p>
58915891

58925892
<div class=example id=example-c5b21302>
58935893
<p>The following code illustrates elements in each of these four states:</p>

0 commit comments

Comments
 (0)