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 sourced names be an initially empty ordered list of tuples consisting of a string, an element, a source, where the source is either id, name, or past, and, if the source is past, an age.
2512
2515
</li>
2513
2516
<li>
2514
2517
<p>
2515
-
%候補~群 ~LET %F に`所有され$ている要素のうち,
2516
-
~OR↓ を満たすものたちが成す集合:
2518
+
%form に`所有され$ている
2519
+
~EACH( %候補 )
2520
+
に対し【この時点では、順序は有意でない】:
2517
2521
</p>
2518
-
<ul>
2522
+
<ol>
2519
2523
<li>
2520
-
`~listされる$要素であって,次を満たさないもの
2524
+
~IF[
2525
+
%候補 は `img$e 要素でない
2526
+
]~AND[
2527
+
%候補 は `~listされる$要素でない
2528
+
]
2521
2529
⇒
2522
-
`input$e 要素であって,その `type$a 属性の状態 ~EQ `Image$st
2530
+
~CONTINUE
2523
2531
</li>
2524
2532
<li>
2525
-
`img$e 要素である
2533
+
~IF[
2534
+
%候補 は `input$e 要素である
2535
+
]~AND[
2536
+
%候補 の `type$a 属性の状態 ~EQ `Image$st
2537
+
]
2538
+
⇒
2539
+
~CONTINUE
2526
2540
</li>
2527
-
</ul>
2528
-
◎
2529
-
↓</li>
2530
-
<li>
2531
-
<p>
2532
-
%候補~群 を成す
2533
-
~EACH( %候補 )
2534
-
に対し【この時点では、順序は有意でない】:
2535
-
</p>
2536
-
<ol>
2537
2541
<li>
2538
2542
~IF[
2539
2543
%候補 は `id$a 属性 %A を有する
@@ -2545,7 +2549,9 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2545
2549
</li>
2546
2550
<li>
2547
2551
~IF[
2548
-
%候補 は `name$a 属性 %A を有する
2552
+
%候補 は[
2553
+
`name$a / `~nameI$a
2554
+
]属性 %A を有する
2549
2555
]
2550
2556
⇒
2551
2557
%~tuple群 に次の~entryを追加する
@@ -2563,19 +2569,24 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2563
2569
• If candidate has a name attribute, add an entry to sourced names with that name attribute's value as the string, candidate as the element, and name as the source.
2564
2570
</li>
2565
2571
<li>
2566
-
%~map ~LET %F の`過去~名~map$
2567
-
◎
2568
-
↓</li>
2572
+
%齢~index ~LET 0
2573
+
</li>
2569
2574
<li>
2570
-
%~map を成す
2571
-
~EACH( %過去~entry )
2572
-
に対し
2573
-
⇒
2575
+
<p>
2576
+
%form の`過去~名~map$を成す
2577
+
~EACH( %名前 → %要素 )
2578
+
に対し:
2579
+
</p>
2580
+
<ol>
2581
+
<li>
2574
2582
%~tuple群 に次に与える~entryを追加する
2575
2583
⇒
2576
-
( %過去~entry の名前, %過去~entry の要素, `過去^i, [
2577
-
%過去~entry が %~map 内に居続けた時間
2578
-
] )
2584
+
( %名前, %要素, `過去^i, %齢~index )
2585
+
</li>
2586
+
<li>
2587
+
%齢~index ~DECBY 1
2588
+
</li>
2589
+
</ol>
2579
2590
◎
2580
2591
For each entry past entry in the past names map, add an entry to sourced names with the past entry's name as the string, past entry's element as the element, past as the source, and the length of time past entry has been in the past names map as the age.
2581
2592
</li>
@@ -2588,23 +2599,24 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2588
2599
~entryの要素の`~tree順序$で~sortする
2589
2600
</li>
2590
2601
<li>
2591
-
要素が同じ~entryたちは、
2602
+
要素が同じ~entryどうしは、
2592
2603
~sourceが[
2593
2604
`id^i, `name^i, `過去^i
2594
-
]の順になるように~sortする
2605
+
]の順になるよう~sortする
2595
2606
</li>
2596
2607
<li>
2597
2608
要素が同じ, かつ[
2598
2609
~source ~EQ `過去^i
2599
2610
]を満たす~entryどうしは、
2600
-
齢が最長なものが先に来るように~sortする
2611
+
齢の降順に~sortする
2612
+
(~entryの名前が`過去~名~map$に~keyとして早く追加されたものほど先に来るよう)
2601
2613
</li>
2602
2614
</ol>
2603
2615
◎
2604
2616
Sort sourced names by tree order of the element entry of each tuple, sorting entries with the same element by putting entries whose source is id first, then entries whose source is name, and finally entries whose source is past, and sorting entries with the same element and source by their age, oldest first.
2605
2617
</li>
2606
2618
<li>
2607
-
%名前~list ~LET 空~list
2619
+
%名前~群 ~LET 新たな`有順序~集合$
2608
2620
◎
2609
2621
↓</li>
2610
2622
<li>
@@ -2615,16 +2627,11 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2615
2627
</p>
2616
2628
<ol>
2617
2629
<li>
2618
-
%名前 ~LET %~entry の名前
2619
-
</li>
2620
-
<li>
2621
2630
~IF[
2622
-
%名前 ~NEQ 空~文字列
2623
-
]~AND[
2624
-
%名前 ~NIN %名前~list
2631
+
%~entry の名前 ~NEQ 空~文字列
2625
2632
]
2626
2633
⇒
2627
-
%名前~list に %名前 を付加する
2634
+
%名前~群 に %~entry の名前を`付加する$set
2628
2635
</li>
2629
2636
</ol>
2630
2637
◎
@@ -2633,7 +2640,7 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2633
2640
Remove any entries in sourced names that have the same name as an earlier entry in the map.
2634
2641
</li>
2635
2642
<li>
2636
-
~RET %名前~list
2643
+
~RET %名前~群
2637
2644
◎
2638
2645
Return the list of names from sourced names, maintaining their relative order.
2639
2646
</li>
@@ -2642,67 +2649,56 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2642
2649
2643
2650
<divclass="algo">
2644
2651
<p>
2645
-
`form$e 要素 %F 用の`有名~propの値を決定する手続き$は、
2652
+
`form$e 要素 %form 用の`有名~propの値を決定する手続き$は、
2646
2653
所与の
2647
-
( %F が`~supportする~prop名$ %名前 )
2654
+
( %form が`~supportする~prop名$ %名前 )
2648
2655
に対し:
2649
2656
◎
2650
2657
To determine the value of a named property name for a form element, the user agent must run the following steps:
@@ -2714,21 +2710,13 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2714
2710
</li>
2715
2711
</ul>
2716
2712
</li>
2717
-
</ol>
2718
-
2713
+
</ul>
2719
2714
◎
2720
2715
Let candidates be a live RadioNodeList object containing all the listed elements, whose form owner is the form element, that have either an id attribute or a name attribute equal to name, with the exception of input elements whose type attribute is in the Image Button state, in tree order.
2721
2716
◎
2722
2717
If candidates is empty, let candidates be a live RadioNodeList object containing all the img elements, whose form owner is the form element, that have either an id attribute or a name attribute equal to name, in tree order.
2723
2718
</li>
2724
2719
<li>
2725
-
%過去~entry ~LET [
2726
-
%F の`過去~名~map$内に %名前 をある要素に対応付ける~entryが在るならば それ /
2727
-
無いならば ε
2728
-
]
2729
-
◎
2730
-
↓</li>
2731
-
<li>
2732
2720
<p>
2733
2721
%O が表現する要素の個数に応じて:
2734
2722
◎
@@ -2741,10 +2729,10 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2741
2729
<ol>
2742
2730
<li>
2743
2731
~Assert:
2744
-
%過去~entry ~NEQ ε
2732
+
`過去~名~map$[ %名前 ] ~NEQ ε
2745
2733
</li>
2746
2734
<li>
2747
-
~RET %過去~entry の要素
2735
+
~RET `過去~名~map$[ %名前 ]
2748
2736
</li>
2749
2737
</ol>
2750
2738
◎
@@ -2767,18 +2755,7 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
2767
2755
%要素 ~LET %O が表現する唯一の要素
2768
2756
</li>
2769
2757
<li>
2770
-
~IF[
2771
-
%過去~entry ~NEQ ε
2772
-
]
2773
-
⇒
2774
-
%過去~entry の要素 ~SET %要素
2775
-
</li>
2776
-
<li>
2777
-
~ELSE
2778
-
⇒
2779
-
%F の`過去~名~map$に[
2780
-
%名前 を %要素 に対応付ける~entry
2781
-
]を追加する
2758
+
`過去~名~map$[ %名前 ] ~SET %要素
2782
2759
</li>
2783
2760
<li>
2784
2761
~RET %要素
@@ -2795,9 +2772,9 @@ <h4 title="The form element">4.10.3. ``form^e 要素</h4>
0 commit comments