Skip to content

Commit 0dd19d7

Browse files
[HTML] Add Scoped Custom Element Registries whatwg/html@f2d8b88
+ Fix Web IDL syntax error in CustomElementRegistry's initialize() whatwg/html@689dace
1 parent 035072c commit 0dd19d7

11 files changed

+712
-259
lines changed

HTML-custom-ja.html

+495-202
Large diffs are not rendered by default.

HTML-dependencies-ja.html

+12-7
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136

137137
●●options
138138

139-
spec_date:2025-04-08
140-
trans_update:2025-04-09
139+
spec_date:2025-04-14
140+
trans_update:2025-04-16
141141
source_checked:240619
142142
page_state_key:HTML
143143
spec_status:LS
@@ -351,6 +351,7 @@
351351
切詰める:clampする:切り詰める
352352
commit:
353353
〜後の:post-
354+
保つ:keepする:~
354355

355356
●保安/環境
356357

@@ -2374,6 +2375,8 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
23742375
<li id="available-to-element-internals">`要素の内部特能から可用か@~DOM4#shadowroot-available-to-element-internals$
23752376
<li id="clonable">`~clone可能か@~DOM4#shadowroot-clonable$
23762377
<li id="shadow-serializable">`直列化-可能か@~DOM4#shadowroot-serializable$
2378+
<li id="shadow-root-custom-element-registry">`~custom要素~registry@~DOM4#shadowroot-custom-element-registry$
2379+
<li id="keep-custom-element-registry-null">`~custom要素~registryを~NULLに保つか@~DOM4#shadowroot-keep-custom-element-registry-null$
23772380
<li id="concept-shadow-root-mode">`~mode@~DOM4#shadowroot-mode$
23782381
<li id="concept-shadow-root-declarative">`宣言的か@~DOM4#shadowroot-declarative$
23792382
</ul>
@@ -2510,6 +2513,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
25102513
<ul>
25112514
<li id="document's-character-encoding">`符号化法@~DOM4#concept-document-encoding$
25122515
<li id="concept-document-mode">`~mode@~DOM4#concept-document-mode$
2516+
<li id="document-custom-element-registry">`~custom要素~registry@~DOM4#document-custom-element-registry$
25132517
<li id="concept-document-allow-declarative-shadow-roots">`宣言的な~shadow根を許容するか@~DOM4#document-allow-declarative-shadow-roots$
25142518
<li id="concept-document-content-type">`内容~型@~DOM4#concept-document-content-type$
25152519
</ul>
@@ -2521,7 +2525,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
25212525
<li id="limited-quirks-mode">`制限付き過去互換~mode@~DOM4#concept-document-limited-quirks$
25222526
<li id="no-quirks-mode">`過去互換なし~mode@~DOM4#concept-document-no-quirks$
25232527
</ul>
2524-
<li id="concept-node-clone">`~nodeを~cloneする~algo@~DOM4#concept-node-clone$【!with its arguments document, subtree, and parent
2528+
<li id="concept-node-clone">`~nodeを~cloneする~algo@~DOM4#concept-node-clone$【!with its arguments document, subtree, parent, and fallbackRegistry
25252529
<li id="concept-node-clone-ext">`~clone時の手続き@~DOM4#concept-node-clone-ext$
25262530
<li id="base-url-change-steps">基底~URL変更-手続き の概念
25272531
<li id="affected-by-a-base-url-change">要素が基底~URLの変更に影響されるときに何が起きるかの定義
@@ -2548,6 +2552,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
25482552
<li id="concept-element-namespace">`名前空間@~DOM4#concept-element-namespace$
25492553
<li id="concept-element-namespace-prefix">`名前空間~接頭辞@~DOM4#concept-element-namespace-prefix$
25502554
<li id="concept-element-local-name">`局所~名@~DOM4#concept-element-local-name$
2555+
<li id="element-custom-element-registry">`~custom要素~registry@~DOM4#element-custom-element-registry$
25512556
<li id="concept-element-custom-element-definition">`~custom要素~定義@~DOM4#concept-element-custom-element-definition$
25522557
<li id="concept-element-is-value">`~is0値@~DOM4#concept-element-is-value$
25532558
</ul>
@@ -2590,7 +2595,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
25902595
• node document concept
25912596
• document type concept
25922597
• host concept
2593-
• The shadow root concept, and its delegates focus, available to element internals, clonable, and serializable.
2598+
• The shadow root concept, and its delegates focus, available to element internals, clonable, serializable, custom element registry, and keep custom element registry null.
25942599
• The shadow host concept
25952600
• HTMLCollection interface, its length attribute, and its item() and namedItem() methods
25962601
• The terms collection and represented by the collection
@@ -2670,10 +2675,10 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
26702675
• EventListener callback interface
26712676
• The type of an event
26722677
• An event listener and its type and callback
2673-
• The encoding (herein the character encoding), mode, allow declarative shadow roots, and content type of a Document
2678+
• The encoding (herein the character encoding), mode, custom element registry, allow declarative shadow roots, and content type of a Document
26742679
• The distinction between XML documents and HTML documents
26752680
• The terms quirks mode, limited-quirks mode, and no-quirks mode
2676-
• The algorithm clone a node with its arguments document, subtree, and parent, and the concept of cloning steps
2681+
• The algorithm clone a node with its arguments document, subtree, parent, and fallbackRegistry, and the concept of cloning steps
26772682
• The concept of base URL change steps and the definition of what happens when an element is affected by a base URL change
26782683
• The concept of an element's unique identifier (ID)
26792684
• The concept of an element's classes
@@ -2682,7 +2687,7 @@ <h4 title="Dependencies">2.1.9. 依存関係</h4>
26822687
• The create an element algorithm
26832688
• The element interface concept
26842689
• The concepts of custom element state, and of defined and custom elements
2685-
• An element's namespace, namespace prefix, local name, custom element definition, and is value
2690+
• An element's namespace, namespace prefix, local name, custom element registry, custom element definition, and is value
26862691
• MutationObserver interface and mutation observers in general
26872692
• AbortController and its signal
26882693
• AbortSignal

HTML-document-lifecycle-ja.html

+19-3
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101

102102
●●options
103103

104-
spec_date:2025-03-14
105-
trans_update:2025-01-24
104+
spec_date:2025-04-14
105+
trans_update:2025-04-16
106106
source_checked:221101
107107
page_state_key:HTML
108108
spec_status:LS
@@ -406,6 +406,7 @@
406406

407407
●code
408408

409+
I.CustomElementRegistry:~HEcustom#customelementregistry
409410
I.DOMHighResTimeStamp:~HRTIME#dom-domhighrestimestamp
410411
I.EventSource:~HTMLsse#eventsource
411412
I.MessagePort:~HTMLcomms#messageport
@@ -678,6 +679,8 @@
678679
~CONTINUE:~INFRA#iteration-continue
679680
~WHILE:~INFRA#iteration-while
680681

682+
新たな~obj:~WEBIDLjs#new
683+
681684
~URL:~URL1#concept-url
682685
~URL~record:~URL1#concept-url
683686
~URLを直列化する:~URL1#concept-url-serializer
@@ -708,6 +711,7 @@
708711
doc.符号化法:~DOM4#concept-document-encoding
709712
doc.~mode:~DOM4#concept-document-mode
710713
doc.宣言的な~shadow根を許容するか:~DOM4#document-allow-declarative-shadow-roots
714+
doc.~custom要素~registry:~DOM4#document-custom-element-registry
711715
~eventを発火する:~DOM4#concept-event-fire
712716
要素を作成する:~DOM4#concept-create-element
713717
~nodeを付加する:~DOM4#concept-node-append
@@ -1054,7 +1058,17 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
10541058
`~URL$doc ~SET %作成時の~URL,
10551059
`現在の準備度$doc ~SET `loading^l,
10561060
`~about基底~URL$doc ~SET %~navi~params の`~about基底~URL$nvP,
1057-
`宣言的な~shadow根を許容するか$doc ~SET ~T
1061+
`宣言的な~shadow根を許容するか$doc ~SET ~T,
1062+
`~custom要素~registry$doc ~SET 新たな {{CustomElementRegistry}} ~obj†
1063+
</p>
1064+
1065+
<p class="trans-note">【†
1066+
単に
1067+
`新たな~obj$( `CustomElementRegistry$I )
1068+
の結果なのか,さらに
1069+
`new CustomElementRegistry@~HEcustom#dom-customelementregistry$c 構築子~手続き
1070+
も適用した結果なのか不明。
1071+
</p>
10581072
10591073
Let document be a new Document, with
10601074
@@ -1088,6 +1102,8 @@ <h4 title="Shared document creation infrastructure">7.5.1. 共用~文書~作成~
10881102
• navigationParams's about base URL
10891103
allow declarative shadow roots
10901104
• true
1105+
custom element registry
1106+
• A new {{CustomElementRegistry}} object.
10911107
</p>
10921108
</li>
10931109
<li>

HTML-document-sequences-ja.html

+20-3
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173

174174
●●options
175175

176-
spec_date:2024-12-12
177-
trans_update:2024-12-13
176+
spec_date:2025-04-14
177+
trans_update:2025-04-16
178178
source_checked:221101
179179
page_state_key:HTML
180180
spec_status:LS
@@ -502,6 +502,7 @@
502502
~window:~WINDOW#the-window-object
503503
文書:~HTMLdom#the-document-object
504504
I.WindowProxy:~HTMLWPROXY#windowproxy
505+
I.CustomElementRegistry:~HEcustom#customelementregistry
505506

506507
~WINDOW#dom-window-open
507508
~WINDOW#dom-window-parent
@@ -742,6 +743,8 @@
742743
:~INFRA#list-is-empty
743744
除去する:~INFRA#list-remove
744745

746+
新たな~obj:~WEBIDLjs#new
747+
745748
接続されて:~DOM4#connected
746749
~node:~DOM4#interface-node
747750
doc.~URL:~DOM4#concept-document-url
@@ -750,6 +753,7 @@
750753
doc.生成元:~DOM4#concept-document-origin
751754
doc.種別:~DOM4#concept-document-type
752755
doc.宣言的な~shadow根を許容するか:~DOM4#document-allow-declarative-shadow-roots
756+
doc.~custom要素~registry:~DOM4#document-custom-element-registry
753757
~node文書:~DOM4#concept-node-document
754758
~shadowも含めた~tree順序:~DOM4#concept-shadow-including-tree-order
755759
~shadowも含めた子孫:~DOM4#concept-shadow-including-descendant
@@ -3769,6 +3773,7 @@ <h5 title="Creating browsing contexts">7.3.2.1. 閲覧~文脈の作成-法</h5>
37693773
Let loadTimingInfo be a new document load timing info with its navigation start time set to the result of calling coarsen time with unsafeContextCreationTime and the new environment settings object's cross-origin isolated capability.
37703774
</li>
37713775
<li>
3776+
<p>
37723777
%文書 ~LET 新たな`文書$
37733778
— その
37743779
⇒#
@@ -3782,7 +3787,17 @@ <h5 title="Creating browsing contexts">7.3.2.1. 閲覧~文脈の作成-法</h5>
37823787
`~load計時~報$doc ~SET %~load計時~報,
37833788
`初期~about_blankか$doc ~SET ~T,
37843789
`~about基底~URL$doc ~SET %作成元の基底~URL,
3785-
`宣言的な~shadow根を許容するか$doc ~SET ~T
3790+
`宣言的な~shadow根を許容するか$doc ~SET ~T,
3791+
`~custom要素~registry$doc ~SET 新たな {{CustomElementRegistry}} ~obj†
3792+
</p>
3793+
3794+
<p class="trans-note">【†
3795+
単に
3796+
`新たな~obj$( `CustomElementRegistry$I )
3797+
の結果なのか,さらに
3798+
`new CustomElementRegistry@~HEcustom#dom-customelementregistry$c 構築子~手続き
3799+
も適用した結果なのか不明。
3800+
</p>
37863801
37873802
Let document be a new Document, with:
37883803
@@ -3808,6 +3823,8 @@ <h5 title="Creating browsing contexts">7.3.2.1. 閲覧~文脈の作成-法</h5>
38083823
• creatorBaseURL
38093824
allow declarative shadow roots
38103825
• true
3826+
custom element registry
3827+
• A new {{CustomElementRegistry}} object.
38113828
</li>
38123829
<li>
38133830
<p>

HTML-dom-ja.html

+34-11
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@
152152

153153
●●options
154154

155-
spec_date:2025-03-05
156-
trans_update:2025-03-05
155+
spec_date:2025-04-14
156+
trans_update:2025-04-16
157157
source_checked:240712
158158
page_state_key:HTML
159159
spec_status:LS
@@ -639,6 +639,7 @@
639639
jA.Get:~TC39#sec-get-o-p
640640

641641
現在の~realm:~TC39#current-realm
642+
~surrounding~agent:~TC39#surrounding-agent
642643

643644
h.Referrer-Policy:~REFERRER-POLICY#referrer-policy-header-dfn
644645
h.Last-Modified:~HTTPsem#field.last-modified
@@ -792,11 +793,11 @@
792793
cD.局所~名:~HEcustom#concept-custom-element-definition-local-name
793794
i.すでに構築-済みを表す~marker:~HEcustom#concept-already-constructed-marker
794795
~custom要素~構築子:~HEcustom#custom-element-constructor
796+
作動中な~custom要素~構築子~map:~HEcustom#active-custom-element-constructor-map
795797
昇格:~HEcustom#upgrades
796798
~custom要素:~HEcustom#custom-elements
797799
自律的~custom要素:~HEcustom#autonomous-custom-element
798-
~custom要素~registry:~HEcustom#global-custom-element-registry
799-
~custom要素~定義~集合:~HEcustom#custom-element-definition-set
800+
cR.~custom要素~定義~集合:~HEcustom#custom-element-definition-set
800801
不適合tに:~HEcustom#custom-element-conformance
801802
妥当な~custom要素~:~HEcustom#valid-custom-element-name
802803
内部~内容~属性~map:~HEcustom#internal-content-attribute-map
@@ -941,6 +942,7 @@
941942
doc.生成元:~DOM4#concept-document-origin
942943
doc.~URL:~DOM4#concept-document-url
943944
doc.内容~:~DOM4#concept-document-content-type
945+
doc.~custom要素~registry:~DOM4#document-custom-element-registry
944946
~:~DOM4#concept-tree-child
945947
子孫:~DOM4#concept-tree-descendant
946948
広義-先祖:~DOM4#concept-tree-inclusive-ancestor
@@ -1052,6 +1054,8 @@
10521054
WindowProxy:
10531055
文字列化子:stringifier:~
10541056
名値:name-value:-
1057+
surrounding:
1058+
agent:
10551059

10561060
●custom
10571061
subclass::::下位クラス:サブクラス
@@ -4627,11 +4631,6 @@ <h4 title="HTML element constructors">3.2.3. ~HTML要素の構築子</h4>
46274631
</p>
46284632
<ol>
46294633
<li>
4630-
%~registry ~LET `現在の大域~obj$の`~custom要素~registry$
4631-
4632-
Let registry be current global object's custom element registry.
4633-
</li>
4634-
<li>
46354634
%作動中な関数~obj ~LET `作動中な関数~obj$
46364635
46374636
</li>
@@ -4675,7 +4674,31 @@ <h4 title="HTML element constructors">3.2.3. ~HTML要素の構築子</h4>
46754674
</div>
46764675
</li>
46774676
<li>
4678-
%定義 ~LET %~registry の`~custom要素~定義~集合$を成す~itemとして,次を満たすものは[
4677+
%~registry ~LET `~surrounding~agent$にて`作動中な~custom要素~構築子~map$[ `NewTarget$jv ]
4678+
4679+
Let registry be null.
4680+
4681+
If the surrounding agent's active custom element constructor map[NewTarget] exists:
4682+
• Set registry to the surrounding agent's active custom element constructor map[NewTarget].
4683+
</li>
4684+
<li>
4685+
~IF[
4686+
%~registry ~NEQ ε
4687+
4688+
4689+
`~surrounding~agent$にて`作動中な~custom要素~構築子~map$[ `NewTarget$jv ] ~SET ε
4690+
4691+
• Remove the surrounding agent's active custom element constructor map[NewTarget].
4692+
</li>
4693+
<li>
4694+
~ELSE
4695+
4696+
%~registry ~SET `現在の大域~obj$に`結付けられた文書$の`~custom要素~registry$doc
4697+
4698+
Otherwise, set registry to current global object's associated Document's custom element registry.
4699+
</li>
4700+
<li>
4701+
%定義 ~LET %~registry の`~custom要素~定義~集合$cRを成す~itemとして,次を満たすものは[
46794702
在るならば それ/
46804703
無いならば ε
46814704
@@ -4696,7 +4719,7 @@ <h4 title="HTML element constructors">3.2.3. ~HTML要素の構築子</h4>
46964719
</p>
46974720

46984721
<p class="note">注記:
4699-
`~custom要素~定義~集合$内には
4722+
`~custom要素~定義~集合$cR内には
47004723
`構築子$cD ~EQ `undefined^jv
47014724
]を満たす~itemはあり得ないので、
47024725
この段は,~HTML要素~構築子が関数として~callされないようにもする

HTML-index-ja.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215

216216
●●options
217217

218-
spec_date:2025-02-28
219-
trans_update:2025-03-01
218+
spec_date:2025-04-14
219+
trans_update:2025-04-16
220220
source_checked:241021
221221
page_state_key:HTML
222222
spec_status:LS
@@ -814,6 +814,7 @@
814814

815815
a.contenteditable:~HTMLinteraction#attr-contenteditable
816816
a.commandfor:~HEforms#attr-button-commandfor
817+
a.type:~HEinput#attr-input-type
817818

818819
●header
819820
h.Last-Event-ID:~HTMLsse#last-event-id
@@ -1530,12 +1531,14 @@ <h3 title="Events">~event</h3>
15301531
`CloseWatcher$I / `dialog$e 要素
15311532
]が`閉-要請$を受信したとき、
15321533
それに向けて発火される。
1533-
1534-
利用者が `File$st 状態にある `input$e 要素の~promptにおいて選択を変更しなかった
1535-
]とき、
1534+
利用者が[
1535+
`input$e 要素のうち,その[
1536+
`type$a 属性の状態 ~EQ `File$st
1537+
]を満たすもの
1538+
]の~promptにおいて選択を変更しなかったとき、
15361539
当の要素に向けて発火される。
15371540
1538-
Fired at CloseWatcher objects or dialog elements when they receive a close request, or at input elements in the File state when the user does not change their selection
1541+
Fired at CloseWatcher objects or dialog elements when they receive a close request, or at input elements whose type attribute is in the File state when the user does not change their selection
15391542

15401543
<tr><td>`change@et
15411544
<td>`Event$I

0 commit comments

Comments
 (0)