@@ -3465,20 +3465,21 @@ <h3><dfn>Switch To Frame</dfn></h3>
3465
3465
or an < a > Object</ a > that < a > represents a web element</ a > ,
3466
3466
return < a > error</ a > with < a > error code</ a > < a > invalid argument</ a > .
3467
3467
3468
- < li > < p > If the < a > current browsing context</ a > is < a > no longer open</ a > ,
3469
- return < a > error</ a > with < a > error code</ a > < a > no such window</ a > .
3470
-
3471
- < li > < p > < a > Handle any user prompts</ a >
3472
- and return its value if it is an < a > error</ a > .
3473
-
3474
3468
< li > < p > Run the substeps of the first matching condition:
3475
3469
3476
3470
< dl class =switch >
3477
3471
< dt > < var > id</ var > is < a > < code > null</ code > </ a >
3478
3472
< dd >
3479
3473
< ol >
3474
+ < li > < p > If the < a > current top-level browsing context</ a > is < a > no
3475
+ longer open</ a > , return < a > error</ a > with < a > error code</ a > < a > no
3476
+ such window</ a > .
3477
+
3478
+ < li > < p > < a > Handle any user prompts</ a >
3479
+ and return its value if it is an < a > error</ a > .
3480
+
3480
3481
< li > < p > < a > Set the current browsing context</ a > with
3481
- the < a > current top-level browsing context</ a > .
3482
+ the < a > current top-level browsing context</ a > .
3482
3483
</ ol >
3483
3484
3484
3485
< dt > < var > id</ var > is a < code > Number</ code > object
@@ -3487,6 +3488,13 @@ <h3><dfn>Switch To Frame</dfn></h3>
3487
3488
< li > < p > If < var > id</ var > is less than 0 or greater than 2< sup > 16</ sup > – 1,
3488
3489
return < a > error</ a > with < a > error code</ a > < a > invalid argument</ a > .
3489
3490
3491
+ < li > < p > If the < a > current browsing context</ a > is < a > no
3492
+ longer open</ a > , return < a > error</ a > with < a > error code</ a > < a > no
3493
+ such window</ a > .
3494
+
3495
+ < li > < p > < a > Handle any user prompts</ a >
3496
+ and return its value if it is an < a > error</ a > .
3497
+
3490
3498
< li > < p > Let < var > window</ var > be the < a > associated window</ a >
3491
3499
of the < a > current browsing context</ a > ’s < a > active document</ a > .
3492
3500
@@ -3507,6 +3515,13 @@ <h3><dfn>Switch To Frame</dfn></h3>
3507
3515
< dt > < var > id</ var > < a > represents a web element</ a >
3508
3516
< dd >
3509
3517
< ol >
3518
+ < li > < p > If the < a > current browsing context</ a > is < a > no
3519
+ longer open</ a > , return < a > error</ a > with < a > error code</ a > < a > no
3520
+ such window</ a > .
3521
+
3522
+ < li > < p > < a > Handle any user prompts</ a >
3523
+ and return its value if it is an < a > error</ a > .
3524
+
3510
3525
< li > < p > Let < var > element</ var > be the result
3511
3526
of < a > trying</ a > to < a > get a known element</ a >
3512
3527
by < a > web element reference</ a > < var > id</ var > .
@@ -3556,8 +3571,9 @@ <h3><dfn>Switch To Parent Frame</dfn></h3>
3556
3571
< p > The < a > remote end steps</ a > are:
3557
3572
3558
3573
< ol >
3559
- < li > < p > If the < a > current browsing context</ a > is < a > no longer open</ a > ,
3560
- return < a > error</ a > with < a > error code</ a > < a > no such window</ a > .
3574
+ < li > < p > If the < a > current parent browsing context</ a > is < a > no longer
3575
+ open</ a > , return < a > error</ a > with < a > error code</ a > < a > no such
3576
+ window</ a > .
3561
3577
3562
3578
< li > < p > < a > Handle any user prompts</ a > and return its value if it is an < a > error</ a > .
3563
3579
0 commit comments