@@ -5,6 +5,7 @@ Shortname: dom
5
5
Text Macro : TWITTER thedomstandard
6
6
Abstract : DOM defines a platform-neutral model for events, aborting activities, and node trees.
7
7
Translation : ja https://triple-underscore.github.io/DOM4-ja.html
8
+ Translate IDs : slottable slotable
8
9
Ignored Terms : EmptyString, Array, Document
9
10
Indent : 1
10
11
</pre>
@@ -1304,8 +1305,8 @@ for discussion).
1304
1305
<a for=EventTarget>activation behavior</a> , then set <var> activationTarget</var> to
1305
1306
<var> target</var> .
1306
1307
1307
- <li><p> Let <var> slotable </var> be <var> target</var> , if <var> target</var> is a <a>slotable </a>
1308
- and is <a for=slotable >assigned</a> , and null otherwise.
1308
+ <li><p> Let <var> slottable </var> be <var> target</var> , if <var> target</var> is a <a>slottable </a>
1309
+ and is <a for=slottable >assigned</a> , and null otherwise.
1309
1310
1310
1311
<li><p> Let <var> slot-in-closed-tree</var> be false.
1311
1312
@@ -1317,20 +1318,20 @@ for discussion).
1317
1318
1318
1319
<ol>
1319
1320
<li>
1320
- <p> If <var> slotable </var> is non-null:
1321
+ <p> If <var> slottable </var> is non-null:
1321
1322
1322
1323
<ol>
1323
1324
<li><p> Assert: <var> parent</var> is a <a for=/>slot</a> .
1324
1325
1325
- <li><p> Set <var> slotable </var> to null.
1326
+ <li><p> Set <var> slottable </var> to null.
1326
1327
1327
1328
<li><p> If <var> parent</var> 's <a for=tree>root</a> is a <a for=/>shadow root</a> whose
1328
1329
<a for=ShadowRoot>mode</a> is "<code> closed</code> ", then set <var> slot-in-closed-tree</var>
1329
1330
to true.
1330
1331
</ol>
1331
1332
1332
- <li><p> If <var> parent</var> is a <a>slotable </a> and is <a for=slotable >assigned</a> , then set
1333
- <var> slotable </var> to <var> parent</var> .
1333
+ <li><p> If <var> parent</var> is a <a>slottable </a> and is <a for=slottable >assigned</a> , then
1334
+ set <var> slottable </var> to <var> parent</var> .
1334
1335
1335
1336
<li><p> Let <var> relatedTarget</var> be the result of <a>retargeting</a> <var> event</var> 's
1336
1337
<a for=Event>relatedTarget</a> against <var> parent</var> .
@@ -2126,27 +2127,27 @@ otherwise it is the empty string.</p>
2126
2127
2127
2128
<li><p> Otherwise, set <var> element</var> 's <a for=slot>name</a> to <var> value</var> .
2128
2129
2129
- <li><p> Run <a>assign slotables for a tree</a> with <var> element</var> 's <a for=tree>root</a> .
2130
+ <li><p> Run <a>assign slottables for a tree</a> with <var> element</var> 's <a for=tree>root</a> .
2130
2131
</ol>
2131
2132
</ol>
2132
2133
2133
2134
<p class="note"> The first <a>slot</a> in a <a>shadow tree</a> , in <a>tree order</a> , whose
2134
2135
<a for=slot>name</a> is the empty string, is sometimes known as the "default slot".</p>
2135
2136
2136
2137
<p> A <a>slot</a> has an associated <dfn export for=slot>assigned nodes</dfn> (a list of
2137
- <a>slotables </a> ). Unless stated otherwise it is empty.</p>
2138
+ <a>slottables </a> ). Unless stated otherwise it is empty.</p>
2138
2139
2139
- <h5 id=light-tree-slotables>Slotables </h5>
2140
+ <h5 id=light-tree-slotables>Slottables </h5>
2140
2141
2141
2142
<p> {{Element}} and {{Text}} <a for=/>nodes</a> are
2142
- <dfn export id=concept-slotable lt=slotable>slotables </dfn> .</p>
2143
+ <dfn export id=concept-slotable lt=slottable>slottables </dfn> .</p>
2143
2144
2144
- <p class="note"> A <a>slot</a> can be a <a>slotable </a> .
2145
+ <p class="note"> A <a>slot</a> can be a <a>slottable </a> .
2145
2146
2146
- <p> A <a>slotable </a> has an associated <dfn export for=slotable>name</dfn> (a string). Unless stated
2147
- otherwise it is the empty string.</p>
2147
+ <p> A <a>slottable </a> has an associated <dfn export for=slottable id= slotable-name >name</dfn> (a
2148
+ string). Unless stated otherwise it is the empty string.</p>
2148
2149
2149
- <p> Use these <a>attribute change steps</a> to update a <a>slotable </a> 's <a for=slotable >name</a> :
2150
+ <p> Use these <a>attribute change steps</a> to update a <a>slottable </a> 's <a for=slottable >name</a> :
2150
2151
2151
2152
<ol>
2152
2153
<li>
@@ -2160,31 +2161,33 @@ otherwise it is the empty string.</p>
2160
2161
<li><p> If <var> value</var> is the empty string and <var> oldValue</var> is null, then return.
2161
2162
2162
2163
<li><p> If <var> value</var> is null or the empty string, then set <var> element</var> 's
2163
- <a for=slotable >name</a> to the empty string.
2164
+ <a for=slottable >name</a> to the empty string.
2164
2165
2165
- <li><p> Otherwise, set <var> element</var> 's <a for=slotable >name</a> to <var> value</var> .
2166
+ <li><p> Otherwise, set <var> element</var> 's <a for=slottable >name</a> to <var> value</var> .
2166
2167
2167
- <li><p> If <var> element</var> is <a for=slotable >assigned</a> , then run <a>assign slotables </a>
2168
- for <var> element</var> 's <a for=slotable >assigned slot</a> .
2168
+ <li><p> If <var> element</var> is <a for=slottable >assigned</a> , then run <a>assign slottables </a>
2169
+ for <var> element</var> 's <a for=slottable >assigned slot</a> .
2169
2170
2170
2171
<li><p> Run <a>assign a slot</a> for <var> element</var> .
2171
2172
</ol>
2172
2173
</ol>
2173
2174
2174
- <p> A <a>slotable</a> has an associated <dfn export for=slotable>assigned slot</dfn> (null or a
2175
- <a>slot</a> ). Unless stated otherwise it is null. A <a>slotable</a> is
2176
- <dfn export for=slotable>assigned</dfn> if its <a>assigned slot</a> is non-null.</p>
2175
+ <p> A <a>slottable</a> has an associated
2176
+ <dfn export for=slottable id=slotable-assigned-slot>assigned slot</dfn> (null or a <a>slot</a> ).
2177
+ Unless stated otherwise it is null. A <a>slottable</a> is
2178
+ <dfn export for=slottable id=slotable-assigned>assigned</dfn> if its <a>assigned slot</a> is
2179
+ non-null.</p>
2177
2180
2178
- <h5 id=finding-slots-and-slotables>Finding slots and slotables </h5>
2181
+ <h5 id=finding-slots-and-slotables>Finding slots and slottables </h5>
2179
2182
2180
- <p> To <dfn export lt="find a slot|finding a slot">find a slot</dfn> for a given <a>slotable </a>
2181
- <var> slotable </var> and an optional <i> open flag</i> (unset unless stated otherwise), run these
2183
+ <p> To <dfn export lt="find a slot|finding a slot">find a slot</dfn> for a given <a>slottable </a>
2184
+ <var> slottable </var> and an optional <i> open flag</i> (unset unless stated otherwise), run these
2182
2185
steps:</p>
2183
2186
2184
2187
<ol>
2185
- <li><p> If <var> slotable </var> 's <a for=tree>parent</a> is null, then return null.</p></li>
2188
+ <li><p> If <var> slottable </var> 's <a for=tree>parent</a> is null, then return null.</p></li>
2186
2189
2187
- <li><p> Let <var> shadow</var> be <var> slotable </var> 's <a for=tree>parent</a>' s
2190
+ <li><p> Let <var> shadow</var> be <var> slottable </var> 's <a for=tree>parent</a>' s
2188
2191
<a for=Element>shadow root</a> .</p></li>
2189
2192
2190
2193
<li><p> If <var> shadow</var> is null, then return null.</p></li>
@@ -2193,12 +2196,12 @@ steps:</p>
2193
2196
<em> not</em> "<code> open</code> ", then return null.</p></li>
2194
2197
2195
2198
<li><p> Return the first <a>slot</a> in <a>tree order</a> in <var> shadow</var> 's
2196
- <a for=tree>descendants</a> whose <a for=slot>name</a> is <var> slotable </var> 's
2197
- <a for=slotable >name</a> , if any, and null otherwise.</p></li>
2199
+ <a for=tree>descendants</a> whose <a for=slot>name</a> is <var> slottable </var> 's
2200
+ <a for=slottable >name</a> , if any, and null otherwise.</p></li>
2198
2201
</ol>
2199
2202
2200
- <p> To <dfn export lt="find slotables |finding slotables">find slotables</dfn> for a given <a>slot</a >
2201
- <var> slot</var> , run these steps:</p>
2203
+ <p> To <dfn export lt="find slottables |finding slottables" id=find- slotables>find slottables</dfn >
2204
+ for a given <a>slot</a> <var> slot</var> , run these steps:</p>
2202
2205
2203
2206
<ol>
2204
2207
<li><p> Let <var> result</var> be an empty list.</p></li>
@@ -2210,14 +2213,14 @@ steps:</p>
2210
2213
<a for=DocumentFragment>host</a> .</p></li>
2211
2214
2212
2215
<li>
2213
- <p> For each <a>slotable </a> <a for=tree>child</a> of <var> host</var> , <var> slotable </var> , in
2216
+ <p> For each <a>slottable </a> <a for=tree>child</a> of <var> host</var> , <var> slottable </var> , in
2214
2217
<a>tree order</a> :</p>
2215
2218
2216
2219
<ol>
2217
2220
<li><p> Let <var> foundSlot</var> be the result of <a>finding a slot</a> given
2218
- <var> slotable </var> .</p></li>
2221
+ <var> slottable </var> .</p></li>
2219
2222
2220
- <li><p> If <var> foundSlot</var> is <var> slot</var> , then append <var> slotable </var> to
2223
+ <li><p> If <var> foundSlot</var> is <var> slot</var> , then append <var> slottable </var> to
2221
2224
<var> result</var> .</p></li>
2222
2225
</ol>
2223
2226
</li>
@@ -2226,7 +2229,7 @@ steps:</p>
2226
2229
</ol>
2227
2230
2228
2231
<p> To
2229
- <dfn export lt="find flattened slotables |finding flattened slotables" >find flattened slotables </dfn>
2232
+ <dfn export lt="find flattened slottables |finding flattened slottables" id=find-flattened-slotables >find flattened slottables </dfn>
2230
2233
for a given <a>slot</a> <var> slot</var> , run these steps:</p>
2231
2234
2232
2235
<ol>
@@ -2235,25 +2238,25 @@ for a given <a>slot</a> <var>slot</var>, run these steps:</p>
2235
2238
<li><p> If <var> slot</var> 's <a for=tree>root</a> is not a <a for=/>shadow root</a> , then return
2236
2239
<var> result</var> .</p></li>
2237
2240
2238
- <li><p> Let <var> slotables </var> be the result of <a>finding slotables </a> given
2241
+ <li><p> Let <var> slottables </var> be the result of <a>finding slottables </a> given
2239
2242
<var> slot</var> .</p></li>
2240
2243
2241
- <li><p> If <var> slotables </var> is the empty list, then append each <a>slotable </a>
2242
- <a for=tree>child</a> of <var> slot</var> , in <a>tree order</a> , to <var> slotables </var> .</p></li>
2244
+ <li><p> If <var> slottables </var> is the empty list, then append each <a>slottable </a>
2245
+ <a for=tree>child</a> of <var> slot</var> , in <a>tree order</a> , to <var> slottables </var> .</p></li>
2243
2246
2244
2247
<li>
2245
- <p> For each <var> node</var> in <var> slotables </var> :
2248
+ <p> For each <var> node</var> in <var> slottables </var> :
2246
2249
2247
2250
<ol>
2248
2251
<li>
2249
2252
<p> If <var> node</var> is a <a>slot</a> whose <a for=tree>root</a> is a <a for=/>shadow root</a> ,
2250
2253
then:
2251
2254
2252
2255
<ol>
2253
- <li><p> Let <var> temporaryResult</var> be the result of <a>finding flattened slotables </a> given
2256
+ <li><p> Let <var> temporaryResult</var> be the result of <a>finding flattened slottables </a> given
2254
2257
<var> node</var> .</p></li>
2255
2258
2256
- <li><p> Append each <a>slotable </a> in <var> temporaryResult</var> , in order, to
2259
+ <li><p> Append each <a>slottable </a> in <var> temporaryResult</var> , in order, to
2257
2260
<var> result</var> .</p></li>
2258
2261
</ol>
2259
2262
@@ -2264,33 +2267,34 @@ for a given <a>slot</a> <var>slot</var>, run these steps:</p>
2264
2267
<li><p> Return <var> result</var> .</p></li>
2265
2268
</ol>
2266
2269
2267
- <h5 id=assigning-slotables-and-slots>Assigning slotables and slots</h5>
2270
+ <h5 id=assigning-slotables-and-slots>Assigning slottables and slots</h5>
2268
2271
2269
- <p> To <dfn noexport>assign slotables</dfn> for a <a>slot</a> <var> slot</var> , run these steps:
2272
+ <p> To <dfn noexport id=assign-slotables>assign slottables</dfn> for a <a>slot</a> <var> slot</var> ,
2273
+ run these steps:
2270
2274
2271
2275
<ol>
2272
- <li><p> Let <var> slotables </var> be the result of <a>finding slotables </a> for <var> slot</var> .
2276
+ <li><p> Let <var> slottables </var> be the result of <a>finding slottables </a> for <var> slot</var> .
2273
2277
2274
- <li><p> If <var> slotables </var> and <var> slot</var> 's <a for=slot>assigned nodes</a> are not
2278
+ <li><p> If <var> slottables </var> and <var> slot</var> 's <a for=slot>assigned nodes</a> are not
2275
2279
identical, then run <a>signal a slot change</a> for <var> slot</var> .
2276
2280
2277
- <li><p> Set <var> slot</var> 's <a for=slot>assigned nodes</a> to <var> slotables </var> .
2281
+ <li><p> Set <var> slot</var> 's <a for=slot>assigned nodes</a> to <var> slottables </var> .
2278
2282
2279
- <li><p> For each <var> slotable </var> in <var> slotables </var> , set <var> slotable </var> 's
2283
+ <li><p> For each <var> slottable </var> in <var> slottables </var> , set <var> slottable </var> 's
2280
2284
<a>assigned slot</a> to <var> slot</var> .
2281
2285
</ol>
2282
2286
2283
- <p> To <dfn noexport>assign slotables for a tree</dfn> , given a <a for=/>node</a>
2284
- <var> root</var> , run <a>assign slotables </a> for each <a>slot</a> <var> slot</var> in
2285
- <var> root</var> 's <a for=tree>inclusive descendants</a> , in <a>tree order</a> .
2287
+ <p> To <dfn noexport id=assign-slotables-for-a-tree >assign slottables for a tree</dfn> , given a
2288
+ <a for=/>node</a> < var> root</var> , run <a>assign slottables </a> for each <a>slot</a> <var> slot</var>
2289
+ in <var> root</var> 's <a for=tree>inclusive descendants</a> , in <a>tree order</a> .
2286
2290
2287
- <p> To <dfn noexport>assign a slot</dfn> , given a <a>slotable </a> <var> slotable </var> , run these
2291
+ <p> To <dfn noexport>assign a slot</dfn> , given a <a>slottable </a> <var> slottable </var> , run these
2288
2292
steps:
2289
2293
2290
2294
<ol>
2291
- <li><p> Let <var> slot</var> be the result of <a>finding a slot</a> with <var> slotable </var> .
2295
+ <li><p> Let <var> slot</var> be the result of <a>finding a slot</a> with <var> slottable </var> .
2292
2296
2293
- <li><p> If <var> slot</var> is non-null, then run <a>assign slotables </a> for <var> slot</var> .
2297
+ <li><p> If <var> slot</var> is non-null, then run <a>assign slottables </a> for <var> slot</var> .
2294
2298
</ol>
2295
2299
2296
2300
<h5 id=signaling-slot-change>Signaling slot change</h5>
@@ -2447,13 +2451,13 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
2447
2451
<a for=tree>children</a> before <var> child</var> 's <a for=tree>index</a> .
2448
2452
2449
2453
<li><p> If <var> parent</var> is a <a for=Element>shadow host</a> and <var> node</var> is a
2450
- <a>slotable </a> , then <a>assign a slot</a> for <var> node</var> .
2454
+ <a>slottable </a> , then <a>assign a slot</a> for <var> node</var> .
2451
2455
2452
2456
<li><p> If <var> parent</var> 's <a for=tree>root</a> is a <a for=/>shadow root</a> , and
2453
2457
<var> parent</var> is a <a>slot</a> whose <a for=slot>assigned nodes</a> is the empty list,
2454
2458
then run <a>signal a slot change</a> for <var> parent</var> .
2455
2459
2456
- <li><p> Run <a>assign slotables for a tree</a> with <var> node</var> 's <a for=tree>root</a> .
2460
+ <li><p> Run <a>assign slottables for a tree</a> with <var> node</var> 's <a for=tree>root</a> .
2457
2461
2458
2462
<li>
2459
2463
<p> For each <a>shadow-including inclusive descendant</a> <var> inclusiveDescendant</var> of
@@ -2663,7 +2667,7 @@ indicated in the <a for=/>remove</a> algorithm below.
2663
2667
2664
2668
<li><p> <a for=set>Remove</a> <var> node</var> from its <var> parent</var> 's <a for=tree>children</a> .
2665
2669
2666
- <li><p> If <var> node</var> is <a for=slotable >assigned</a> , then run <a>assign slotables </a> for
2670
+ <li><p> If <var> node</var> is <a for=slottable >assigned</a> , then run <a>assign slottables </a> for
2667
2671
<var> node</var> 's <a>assigned slot</a> .
2668
2672
2669
2673
<li><p> If <var> parent</var> 's <a for=tree>root</a> is a <a for=/>shadow root</a> , and
@@ -2674,9 +2678,9 @@ indicated in the <a for=/>remove</a> algorithm below.
2674
2678
<p> If <var> node</var> has an <a>inclusive descendant</a> that is a <a>slot</a> , then:
2675
2679
2676
2680
<ol>
2677
- <li><p> Run <a>assign slotables for a tree</a> with <var> parent</var> 's <a for=tree>root</a> .
2681
+ <li><p> Run <a>assign slottables for a tree</a> with <var> parent</var> 's <a for=tree>root</a> .
2678
2682
2679
- <li><p> Run <a>assign slotables for a tree</a> with <var> node</var> .
2683
+ <li><p> Run <a>assign slottables for a tree</a> with <var> node</var> .
2680
2684
</ol>
2681
2685
2682
2686
<li><p> Run the <a>removing steps</a> with <var> node</var> and <var> parent</var> .
@@ -3043,18 +3047,19 @@ steps:
3043
3047
</ol>
3044
3048
3045
3049
3046
- <h4 id=mixin-slotable>Mixin {{Slotable }}</h4>
3050
+ <h4 id=mixin-slotable>Mixin {{Slottable }}</h4>
3047
3051
3048
3052
<pre class=idl>
3049
- interface mixin Slotable {
3053
+ interface mixin Slottable {
3050
3054
readonly attribute HTMLSlotElement? assignedSlot;
3051
3055
};
3052
- Element includes Slotable ;
3053
- Text includes Slotable ;
3056
+ Element includes Slottable ;
3057
+ Text includes Slottable ;
3054
3058
</pre>
3055
3059
3056
- <p> The <dfn attribute for=Slotable><code>assignedSlot</code></dfn> attribute's getter must return
3057
- the result of <a>find a slot</a> given <a>this</a> and with the <i> open flag</i> set.</p>
3060
+ <p> The <dfn attribute for=Slottable id=dom-slotable-assignedslot><code>assignedSlot</code></dfn>
3061
+ attribute's getter must return the result of <a>find a slot</a> given <a>this</a> and with the
3062
+ <i> open flag</i> set.</p>
3058
3063
3059
3064
3060
3065
<h4 id=old-style-collections>Old-style collections: {{NodeList}} and {{HTMLCollection}}</h4>
0 commit comments