/
244.txt
103 lines (75 loc) · 4.83 KB
/
244.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
* 仕様書
[REFS[
- [5] '''[CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-07-21 01:23:16 +09:00]]) <https://html.spec.whatwg.org/#child-browsing-context>'''
- [2] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-05-06 10:42:35 +09:00]] 版) <https://html.spec.whatwg.org/#fully-active>
]REFS]
* 意味
[16]
[[閲覧文脈]][VAR[親]]と[VAR[閲覧文脈]][VAR[子]]について、
[VAR[子]]の[F[包含子文書]]が [CODE[null]] で'''なく'''、
[VAR[子]]の[F[包含子文書]]の[F[閲覧文脈]]が[VAR[親]]であるとき、
[VAR[子]]は[VAR[親]]の[DFN[[[[RUBY[子][こ]][RUBY[供][ども]][RUBY[閲][えつ]][RUBY[覧][らん]][RUBY[文][ぶん]][RUBY[脈][みゃく]]][子供閲覧文脈]]]]であるといいます。
[SRC[>>5]]
[18]
簡単に言えば、 [CODE[iframe]] [[要素]]等を通して隣接している親子[[フレーム]]の関係のことを表しています。
[17]
[[閲覧文脈]][VAR[親]]と[VAR[閲覧文脈]][VAR[子]]について、
[VAR[子]]が[VAR[親]]の[[子供閲覧文脈]]であり、
[VAR[子]]の[F[包含子][閲覧文脈包含子]]が[[文書木中]]にある場合、
[VAR[子]]は[VAR[親]]の[DFN[[[[RUBY[文][ぶん]][RUBY[書][しょ]][RUBY[木][き]][RUBY[子][こ]][RUBY[供][ども]][RUBY[閲][えつ]][RUBY[覧][らん]][RUBY[文][ぶん]][RUBY[脈][みゃく]]][文書木子供閲覧文脈]]]]であるといいます。
[SRC[>>5]]
[HISTORY[
[15]
[TIME[令和元(2019)年][2019]]の
[CITE[HTML Standard]]
改定までは、
次のような定義でした。
[1] [[閲覧文脈]][VAR[子]]が[[閲覧文脈]][VAR[親]]の[DFN[[RUBYB[子供閲覧文脈]@en[child browsing context]]]]であるとは、
次の条件を''すべて''満たすことをいいます [SRC[>>5]]。
[FIG(list)[
- [6] [[閲覧文脈包含子]][VAR[要素]]が存在して、[VAR[要素]]の[F[入れ子閲覧文脈]]が[VAR[子]]である
- [8] [VAR[要素]]が[[閲覧文脈接続]]状態にある
- [9] [VAR[要素]]の[F[影を含む根]]の[F[閲覧文脈]]が[VAR[親]]である
]FIG]
[12] [VAR[子]]が[VAR[親]]の[DFN[[RUBYB[文書木子供閲覧文脈]@en[document-tree child browsing context]]]]であるとは。
[[子供閲覧文脈]]であることに加え、
[VAR[子]]の[F[閲覧文脈包含子]]が[[文書木中]]にあることをいいます [SRC[>>5]]。
]HISTORY]
[HISTORY[
[13] [[影木]]が導入されるまでは、[[子供閲覧文脈]]とは[[文書木子供閲覧文脈]]のことでした。
]HISTORY]
* 処理
[3] [[子供閲覧文脈]]は[[要素]]を[[通じて入れ子]]にされていますから、
[[親閲覧文脈]]中の特定の[[文書]]に常に紐付いています。
[[完全に活性]]でない[[文書中]]にある[[要素]]の[[子供閲覧文脈]]に対して[[利用者]]が[RUBYB[[[対話]]]@en[interact]]する手段を提供しては[['''なりません''']]。 [SRC[>>2]]
* 関連
[21]
逆方向に見たものを[[親閲覧文脈]]といいます。
* 歴史
[4] [CITE@en[Be more precise about nested and discarded browsing contexts]]
([[domenic]]著, [TIME[2016-07-20 22:58:49 +09:00]])
<https://github.com/whatwg/html/commit/39118df640ad4a3f03f164fb5ffe0a56316297be>
[7] [CITE@en[Define "child browsing context" to pierce shadow trees]]
([[domenic]]著, [TIME[2016-08-03 11:30:10 +09:00]])
<https://github.com/whatwg/html/commit/c9cfb3de0a06c487e9bd91c2afe646725b8cdcdf>
[10] [CITE@en[Editorial: use "nested browsing context" more consistently]]
([[domenic]]著, [TIME[2016-08-03 11:12:22 +09:00]])
<https://github.com/whatwg/html/commit/ed6b84933a9a8c4753451e58724fab49f0680b22>
[11] [CITE@en[Make Window and Document named/indexed properties exclude shadow trees]]
([[domenic]]著, [TIME[2016-08-03 13:42:52 +09:00]])
<https://github.com/whatwg/html/commit/7b567729ac3cc66b074b0df53138c353ec540bb9>
[14] [CITE@en[Give browsing context an explicit container]]
([[annevk]], [TIME[2019-11-22 17:11:31 +09:00]], [TIME[2022-01-13T09:38:18.000Z]])
<https://github.com/whatwg/html/commit/7b4964ad0a953b05738afc66600fa47a4dc8045d>
[19] [CITE@en[Clarify how "child browsing contexts" works · Issue #1336 · whatwg/html]]
([TIME[2022-01-13T10:27:51.000Z]])
<https://github.com/whatwg/html/issues/1336>
[20] [CITE@en[Give browsing contexts an explicit container by annevk · Pull Request #5091 · whatwg/html]]
([TIME[2022-01-13T10:29:47.000Z]])
<https://github.com/whatwg/html/pull/5091>
[22] [CITE@en[Editorial: nested browsing context is a member, not a type]]
([[annevk]], [TIME[2019-11-27 02:46:03 +09:00]], [TIME[2022-01-18T09:12:20.000Z]])
<https://github.com/whatwg/html/commit/6b737bbc428facf34ec3728c0912cf9e172d0ea4>
[23] [CITE@en[Editorial: nested browsing context is a member, not a type by annevk · Pull Request #5095 · whatwg/html]]
([TIME[2022-01-18T10:09:23.000Z]])
<https://github.com/whatwg/html/pull/5095>