Skip to content

Commit b28adbf

Browse files
[HTML] Clarify that window.customElements always returns an object whatwg/html@20a7295
1 parent 7493204 commit b28adbf

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

HTML-custom-ja.html

+30-6
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@
166166

167167
●●options
168168

169-
spec_date:2025-04-15
170-
trans_update:2025-04-16
169+
spec_date:2025-04-16
170+
trans_update:2025-04-17
171171
source_checked:250314
172172
page_state_key:HTML
173173
spec_status:LS
@@ -2916,13 +2916,37 @@ <h4 title="The CustomElementRegistry interface">4.13.4. `CustomElementRegistry^I
29162916
</p>
29172917

29182918
<div class="algo">
2919+
<p>
29192920
`Window$I の
29202921
`customElements@m
2921-
取得子~手続きは
2922-
2923-
~RET コレ に`結付けられた文書$の`~custom要素~registry$doc
2922+
取得子~手続きは:
2923+
</p>
2924+
<ol>
2925+
<li>
2926+
%~registry ~LET コレに`結付けられた文書$の`~custom要素~registry$doc
2927+
2928+
</li>
2929+
<li>
2930+
<p>
2931+
~Assert:
2932+
%~registry は `CustomElementRegistry$I ~objである。
2933+
2934+
Assert: this's associated Document's custom element registry is a CustomElementRegistry object.
2935+
</p>
2936+
2937+
<p class="note">注記:
2938+
`Window$I に`結付けられた文書$は、
2939+
常に,新たな `CustomElementRegistry$I ~objを伴って作成される。
29242940
2925-
The Window customElements getter steps are to return this's associated Document's custom element registry.
2941+
A Window's associated Document is always created with a new CustomElementRegistry object.
2942+
</p>
2943+
</li>
2944+
<li>
2945+
~RET %~registry
2946+
2947+
Return this's associated Document's custom element registry.
2948+
</li>
2949+
</ol>
29262950
</div>
29272951

29282952
<pre class="idl">

0 commit comments

Comments
 (0)