Skip to content

Commit 32184f9

Browse files
[HTML] Fix several issues with indeterminate whatwg/html@620bdf6
1 parent 353551a commit 32184f9

4 files changed

Lines changed: 103 additions & 126 deletions

File tree

HTML-input-ja.html

Lines changed: 89 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@
237237

238238
●●options
239239

240-
spec_date:2026-06-03
241-
trans_update:2026-06-10
240+
spec_date:2026-06-12
241+
trans_update:2026-06-13
242242
source_checked:250227
243243
page_state_key:HTML
244244
spec_status:LS
@@ -450,7 +450,6 @@
450450
少しばかりの:few bit s of
451451
この程度に限られる:only so much
452452
委ねられる:up to
453-
真の:true
454453
甘い:lax
455454
~~導入:phase
456455
~~早期:early-part
@@ -577,6 +576,7 @@
577576
肯定的:positive:~
578577
否定的:negative:~
579578
不定:indeterminate:~
579+
不定状態か:indeterminateness:~
580580
中間的:intermediate:~
581581
固定的:fixed:~
582582
型を有する:typed
@@ -1194,6 +1194,7 @@
11941194
既定~値:#concept-input-value-default-range
11951195
~check有無は~dirtyか:#concept-input-checked-dirty-flag
11961196
~check有無は~dirty:#concept-input-checked-dirty
1197+
不定状態か:#concept-input-indeterminate
11971198

11981199
可用:#input-img-available
11991200
選定された座標:#concept-input-type-image-coordinate
@@ -3182,9 +3183,10 @@ <h4 title="The input element">4.10.5. `input^e 要素</h4>
31823183
`値$fe ~SET %~node の`値$fe,
31833184
`値は~dirtyか$fe ~SET %~node の`値は~dirtyか$fe,
31843185
`~check有りか$fe ~SET %~node の`~check有りか$fe,
3185-
`~check有無は~dirtyか$ ~SET %~node の`~check有無は~dirtyか$
3186+
`~check有無は~dirtyか$ ~SET %~node の`~check有無は~dirtyか$,
3187+
`不定状態か$ ~SET %~node の`不定状態か$
31863188
3187-
The cloning steps for input elements given node, copy, and subtree are to propagate the value, dirty value flag, checkedness, and dirty checkedness flag from node to copy.
3189+
The cloning steps for input elements given node, copy, and subtree are to propagate the value, dirty value flag, checkedness, dirty checkedness flag, and indeterminateness from node to copy.
31883190
</div>
31893191

31903192
<div class="algo">
@@ -3253,49 +3255,67 @@ <h4 title="The input element">4.10.5. `input^e 要素</h4>
32533255
Recall that an element's activation behavior runs for both user-initiated activations and for synthetic activations (e.g., via el.click()). User agents might also have behaviors for a given control — not specified here — that are triggered only by true user-initiated activations. A common choice is to show the picker, if applicable, for the control. In contrast, the input activation behavior only shows pickers for the special historical cases of the File Upload and Color states.
32543256
</p>
32553257

