From f837ce19d0540bfba76e038070e006a33d419ba1 Mon Sep 17 00:00:00 2001
From: Mason Freed An element's custom element state is one of
-" Whether or not an element is defined is used to determine the
behavior of the '':defined'' pseudo-class. Whether or not an element is custom is
used to determine the behavior of the mutation algorithms. The
-"undefined
", "failed
", "uncustomized
", or
-"custom
". An element whose custom element state is
-"uncustomized
" or "custom
" is said to be
-defined. An element whose
-custom element state is "custom
" is said to be
+"undefined
", "failed
", "uncustomized
",
+"precustomized
", or "custom
". An element whose
+custom element state is "uncustomized
" or "custom
" is
+said to be defined. An element
+whose custom element state is "custom
" is said to be
custom.
failed
" state is used to ensure that if a custom element constructor fails to
-execute correctly the first time, it is not executed again by an
-upgrade.failed
" and "precustomized
" states are used to ensure that if a
+custom element constructor fails to execute correctly the first time, it is not executed
+again by an upgrade.
The following code illustrates elements in each of these four states: