You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let candidates be a list of all of root's shadow-including inclusive descendant elements, in shadow-including tree order.
3913
-
</li>
3914
-
<li>
3915
-
%候補~群 を成す
3902
+
~method手続きは
3903
+
⇒
3904
+
%root の`~shadowも含めた広義-子孫$たちを成す
3916
3905
~EACH( %候補 )
3917
-
に対し
3906
+
に対し,`~shadowも含めた~tree順序$で
3907
+
⇒
3908
+
~IF[
3909
+
%候補 は`要素$である
3910
+
]~AND[
3911
+
%候補 の`~custom要素~registry$el ~EQ コレ
3912
+
]
3918
3913
⇒
3919
3914
`要素を昇格するよう試行する$( %候補 )
3920
3915
◎
3921
-
For each candidate of candidates, try to upgrade candidate.
3922
-
</li>
3923
-
</ol>
3916
+
The upgrade(root) method steps are:
3917
+
• For each shadow-including inclusive descendant candidate of root, in shadow-including tree order:
3918
+
•• If candidate is not an Element node, then continue.
3919
+
•• If candidate's custom element registry is not this, then continue.
3920
+
•• Try to upgrade candidate.
3924
3921
</div>
3925
3922
3926
3923
<divclass="example">
3927
3924
<p>
3928
-
`upgrade()$m ~methodを利用すれば、
3929
-
要素を意のままに昇格できる。
3930
-
<!-- `接続されて$いるになったとき -->
3931
-
通常は,要素は`接続されたとき$に自動的に昇格されるが、
3925
+
`upgrade()$m ~methodは、
3926
+
要素を意のままに昇格することを許容する。
3927
+
通常は,要素は`接続されたとき$【!`接続されて$いるになったとき】に自動的に昇格されるが、
3932
3928
そうなる前に昇格する必要があるときなど。
3933
3929
◎
3934
3930
The upgrade() method allows upgrading of elements at will. Normally elements are automatically upgraded when they become connected, but this method can be used if you need to upgrade before you're ready to connect the element.
0 commit comments