3258+
<div>
32563259
<p>
3257-
要素~用の`旧来の作動化~前の挙動$は:
3258-
3259-
The legacy-pre-activation behavior for input elements are these steps:
3260+
`Checkbox$st `状態$にある要素 %要素 用の:
32603261
</p>
32613262
<ul>
3262-
<li class="algo">
3263+
<li>
32633264
<p>
3264-
`Checkbox$st `状態$にある要素 %要素 用には、
3265-
次に従う:
3266-
3267-
If this element's type attribute is in the Checkbox state, then\
3265+
`旧来の作動化~前の挙動$は:
32683266
</p>
32693267
<ol>
32703268
<li>
3271-
( %~check有りか, %不定か ) ~LET %要素 の ( `~check有りか$fe, `indeterminate$m ~IDL属性~値 )
3269+
( %以前の~check有りか, %以前の不定状態か ) ~LET %要素 の ( `~check有りか$fe, `不定状態か$ )
32723270
3273-
</li>
3271+
</li>
32743272
<li>
32753273
%要素 の`~check有りか$fe ~SET ~IS[
3276-
%~check有りか ~EQ ~F
3274+
%要素 の`~check有りか$fe ~EQ ~F
32773275
32783276
32793277
set this element's checkedness to its opposite value (i.e. true if it is false, false if it is true) and\
32803278
</li>
32813279
<li>
3282-
%要素 の `indeterminate$m ~IDL属性 ~SET ~F
3280+
%要素 の`不定状態か$ ~SET ~F
32833281
3284-
set this element's indeterminate IDL attribute to false.
3282+
set this element's indeterminateness to false.
32853283
</li>
32863284
</ol>
3287-
</li>
3288-
<li class="algo">
3285+
</li>
3286+
<li>
32893287
<p>
3290-
`Radio$st `状態$にある要素 %要素 用には、
3291-
次に従う:
3288+
`旧来の作動化~取消~時の挙動$は:
3289+
</p>
3290+
<ol>
3291+
<li>
3292+
( %~check有りか, %不定状態か ) ~LET この手続きの呼出nに~~先行する %要素 用の`旧来の作動化~前の挙動$の呼出nにて得られた ( %以前の~check有りか, %以前の不定状態か )
3293+
3294+
</li>
3295+
<li>
3296+
%要素 の
3297+
⇒#
3298+
`~check有りか$fe ~SET %~check有りか,
3299+
`不定状態か$ ~SET %不定状態か
32923300
3293-
If this element's type attribute is in the Radio Button state, then\
3301+
set the element's checkedness and the element's indeterminateness back to the values they had before the legacy-pre-activation behavior was run.
3302+
</li>
3303+
</ol>
3304+
</li>
3305+
</ul>
3306+
3307+
<p>
3308+
`Radio$st `状態$にある要素 %要素 用の:
3309+
</p>
3310+
<ul>
3311+
<li>
3312+
<p>
3313+
`旧来の作動化~前の挙動$は:
32943314
</p>
32953315
<ol>
32963316
<li>
32973317
<p>
3298-
%~check済み ~LET ~AND↓ を満たす要素は[
3318+
%以前の~check済み ~LET ~AND↓ を満たす要素は[
32993319
在るならば それ/無いならば ε
33003320
]:
33013321
</p>
@@ -3313,70 +3333,29 @@ <h4 title="The input element">4.10.5. `input^e 要素</h4>
33133333
該当するものは,在っても一つに限られる
33143334
(それは %要素 かもしれない)。
33153335
</p>
3316-
3317-
get a reference to the element in this element's radio button group that has its checkedness set to true, if any,\
33183336
</li>
33193337
<li>
33203338
%要素 の`~check有りか$fe ~SET ~T
3321-
3322-
and then set this element's checkedness to true.
3323-
</li>
3324-
</ol>
3325-
</li>
3326-
</ul>
3327-
3328-
<p>
3329-
要素~用の`旧来の作動化~取消~時の挙動$は:
3330-
3331-
The legacy-canceled-activation behavior for input elements are these steps:
3332-
</p>
3333-
<ul>
3334-
<li class="algo">
3335-
<p>
3336-
`Checkbox$st `状態$にある要素 %要素 用には、
3337-
次に従う:
3338-
3339-
If the element's type attribute is in the Checkbox state, then\
3340-
</p>
3341-
<ol>
3342-
<li>
3343-
( %~check有りか, %不定か ) ~LET この手続きの呼出nに~~先行する %要素 用の`旧来の作動化~前の挙動$の呼出nにて得られた ( %~check有りか, %不定か )
3344-
3345-
</li>
3346-
<li>
3347-
%要素 の
3348-
⇒#
3349-
`~check有りか$fe ~SET %~check有りか,
3350-
`indeterminate$m ~IDL属性 ~SET %不定か
3351-
3352-
set the element's checkedness and the element's indeterminate IDL attribute back to the values they had before the legacy-pre-activation behavior was run.
33533339
</li>
33543340
</ol>
33553341
</li>
3356-
<li class="algo">
3342+
<li>
33573343
<p>
3358-
`Radio$st `状態$にある要素 %要素 用には、
3359-
次に従う:
3360-
3361-
If this element's type attribute is in the Radio Button state, then\
3344+
`旧来の作動化~取消~時の挙動$は:
33623345
</p>
33633346
<ol>
33643347
<li>
3365-
%~check済み ~LET この手続きの呼出nに~~先行する %要素 用の`旧来の作動化~前の挙動$の呼出nにて得られた %~check済み
3366-
3367-
if the element to which a reference was obtained in the legacy-pre-activation behavior,\
3348+
%~check済み ~LET この手続きの呼出nに~~先行する %要素 用の`旧来の作動化~前の挙動$の呼出nにて得られた %以前の~check済み
33683349
</li>
33693350
<li>
33703351
<p>
3371-
~IF
3352+
%~check済み の`~check有りか$fe ~SET ~IS
33723353
%~check済み ~NEQ ε
33733354
]~AND[
33743355
%要素 ~IN %要素 が属する`~radio~button~group$
33753356
]~AND[
33763357
%~check済み ~IN %要素 が属する`~radio~button~group$
33773358
3378-
3379-
%~check済み の`~check有りか$fe ~SET ~T
33803359
</p>
33813360

33823361
<p class="trans-note">
@@ -3386,19 +3365,19 @@ <h4 title="The input element">4.10.5. `input^e 要素</h4>
33863365
へ移動された場合でも、
33873366
満たされることになる。
33883367
</p>
3389-
3390-
if any, is still in what is now this element's radio button group, if it still has one, and if so, set that element's checkedness to true;\
3391-
</li>
3392-
<li>
3393-
~ELSE
3394-
3395-
%要素 の`~check有りか$fe ~SET ~F
3396-
3397-
or else, if there was no such element, or that element is no longer in this element's radio button group, or if this element no longer has a radio button group, set this element's checkedness to false.
3398-
</li>
3368+
</li>
33993369
</ol>
34003370
</li>
34013371
</ul>
3372+
3373+
The legacy-pre-activation behavior for input elements are these steps:
3374+
• If this element's type attribute is in the Checkbox state, then set this element's checkedness to its opposite value (i.e. true if it is false, false if it is true) and set this element's indeterminateness to false.
3375+
• If this element's type attribute is in the Radio Button state, then get a reference to the element in this element's radio button group that has its checkedness set to true, if any, and then set this element's checkedness to true.
3376+
3377+
The legacy-canceled-activation behavior for input elements are these steps:
3378+
• If the element's type attribute is in the Checkbox state, then set the element's checkedness and the element's indeterminateness back to the values they had before the legacy-pre-activation behavior was run.
3379+
• If this element's type attribute is in the Radio Button state, then if the element to which a reference was obtained in the legacy-pre-activation behavior, if any, is still in what is now this element's radio button group, if it still has one, and if so, set that element's checkedness to true; or else, if there was no such element, or that element is no longer in this element's radio button group, or if this element no longer has a radio button group, set this element's checkedness to false.
3380+
</div>
34023381

34033382
<hr>
34043383

@@ -3574,30 +3553,40 @@ <h4 title="The input element">4.10.5. `input^e 要素</h4>
35743553
</ul>
35753554

35763555
<p>
3577-
`indeterminate@m
3578-
~IDL属性は:
3556+
各 要素は
3557+
`不定状態か@
3558+
を有する
3559+
— それは、
3560+
真偽値をとり,初期~時は ~F とする。
3561+
それは、
3562+
`Checkbox$st ~control以外には
3563+
— それらの具現化や~accessibility意味論も含めて —
3564+
効果は無い。
3565+
要素の`不定状態か$は、
3566+
要素の`~check有りか$feとは独立である。
35793567
3580-
The indeterminate IDL attribute\
3568+
Each input element has an indeterminateness, a boolean which is initially false. It only has an effect on checkbox controls, including their rendering and accessibility semantics. An input element's indeterminateness is independent of its checkedness.
35813569
</p>
3582-
<ul>
3583-
<li>
3584-
初期~時には ~F に設定するモノトスル。
3570+
3571+
<p>
3572+
`indeterminate@m
3573+
~IDL属性の:
35853574
3586-
must initially be set to false.\
3587-
</li>
3588-
<li>
3589-
取得子は、
3590-
最後に設定された値を返すモノトスル。
3575+
</p>
3576+
<ul>
3577+
<li class="algo">
3578+
取得子~手続きは
3579+
3580+
~RET コレの`不定状態か$
35913581
3592-
On getting, it must return the last value it was set to.\
3582+
The indeterminate getter steps are to return this's indeterminateness.
35933583
</li>
3594-
<li>
3595-
設定子は、
3596-
所与の値に設定するモノトスル。
3597-
これは、
3598-
`Checkbox$st ~controlの外観を変更する以外に効果はない。
3584+
<li class="algo">
3585+
設定子~手続きは
3586+
3587+
コレの`不定状態か$ ~SET 所与の値
35993588
3600-
On setting, it must be set to the new value. It has no effect except for changing the appearance of checkbox controls.
3589+
The indeterminate setter steps are to set this's indeterminateness to the given value.
36013590
</li>
36023591
</ul>
36033592

@@ -6931,20 +6920,10 @@ <h6 title="Checkbox state (type=checkbox)">4.10.5.1.15. `Checkbox^st 状態( `
69316920
~T ならば肯定的~選択/
69326921
~F ならば否定的~選択
69336922
]を表現する。
6934-
要素の `indeterminate$m ~IDL属性 ~EQ ~T の場合、
6935-
~controlの選択は、
6936-
~controlが第三の不定な状態にあるかのように,遮られるベキである。
6937-
6938-
The input element represents a two-state control that represents the element's checkedness state. If the element's checkedness state is true, the control represents a positive selection, and if it is false, a negative selection. If the element's indeterminate IDL attribute is set to true, then the control's selection should be obscured as if the control was in a third, indeterminate, state.
6939-
</p>
6940-
6941-
<p class="note">注記:
6942-
要素の `indeterminate$m ~IDL属性が ~T に設定されてようが,
6943-
~control自体は 決して真の 3 状態をとり得る~controlにはならない。
6944-
この~IDL属性は、
6945-
第三の状態があるかのような外観を与えるのみである。
6923+
要素の`不定状態か$ ~EQ ~T の場合、
6924+
~controlの選択は,遮られるベキである。
69466925
6947-
The control is never a true tri-state control, even if the element's indeterminate IDL attribute is set to true. The indeterminate IDL attribute only gives the appearance of a third state.
6926+
The input element represents a two-state control that represents the element's checkedness state. If the element's checkedness state is true, the control represents a positive selection, and if it is false, a negative selection. If the element's indeterminateness is true, then the control's selection should be obscured.
69486927
</p>
69496928

69506929
<div class="algo">

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h2>日本語訳ページ一覧</h2>
380380
HTML
381381
<a id="spec-list-html" href="#spec-list-html"></a>
382382
<p>
383-
(原文日付:<time>2026-06-10</time>
383+
(原文日付:<time>2026-06-12</time>
384384
<small>
385385
個々のページに示される これより過去の原文日付は、
386386
この日付まで,概ね(有意な)更新は無いことを表す。

0 commit comments

Comments
 (0)