| 1 |
apache |
1.3 |
#pattern
|
| 2 |
|
|
<span class=secno>* </span>Web browsers
|
| 3 |
|
|
#ja
|
| 4 |
|
|
<span class=secno>$1 </span>Web ブラウザ
|
| 5 |
|
|
|
| 6 |
|
|
#en
|
| 7 |
|
|
This section describes features that apply most directly to Web
|
| 8 |
|
|
browsers. Having said that, unless specified elsewhere, the requirements
|
| 9 |
|
|
defined in this section <em>do</em> apply to all user agents, whether they
|
| 10 |
|
|
are Web browsers or not.
|
| 11 |
|
|
#ja
|
| 12 |
|
|
この章では、 Web ブラウザに最も直接的に適用される機能について説明します。
|
| 13 |
|
|
とはいえ、この章で定義する要件は、特に断らない限り、
|
| 14 |
|
|
Web ブラウザであるか否かを問わず全ての利用者エージェントに適用<em>されます</em>。
|
| 15 |
|
|
|
| 16 |
|
|
#pattern
|
| 17 |
|
|
<span class=secno>* </span>Browsing contexts
|
| 18 |
|
|
#ja
|
| 19 |
|
|
<span class=secno>$1 </span>閲覧文脈
|
| 20 |
apache |
1.5 |
|
| 21 |
apache |
1.3 |
#en
|
| 22 |
wakaba |
1.39 |
A <dfn id=browsing-context>browsing context</dfn> is a collection of one or
|
| 23 |
|
|
more <code>Document</code> objects, and one or more <a href=#view
|
| 24 |
apache |
1.3 |
title=view>views</a>.
|
| 25 |
|
|
#ja
|
| 26 |
wakaba |
1.39 |
<dfn id=browsing-context>閲覧文脈</dfn>は1つ以上の <code>Document</code>
|
| 27 |
|
|
オブジェクトと1つ以上の<a href=#view
|
| 28 |
apache |
1.3 |
title=view>表示</a>の集成です。
|
| 29 |
|
|
|
| 30 |
|
|
#en
|
| 31 |
|
|
At any one time, one of the <code>Document</code>s in a <a
|
| 32 |
wakaba |
1.39 |
href=#browsing-context>browsing context</a> is the <dfn id=active-document>active
|
| 33 |
apache |
1.3 |
document</dfn>. The collection of <code>Document</code>s is the <a
|
| 34 |
wakaba |
1.39 |
href=#browsing-context>browsing context</a>'s <a href=#session-history>session
|
| 35 |
apache |
1.3 |
history</a>.
|
| 36 |
|
|
#ja
|
| 37 |
|
|
いかなる時点においても、ある <a
|
| 38 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>の中の <code>Document</code>
|
| 39 |
|
|
の1つは<dfn id=active-document>活性文書</dfn>です。
|
| 40 |
apache |
1.3 |
<code>Document</code> の集成は<a
|
| 41 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>の<a href=#session-history>セッション履歴</a>です。
|
| 42 |
apache |
1.3 |
|
| 43 |
|
|
#en
|
| 44 |
|
|
A <dfn id=view>view</dfn> is a user agent interface tied to a particular
|
| 45 |
|
|
media used for the presentation of <code>Document</code> objects in some
|
| 46 |
|
|
media. A view may be interactive. Each view is represented by an
|
| 47 |
|
|
<code>AbstractView</code> object. Each view belongs to a <a
|
| 48 |
wakaba |
1.39 |
href=#browsing-context>browsing context</a>. <a
|
| 49 |
|
|
href=#refsDOM2VIEWS>[DOM2VIEWS]</a>
|
| 50 |
apache |
1.3 |
#ja
|
| 51 |
|
|
<dfn id=view>表示</dfn>は、何らかの媒体における <code>Document</code>
|
| 52 |
|
|
オブジェクトの表現のために用いられる、特定の媒体に紐付けされた利用者エージェント界面です。
|
| 53 |
apache |
1.13 |
提示は対話的であっても[[MAY:構いません]]。各表示は <code>AbstractView</code>
|
| 54 |
apache |
1.3 |
オブジェクトにより現れます。各表示は<a
|
| 55 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>に属します。 <a
|
| 56 |
|
|
href=#refsDOM2VIEWS>[DOM2VIEWS]</a>
|
| 57 |
apache |
1.3 |
|
| 58 |
|
|
#en
|
| 59 |
|
|
The <code title="">document</code> attribute of an
|
| 60 |
wakaba |
1.39 |
<code>AbstractView</code> object representing a <a href=#view>view</a>
|
| 61 |
apache |
1.3 |
gives the <code>Document</code> object of the view's <a
|
| 62 |
wakaba |
1.39 |
href=#browsing-context>browsing context</a>'s <a href=#active-document>active
|
| 63 |
|
|
document</a>. <a href=#refsDOM2VIEWS>[DOM2VIEWS]</a>
|
| 64 |
apache |
1.3 |
#ja
|
| 65 |
wakaba |
1.39 |
<a href=#view>表示</a>を表す
|
| 66 |
apache |
1.3 |
<code>AbstractView</code> オブジェクトの <code title="">document</code>
|
| 67 |
|
|
属性は、その表示の<a
|
| 68 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>の<a href=#active-document>活性文書</a>の
|
| 69 |
apache |
1.3 |
<code>Document</code> オブジェクトを与えます。
|
| 70 |
wakaba |
1.39 |
<a href=#refsDOM2VIEWS>[DOM2VIEWS]</a>
|
| 71 |
apache |
1.3 |
|
| 72 |
|
|
#en
|
| 73 |
|
|
Events that use the <code>UIEvent</code> interface are
|
| 74 |
wakaba |
1.39 |
related to a specific <a href=#view>view</a> (the view in which the
|
| 75 |
apache |
1.3 |
event happened); the <code>AbstractView</code> of that view is given in
|
| 76 |
|
|
the event object's <code title="">view</code> attribute. <a
|
| 77 |
wakaba |
1.39 |
href=#refsDOM3EVENTS>[DOM3EVENTS]</a>
|
| 78 |
apache |
1.3 |
#ja
|
| 79 |
wakaba |
1.39 |
<code>UIEvent</code> 界面を用いる事象は特定の<a href=#view>表示</a>
|
| 80 |
apache |
1.3 |
(事象が発生した表示) に関係付けられています。その表示の
|
| 81 |
|
|
<code>AbstractView</code> は事象オブジェクトの <code title="">view</code>
|
| 82 |
|
|
属性で与えられます。 <a
|
| 83 |
wakaba |
1.39 |
href=#refsDOM3EVENTS>[DOM3EVENTS]</a>
|
| 84 |
apache |
1.3 |
|
| 85 |
|
|
#en
|
| 86 |
|
|
A typical Web browser has one obvious <a
|
| 87 |
wakaba |
1.39 |
href=#view>view</a> per <a href=#browsing-context>browsing context</a>: the
|
| 88 |
apache |
1.3 |
browser's window (screen media). If a page is printed, however, a second
|
| 89 |
|
|
view becomes evident, that of the print media. The two views always share
|
| 90 |
|
|
the same underlying <code>Document</code>, but they have a different
|
| 91 |
|
|
presentation of that document. A speech browser also establishes a
|
| 92 |
|
|
browsing context, one with a view in the speech media.
|
| 93 |
|
|
#ja
|
| 94 |
wakaba |
1.39 |
一般的な Web ブラウザは<a href=#browsing-context>閲覧文脈</a>毎に1つの自明な<a
|
| 95 |
|
|
href=#view>表示</a>、つまりブラウザの窓 (画面媒体) を持っています。
|
| 96 |
apache |
1.3 |
しかし、頁が印刷される場合、2つ目の、印刷媒体の表示が現れます。
|
| 97 |
|
|
2つの表示は常に同じ元の <code>Document</code> を共有していますが、
|
| 98 |
apache |
1.13 |
その文書の異なる提示を有しています。会話ブラウザも、
|
| 99 |
apache |
1.3 |
会話媒体での表示を有する閲覧文脈を確立します。
|
| 100 |
|
|
|
| 101 |
|
|
#en
|
| 102 |
|
|
A <code>Document</code> does not necessarily have a <a
|
| 103 |
wakaba |
1.39 |
href=#browsing-context>browsing context</a> associated with it. In particular,
|
| 104 |
apache |
1.3 |
data mining tools are likely to never instantiate browsing contexts.
|
| 105 |
|
|
#ja
|
| 106 |
|
|
<code>Document</code> は必ずしも<a
|
| 107 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>に関連付けられているとは限りません。
|
| 108 |
apache |
1.3 |
特に、データ・マイニング・ツールは閲覧文脈を決して実現値化しないでしょう。
|
| 109 |
|
|
|
| 110 |
|
|
#en
|
| 111 |
wakaba |
1.39 |
The main <a href=#view>view</a> through which a user primarily
|
| 112 |
apache |
1.40 |
interacts with a user agent is the <dfn id=default-view>default view</dfn>.
|
| 113 |
apache |
1.3 |
#ja
|
| 114 |
apache |
1.40 |
利用者が利用者エージェントと対話するために主に使用する<a href=#view>表示</a>が<dfn id=default-view>既定表示</dfn>です。
|
| 115 |
apache |
1.3 |
|
| 116 |
|
|
#en
|
| 117 |
apache |
1.40 |
The <a href=#default-view>default view</a> of a
|
| 118 |
apache |
1.3 |
<code>Document</code> is given by the <code title="">defaultView</code>
|
| 119 |
|
|
|
| 120 |
|
|
attribute on the <code>Document</code> object's <code>DocumentView</code>
|
| 121 |
wakaba |
1.39 |
interface. <a href=#refsDOM3VIEWS>[DOM3VIEWS]</a>
|
| 122 |
apache |
1.3 |
#ja
|
| 123 |
apache |
1.40 |
<code>Document</code> の <a href=#default-view>既定表示</a>は
|
| 124 |
apache |
1.3 |
<code>Document</code> オブジェクトの <code>DocumentView</code>
|
| 125 |
|
|
界面の <code title="">defaultView</code>
|
| 126 |
wakaba |
1.39 |
属性により与えられます。 <a href=#refsDOM3VIEWS>[DOM3VIEWS]</a>
|
| 127 |
apache |
1.3 |
|
| 128 |
|
|
#en
|
| 129 |
apache |
1.41 |
When a <a href=#browsing-context>browsing context</a> is first created, it must be
|
| 130 |
|
|
created with a single <code>Document</code> in its session history,
|
| 131 |
|
|
whose <span title="the document's address">address</span><!--
|
| 132 |
|
|
XXXDOCURL --> is <code><a href=#about:blank>about:blank</a></code><!-- XXX xref -->, which is
|
| 133 |
|
|
marked as being an <a href=#html-documents title="HTML documents">HTML
|
| 134 |
|
|
document</a>, and whose <a href="#document's-character-encoding" title="document's character
|
| 135 |
|
|
encoding">character encoding</a> is UTF-8. The
|
| 136 |
|
|
<code>Document</code> must have a single child <code><a href=#the-html-element>html</a></code>
|
| 137 |
|
|
node, which itself has a single child <code><a href=#the-body-element>body</a></code> node. If the
|
| 138 |
|
|
<a href=#browsing-context>browsing context</a> is created specifically to be
|
| 139 |
|
|
immediately navigated, then that initial navigation will have
|
| 140 |
|
|
<a href=#replacement-enabled>replacement enabled</a>.
|
| 141 |
apache |
1.3 |
#ja
|
| 142 |
wakaba |
1.39 |
<a href=#browsing-context>閲覧文脈</a>が最初に作成されたとき、
|
| 143 |
apache |
1.3 |
閲覧文脈はセッション履歴に<span title="the document's address">番地</span>が
|
| 144 |
wakaba |
1.39 |
<code><a href=#about:blank>about:blank</a></code><!-- XXX xref --> で、 <a href=#html-documents title="HTML documents">HTML
|
| 145 |
apache |
1.41 |
文書</a>として印付けされており、<a href="#document's-character-encoding" title="document's character
|
| 146 |
|
|
encoding">文字符号化</a>が
|
| 147 |
apache |
1.3 |
UTF-8 である <code>Document</code>
|
| 148 |
|
|
が1つある状態で作成されなければ[[MUST:なりません]]。この
|
| 149 |
wakaba |
1.39 |
<code>Document</code> は <code><a href=#the-html-element>html</a></code>
|
| 150 |
|
|
節点1つだけを子供として持ち、その <code><a href=#the-html-element>html</a></code>
|
| 151 |
|
|
節点は <code><a href=#the-body-element>body</a></code> 節点だけを子供として持たなければ[[MUST:なりません]]。
|
| 152 |
apache |
1.3 |
<a
|
| 153 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>が即座に操縦されるために特に作成された場合、
|
| 154 |
apache |
1.3 |
その最初の操縦は<a
|
| 155 |
wakaba |
1.39 |
href=#replacement-enabled>置換有効</a>で行われます。
|
| 156 |
apache |
1.3 |
|
| 157 |
|
|
#en
|
| 158 |
wakaba |
1.39 |
The <a href=#origin-0>origin</a> of the <code><a
|
| 159 |
|
|
href=#about:blank>about:blank</a></code> <code>Document</code> is set
|
| 160 |
apache |
1.16 |
when the <code>Document</code> is created, in a manner dependent on
|
| 161 |
wakaba |
1.39 |
whether the <a href=#browsing-context>browsing context</a> created is a <a
|
| 162 |
|
|
href=#nested-browsing-context>nested browsing context</a>, as follows:
|
| 163 |
apache |
1.3 |
#ja
|
| 164 |
apache |
1.16 |
<code><a
|
| 165 |
wakaba |
1.39 |
href=#about:blank>about:blank</a></code> <code>Document</code> の<a href=#origin-0>起源</a>は、
|
| 166 |
apache |
1.3 |
その <code>Document</code> が作成されるときに、作成された<a
|
| 167 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>が<a
|
| 168 |
|
|
href=#nested-browsing-context>入れ子閲覧文脈</a>であるかどうかにより、
|
| 169 |
apache |
1.3 |
次のように設定されます:
|
| 170 |
|
|
|
| 171 |
|
|
#en
|
| 172 |
wakaba |
1.39 |
If the new <a href=#browsing-context>browsing context</a> is a <a
|
| 173 |
|
|
href=#nested-browsing-context>nested browsing context</a>
|
| 174 |
apache |
1.3 |
#ja
|
| 175 |
wakaba |
1.39 |
新しい<a href=#browsing-context>閲覧文脈</a>が<a
|
| 176 |
|
|
href=#nested-browsing-context>入れ子閲覧文脈</a>である場合
|
| 177 |
apache |
1.3 |
|
| 178 |
|
|
#en
|
| 179 |
wakaba |
1.39 |
The <a href=#origin-0>origin</a> of the <code><a
|
| 180 |
|
|
href=#about:blank>about:blank</a></code> <code>Document</code> is the <a
|
| 181 |
|
|
href=#origin-0>origin</a> of the <a href=#active-document>active document</a>
|
| 182 |
|
|
of the new <a href=#browsing-context>browsing context</a>'s <a
|
| 183 |
|
|
href=#parent-browsing-context>parent browsing context</a> at the time of its creation.
|
| 184 |
apache |
1.3 |
#ja
|
| 185 |
apache |
1.17 |
<code><a
|
| 186 |
wakaba |
1.39 |
href=#about:blank>about:blank</a></code> <code>Document</code> の<a href=#origin-0>起源</a>は、
|
| 187 |
apache |
1.3 |
新しい<a
|
| 188 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>の作成の時点でのその<a href=#parent-browsing-context>親閲覧文脈</a>の<a
|
| 189 |
|
|
href=#active-document>活性文書</a>の<a href=#origin-0>起源</a>です。
|
| 190 |
apache |
1.3 |
|
| 191 |
|
|
#en
|
| 192 |
wakaba |
1.39 |
If the new <a href=#browsing-context>browsing context</a> is an <a
|
| 193 |
|
|
href=#auxiliary-browsing-context>auxiliary browsing context</a>
|
| 194 |
apache |
1.3 |
#ja
|
| 195 |
wakaba |
1.39 |
新しい<a href=#browsing-context>閲覧文脈</a>が<a
|
| 196 |
|
|
href=#auxiliary-browsing-context>補助閲覧文脈</a>である場合
|
| 197 |
apache |
1.3 |
|
| 198 |
|
|
#en
|
| 199 |
wakaba |
1.39 |
The <a href=#origin-0>origin</a> of the <code><a
|
| 200 |
|
|
href=#about:blank>about:blank</a></code>
|
| 201 |
|
|
<code>Document</code> is the <a href=#origin-0>origin</a> of the <a
|
| 202 |
|
|
href=#active-document>active document</a> of the new <a
|
| 203 |
|
|
href=#browsing-context>browsing context</a>'s <a href=#opener-browsing-context>opener
|
| 204 |
apache |
1.3 |
browsing context</a> at the time of the new browsing context's creation.
|
| 205 |
|
|
#ja
|
| 206 |
apache |
1.17 |
<code><a
|
| 207 |
wakaba |
1.39 |
href=#about:blank>about:blank</a></code> <code>Document</code> の<a href=#origin-0>起点</a>は、
|
| 208 |
|
|
新しい閲覧文脈の作成の時点でのその<a href=#opener-browsing-context>開き元閲覧文脈</a>の<a
|
| 209 |
|
|
href=#active-document>活性文書</a>の<a href=#origin-0>起点</a>です。
|
| 210 |
apache |
1.3 |
|
| 211 |
|
|
#en
|
| 212 |
|
|
Otherwise
|
| 213 |
|
|
#ja
|
| 214 |
|
|
その他の場合
|
| 215 |
|
|
|
| 216 |
|
|
#en
|
| 217 |
wakaba |
1.39 |
The <a href=#origin-0>origin</a> of the <code><a
|
| 218 |
|
|
href=#about:blank>about:blank</a></code>
|
| 219 |
apache |
1.3 |
|
| 220 |
|
|
<code>Document</code> is a globally unique identifier assigned when the
|
| 221 |
wakaba |
1.39 |
new <a href=#browsing-context>browsing context</a> is created.
|
| 222 |
apache |
1.3 |
#ja
|
| 223 |
apache |
1.17 |
<code><a
|
| 224 |
wakaba |
1.39 |
href=#about:blank>about:blank</a></code> <code>Document</code> の<a href=#origin-0>起点</a>は、
|
| 225 |
|
|
その新しい<a href=#browsing-context>閲覧文脈</a>が作成されたときに割り当てられた大域的に固有な識別子です。
|
| 226 |
apache |
1.3 |
|
| 227 |
|
|
#pattern
|
| 228 |
|
|
<span class=secno>* </span>Nested browsing contexts
|
| 229 |
|
|
#ja
|
| 230 |
|
|
<span class=secno>$1 </span>入れ子の閲覧文脈
|
| 231 |
|
|
|
| 232 |
|
|
#en
|
| 233 |
wakaba |
1.39 |
Certain elements (for example, <code><a href=#the-iframe-element>iframe</a></code>
|
| 234 |
|
|
elements) can instantiate further <a href=#browsing-context title="browsing
|
| 235 |
|
|
context">browsing contexts</a>. These are called <dfn id=nested-browsing-context
|
| 236 |
apache |
1.3 |
title="nested browsing context">nested browsing contexts</dfn>. If a
|
| 237 |
apache |
1.18 |
browsing context <var title="">P</var> has an element <var
|
| 238 |
|
|
title="">E</var> in one of its <code>Document</code>s <var
|
| 239 |
|
|
title="">D</var> that nests another browsing context <var title="">C</var>
|
| 240 |
|
|
inside it, then <var title="">P</var> is said to be the <dfn
|
| 241 |
wakaba |
1.39 |
id=parent-browsing-context>parent browsing context</dfn> of <var title="">C</var>, <var
|
| 242 |
|
|
title="">C</var> is said to be a <dfn id=child-browsing-context>child browsing
|
| 243 |
apache |
1.18 |
context</dfn> of <var title="">P</var>, <var title="">C</var> is said to
|
| 244 |
wakaba |
1.39 |
be <dfn id=browsing-context-nested-through title="browsing context nested through">nested
|
| 245 |
apache |
1.18 |
through</dfn> <var title="">D</var>, and <var title="">E</var> is said to
|
| 246 |
wakaba |
1.39 |
be the <dfn id=browsing-context-container>browsing context container</dfn> of <var
|
| 247 |
apache |
1.18 |
title="">C</var>.
|
| 248 |
apache |
1.3 |
#ja
|
| 249 |
wakaba |
1.39 |
要素によっては (例えば <code><a href=#the-iframe-element>iframe</a></code>
|
| 250 |
|
|
要素は)、更に<a href=#browsing-context title="browsing
|
| 251 |
|
|
context">閲覧文脈</a>を実現値化することができます。このようなものを<dfn id=nested-browsing-context
|
| 252 |
apache |
1.3 |
title="nested browsing context">入れ子の閲覧文脈</dfn>と呼びます。
|
| 253 |
|
|
閲覧文脈 <var title="">P</var> がその <code>Document</code> の1つ
|
| 254 |
apache |
1.18 |
<var title="">D</var> 中に要素 <var
|
| 255 |
|
|
title="">E</var> を持っていて、その要素の内側に別の閲覧文脈 <var title="">C</var>
|
| 256 |
apache |
1.3 |
を入れ子にしている場合、 <var title="">P</var> は <var
|
| 257 |
wakaba |
1.39 |
title="">C</var> の<dfn id=parent-browsing-context>親閲覧文脈</dfn>であるといい、
|
| 258 |
apache |
1.3 |
<var title="">C</var> は <var title="">P</var> の<dfn
|
| 259 |
wakaba |
1.39 |
id=child-browsing-context>子閲覧文脈</dfn>であるといい、 <var
|
| 260 |
|
|
title="">C</var> は <var title="">D</var> を<dfn id=browsing-context-nested-through title="browsing context
|
| 261 |
apache |
1.18 |
nested through">通じて入れ子である</dfn>といい、
|
| 262 |
|
|
<var title="">E</var> は <var
|
| 263 |
wakaba |
1.39 |
title="">C</var> の<dfn id=browsing-context-container>閲覧文脈包含子</dfn>であるといいます。
|
| 264 |
apache |
1.3 |
|
| 265 |
|
|
#en
|
| 266 |
|
|
A browsing context <var title="">A</var> is said to be an ancestor of a
|
| 267 |
|
|
browsing context <var title="">B</var> if there exists a browsing context
|
| 268 |
wakaba |
1.39 |
<var title="">A'</var> that is a <a href=#child-browsing-context>child browsing
|
| 269 |
apache |
1.3 |
context</a> of <var title="">A</var> and that is itself an ancestor of
|
| 270 |
|
|
<var title="">B</var>, or if there is a browsing context <var
|
| 271 |
wakaba |
1.39 |
title="">P</var> that is a <a href=#child-browsing-context>child browsing context</a> of
|
| 272 |
|
|
<var title="">A</var> and that is the <a href=#parent-browsing-context>parent browsing
|
| 273 |
apache |
1.3 |
context</a> of <var title="">B</var>.
|
| 274 |
|
|
#ja
|
| 275 |
|
|
閲覧文脈 <var title="">A</var> が閲覧文脈 <var title="">B</var>
|
| 276 |
|
|
の祖先であるというのは、 <var title="">A</var>
|
| 277 |
wakaba |
1.39 |
の<a href=#child-browsing-context>子閲覧文脈</a>である閲覧文脈 <var title="">A'</var>
|
| 278 |
apache |
1.3 |
が存在して、それ自体が <var title="">B</var> の祖先である場合、または閲覧文脈 <var
|
| 279 |
|
|
title="">P</var> があって、それが <var title="">A</var>
|
| 280 |
wakaba |
1.39 |
の<a href=#child-browsing-context>子閲覧文脈</a>であり、かつ <var title="">B</var>
|
| 281 |
|
|
の<a href=#parent-browsing-context>親閲覧文脈</a>である場合です。
|
| 282 |
apache |
1.3 |
|
| 283 |
|
|
#en
|
| 284 |
wakaba |
1.39 |
The browsing context with no <a href=#parent-browsing-context>parent browsing
|
| 285 |
|
|
context</a> is the <dfn id=top-level-browsing-context>top-level browsing context</dfn> of
|
| 286 |
|
|
all the browsing contexts <a href=#nested-browsing-context title="nested browsing
|
| 287 |
apache |
1.3 |
context">nested</a> within it (either directly or indirectly through other
|
| 288 |
|
|
nested browsing contexts).
|
| 289 |
|
|
#ja
|
| 290 |
wakaba |
1.39 |
<a href=#parent-browsing-context>親閲覧文脈</a>のない閲覧文脈は、
|
| 291 |
apache |
1.3 |
それに (直接的に、または他の入れ子閲覧文脈を通じて間接的に)
|
| 292 |
wakaba |
1.39 |
<a href=#nested-browsing-context title="nested browsing
|
| 293 |
|
|
context">入れ子</a>になっている閲覧文脈すべての<dfn id=top-level-browsing-context>最上位閲覧文脈</dfn>です。
|
| 294 |
apache |
1.3 |
|
| 295 |
|
|
#en
|
| 296 |
wakaba |
1.39 |
The transitive closure of <a href=#parent-browsing-context title="parent browsing
|
| 297 |
|
|
context">parent browsing contexts</a> for a <a href=#nested-browsing-context>nested
|
| 298 |
|
|
browsing context</a> gives the list of <dfn id=ancestor-browsing-context title="ancestor
|
| 299 |
apache |
1.3 |
browsing context">ancestor browsing contexts</dfn>.
|
| 300 |
|
|
#ja
|
| 301 |
wakaba |
1.39 |
<a href=#nested-browsing-context>入れ子閲覧文脈</a>の<a href=#parent-browsing-context title="parent browsing
|
| 302 |
|
|
context">親閲覧文脈</a>の推移的閉包が<dfn id=ancestor-browsing-context title="ancestor
|
| 303 |
apache |
1.3 |
browsing context">祖先閲覧文脈</dfn>の並びを与えます。
|
| 304 |
|
|
|
| 305 |
|
|
#en
|
| 306 |
wakaba |
1.39 |
A <code>Document</code> is said to be <dfn id=fully-active>fully active</dfn>
|
| 307 |
|
|
when it is the <a href=#active-document>active document</a> of its <a
|
| 308 |
|
|
href=#browsing-context>browsing context</a>, and either its browsing context is
|
| 309 |
|
|
a <a href=#top-level-browsing-context>top-level browsing context</a>, or the
|
| 310 |
|
|
<code>Document</code> <a href=#browsing-context-nested-through title="browsing context nested
|
| 311 |
|
|
through">through which</a> that browsing context is <a href=#nested-browsing-context
|
| 312 |
apache |
1.3 |
title="nested browsing context">nested</a> is itself <a
|
| 313 |
wakaba |
1.39 |
href=#fully-active>fully active</a>.
|
| 314 |
apache |
1.3 |
#ja
|
| 315 |
wakaba |
1.39 |
<code>Document</code> が<dfn id=fully-active>完全に活性</dfn>であるというのは、
|
| 316 |
apache |
1.3 |
これがその<a
|
| 317 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a>の<a href=#active-document>活性文書</a>であり、かつその閲覧文脈が<a href=#top-level-browsing-context>最上位閲覧文脈</a>であるか、
|
| 318 |
|
|
またはその閲覧文脈がそれを<a href=#browsing-context-nested-through title="browsing context nested
|
| 319 |
|
|
through">通じて</a><a href=#nested-browsing-context
|
| 320 |
apache |
1.3 |
title="nested browsing context">入れ子</a>になっているような
|
| 321 |
|
|
<code>Document</code> もそれ自体<a
|
| 322 |
wakaba |
1.39 |
href=#fully-active>完全に活性</a>であることをいいます。
|
| 323 |
apache |
1.3 |
|
| 324 |
|
|
#en
|
| 325 |
wakaba |
1.39 |
Because they are nested through an element, <a href=#child-browsing-context
|
| 326 |
apache |
1.3 |
title="child browsing context">child browsing contexts</a> are always tied
|
| 327 |
wakaba |
1.39 |
to a specific <code>Document</code> in their <a href=#parent-browsing-context>parent
|
| 328 |
apache |
1.3 |
browsing context</a>. User agents must not allow the user to interact with
|
| 329 |
wakaba |
1.39 |
<a href=#child-browsing-context title="child browsing context">child browsing
|
| 330 |
apache |
1.3 |
contexts</a> of elements that are in <code>Document</code>s that are not
|
| 331 |
wakaba |
1.39 |
themselves <a href=#fully-active>fully active</a>.
|
| 332 |
apache |
1.3 |
#ja
|
| 333 |
wakaba |
1.39 |
<a href=#child-browsing-context
|
| 334 |
apache |
1.3 |
title="child browsing context">子閲覧文脈</a>は、要素を通じて入れ子になっているため、
|
| 335 |
wakaba |
1.39 |
常に<a href=#parent-browsing-context>親閲覧文脈</a>中の特定の <code>Document</code>
|
| 336 |
|
|
と紐付けされています。利用者エージェントは、<a href=#fully-active>完全に活性</a>でない
|
| 337 |
|
|
<code>Document</code> 中の要素の<a href=#child-browsing-context title="child browsing context">子閲覧文脈</a>に対して利用者が対話することを認めては[[MUST NOT:なりません]]。
|
| 338 |
apache |
1.3 |
|
| 339 |
|
|
#en
|
| 340 |
wakaba |
1.39 |
A <a href=#nested-browsing-context>nested browsing context</a> can have a <a
|
| 341 |
|
|
href=#seamless-browsing-context-flag>seamless browsing context flag</a> set, if it is
|
| 342 |
|
|
embedded through an <code><a href=#the-iframe-element>iframe</a></code> element with
|
| 343 |
|
|
a <code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code>
|
| 344 |
apache |
1.3 |
attribute.
|
| 345 |
|
|
#ja
|
| 346 |
wakaba |
1.39 |
<a href=#nested-browsing-context>入れ子閲覧文脈</a>には、これが
|
| 347 |
|
|
<code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code>
|
| 348 |
|
|
属性のある <code><a href=#the-iframe-element>iframe</a></code>
|
| 349 |
apache |
1.3 |
要素を通じて埋め込まれている場合、<a
|
| 350 |
wakaba |
1.39 |
href=#seamless-browsing-context-flag>継ぎ目なし閲覧文脈旗</a>が設定されることがあります。
|
| 351 |
apache |
1.3 |
|
| 352 |
|
|
#pattern
|
| 353 |
|
|
<span class=secno>* </span>Auxiliary browsing contexts
|
| 354 |
|
|
#ja
|
| 355 |
|
|
<span class=secno>$1 </span>補助閲覧文脈
|
| 356 |
|
|
|
| 357 |
apache |
1.4 |
#en
|
| 358 |
|
|
It is possible to create new browsing contexts that are related to a
|
| 359 |
|
|
<span>top level browsing context</span> without being nested through an
|
| 360 |
wakaba |
1.39 |
element. Such browsing contexts are called <dfn id=auxiliary-browsing-context
|
| 361 |
apache |
1.4 |
title="auxiliary browsing context">auxiliary browsing contexts</dfn>.
|
| 362 |
wakaba |
1.39 |
Auxiliary browsing contexts are always <a href=#top-level-browsing-context
|
| 363 |
apache |
1.4 |
title="top-level browsing context">top-level browsing contexts</a>.
|
| 364 |
|
|
#ja
|
| 365 |
|
|
ある<span>最上位閲覧文脈</span>に関係する新しい閲覧文脈を、
|
| 366 |
wakaba |
1.39 |
要素を通じて入れ子にせずに作成することができます。このような閲覧文脈を<dfn id=auxiliary-browsing-context
|
| 367 |
apache |
1.4 |
title="auxiliary browsing context">補助閲覧文脈</dfn>と呼びます。
|
| 368 |
wakaba |
1.39 |
補助閲覧文脈は常に<a href=#top-level-browsing-context
|
| 369 |
apache |
1.4 |
title="top-level browsing context">最上位閲覧文脈</a>です。
|
| 370 |
|
|
|
| 371 |
|
|
#en
|
| 372 |
wakaba |
1.39 |
An <a href=#auxiliary-browsing-context>auxiliary browsing context</a> has an <dfn
|
| 373 |
|
|
id=opener-browsing-context>opener browsing context</dfn>, which is the <a
|
| 374 |
|
|
href=#browsing-context>browsing context</a> from which the <a
|
| 375 |
|
|
href=#auxiliary-browsing-context>auxiliary browsing context</a> was created, and it has
|
| 376 |
|
|
a <dfn id=furthest-ancestor-browsing-context>furthest ancestor browsing context</dfn>, which is the
|
| 377 |
|
|
<a href=#top-level-browsing-context>top-level browsing context</a> of the <a
|
| 378 |
|
|
href=#opener-browsing-context>opener browsing context</a> when the <a
|
| 379 |
|
|
href=#auxiliary-browsing-context>auxiliary browsing context</a> was created.
|
| 380 |
|
|
#ja
|
| 381 |
|
|
<a href=#auxiliary-browsing-context>補助閲覧文脈</a>は、<dfn
|
| 382 |
|
|
id=opener-browsing-context>開闢器閲覧文脈</dfn>を持ちます。これは、<a
|
| 383 |
|
|
href=#auxiliary-browsing-context>補助閲覧文脈</a>を作成した<a
|
| 384 |
|
|
href=#browsing-context>閲覧文脈</a>です。また、<dfn id=furthest-ancestor-browsing-context>最遠祖先閲覧文脈</dfn>も持ちます。
|
| 385 |
apache |
1.4 |
これは、<a
|
| 386 |
wakaba |
1.39 |
href=#auxiliary-browsing-context>補助閲覧文脈</a>が作成された時の<a
|
| 387 |
|
|
href=#opener-browsing-context>開闢器閲覧文脈</a>の<a href=#top-level-browsing-context>最上位閲覧文脈</a>です。
|
| 388 |
apache |
1.4 |
|
| 389 |
|
|
#en
|
| 390 |
wakaba |
1.39 |
The <dfn id=dom-opener title=dom-opener><code>opener</code></dfn> DOM
|
| 391 |
|
|
attribute on the <code><a href=#window>Window</a></code> object must
|
| 392 |
|
|
return the <code><a href=#window>Window</a></code> object of the <a
|
| 393 |
|
|
href=#browsing-context>browsing context</a> from which the current browsing
|
| 394 |
|
|
context was created (its <a href=#opener-browsing-context>opener browsing context</a>),
|
| 395 |
apache |
1.4 |
if there is one and it is still available.
|
| 396 |
|
|
#ja
|
| 397 |
wakaba |
1.39 |
<code><a href=#window>Window</a></code> オブジェクトの
|
| 398 |
|
|
<dfn id=dom-opener title=dom-opener><code>opener</code></dfn> DOM 属性は、
|
| 399 |
apache |
1.4 |
現在の閲覧文脈が作成された<a
|
| 400 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a> (<a href=#opener-browsing-context>開闢器閲覧文脈</a>)
|
| 401 |
|
|
の <code><a href=#window>Window</a></code>
|
| 402 |
apache |
1.4 |
オブジェクトを、これがあって、まだ利用可能であれば、返さなければ[[MUST:なりません]]。
|
| 403 |
|
|
|
| 404 |
apache |
1.6 |
#pattern
|
| 405 |
|
|
<span class=secno>* </span>Secondary browsing contexts
|
| 406 |
|
|
#ja
|
| 407 |
|
|
<span class=secno>$1 </span>二次閲覧文脈
|
| 408 |
|
|
|
| 409 |
|
|
#en
|
| 410 |
wakaba |
1.39 |
User agents may support <dfn id=secondary-browsing-context title="secondary browsing
|
| 411 |
|
|
context">secondary browsing contexts</dfn>, which are <a href=#browsing-context
|
| 412 |
apache |
1.6 |
title="browsing context">browsing contexts</a> that form part of the user
|
| 413 |
|
|
agent's interface, apart from the main content area.
|
| 414 |
|
|
#ja
|
| 415 |
wakaba |
1.39 |
利用者エージェントは、<dfn id=secondary-browsing-context title="secondary browsing
|
| 416 |
apache |
1.6 |
context">二次閲覧文脈</dfn>に対応しても[[MAY:構いません]]。これは、利用者エージェントの界面の一部を形成する、
|
| 417 |
wakaba |
1.39 |
主たる内容領域とは別の<a href=#browsing-context
|
| 418 |
apache |
1.6 |
title="browsing context">閲覧文脈</a>です。
|
| 419 |
|
|
|
| 420 |
apache |
1.7 |
#pattern
|
| 421 |
|
|
<span class=secno>* </span>Security
|
| 422 |
|
|
#ja
|
| 423 |
|
|
<span class=secno>$1 </span>保安性
|
| 424 |
|
|
|
| 425 |
|
|
#en
|
| 426 |
wakaba |
1.39 |
A <a href=#browsing-context>browsing context</a> <var title="">A</var> is
|
| 427 |
|
|
<dfn id=concept-input-step>allowed to navigate</dfn> a second <a
|
| 428 |
|
|
href=#browsing-context>browsing context</a> <var title="">B</var> if one of the
|
| 429 |
apache |
1.7 |
following conditions is true:
|
| 430 |
|
|
#ja
|
| 431 |
wakaba |
1.39 |
<a href=#browsing-context>閲覧文脈</a> <var title="">A</var> が2つ目の<a
|
| 432 |
|
|
href=#browsing-context>閲覧文脈</a> <var title="">B</var>
|
| 433 |
|
|
を<dfn id=concept-input-step>操縦することが認められている</dfn>のは、
|
| 434 |
apache |
1.7 |
次の条件の1つが真である場合です。
|
| 435 |
|
|
|
| 436 |
|
|
#en
|
| 437 |
wakaba |
1.39 |
Either the <a href=#origin-0>origin</a> of the <a
|
| 438 |
|
|
href=#active-document>active document</a> of <var title="">A</var> is the <a
|
| 439 |
|
|
href=#same-origin title="same origin">same</a> as the <a
|
| 440 |
|
|
href=#origin-0>origin</a> of the <a href=#active-document>active document</a>
|
| 441 |
apache |
1.7 |
of <var title="">B</var>, or
|
| 442 |
|
|
#ja
|
| 443 |
|
|
<var title="">A</var> の<a
|
| 444 |
wakaba |
1.39 |
href=#active-document>活性文書</a>の<a href=#origin-0>起源</a>が
|
| 445 |
|
|
<var title="">B</var> の<a href=#active-document>活性文書</a>の<a
|
| 446 |
|
|
href=#origin-0>起源</a>と<a
|
| 447 |
|
|
href=#same-origin title="same origin">同じ</a>である
|
| 448 |
apache |
1.7 |
|
| 449 |
|
|
#en
|
| 450 |
apache |
1.25 |
The browsing context <var title="">A</var> is a <a
|
| 451 |
wakaba |
1.39 |
href=#nested-browsing-context>nested browsing context</a> and its <a
|
| 452 |
|
|
href=#top-level-browsing-context>top-level browsing context</a> is <var
|
| 453 |
apache |
1.25 |
title="">B</var>, or
|
| 454 |
|
|
#ja
|
| 455 |
|
|
閲覧文脈 <var title="">A</var> は<a
|
| 456 |
wakaba |
1.39 |
href=#nested-browsing-context>入れ子閲覧文脈</a>であり、その<a
|
| 457 |
|
|
href=#top-level-browsing-context>最上位閲覧文脈</a>が <var
|
| 458 |
apache |
1.25 |
title="">B</var> である
|
| 459 |
|
|
|
| 460 |
|
|
#en
|
| 461 |
apache |
1.7 |
The browsing context <var title="">B</var> is an <a
|
| 462 |
wakaba |
1.39 |
href=#auxiliary-browsing-context>auxiliary browsing context</a> and <var
|
| 463 |
|
|
title="">A</var> is <a href=#concept-input-step>allowed to navigate</a> <var
|
| 464 |
|
|
title="">B</var>'s <a href=#opener-browsing-context>opener browsing context</a>, or
|
| 465 |
apache |
1.7 |
#ja
|
| 466 |
|
|
閲覧文脈 <var title="">B</var> は<a
|
| 467 |
wakaba |
1.39 |
href=#auxiliary-browsing-context>補助閲覧文脈</a>であり、かつ
|
| 468 |
apache |
1.25 |
<var title="">A</var> が <var
|
| 469 |
wakaba |
1.39 |
title="">B</var> の<a href=#opener-browsing-context>開闢器閲覧文脈</a>を<a href=#concept-input-step>操縦することが認められている</a>
|
| 470 |
apache |
1.7 |
|
| 471 |
|
|
#en
|
| 472 |
|
|
The browsing context <var title="">B</var> is not a <a
|
| 473 |
wakaba |
1.39 |
href=#top-level-browsing-context>top-level browsing context</a>, but there exists an <a
|
| 474 |
|
|
href=#ancestor-browsing-context>ancestor browsing context</a> of <var title="">B</var>
|
| 475 |
|
|
whose <a href=#active-document>active document</a> has the <a
|
| 476 |
|
|
href=#same-origin title="same origin">same</a> <a
|
| 477 |
|
|
href=#origin-0>origin</a> as the <a href=#active-document>active document</a>
|
| 478 |
apache |
1.7 |
of <var title="">A</var> (possibly in fact being <var title="">A</var>
|
| 479 |
|
|
itself).
|
| 480 |
|
|
#ja
|
| 481 |
|
|
閲覧文脈 <var title="">B</var> は<a
|
| 482 |
wakaba |
1.39 |
href=#top-level-browsing-context>最上位閲覧文脈</a>ではないが、 <var title="">B</var>
|
| 483 |
apache |
1.7 |
の<a
|
| 484 |
wakaba |
1.39 |
href=#ancestor-browsing-context>祖先閲覧文脈</a>に<a href=#active-document>活性文書</a>が
|
| 485 |
|
|
<var title="">A</var> の<a href=#active-document>活性文書</a>と<a
|
| 486 |
|
|
href=#same-origin title="same origin">同じ</a><a
|
| 487 |
|
|
href=#origin-0>起源</a>を持つものが存在する
|
| 488 |
apache |
1.7 |
(実のところ <var title="">A</var> 自体であることもある)
|
| 489 |
|
|
|
| 490 |
apache |
1.8 |
#pattern
|
| 491 |
|
|
<span class=secno>* </span>Threads
|
| 492 |
|
|
#ja
|
| 493 |
|
|
<span class=secno>$1 </span>スレッド
|
| 494 |
|
|
|
| 495 |
|
|
#en
|
| 496 |
wakaba |
1.39 |
Each <a href=#browsing-context>browsing context</a> is defined as having a
|
| 497 |
|
|
list of zero or more <dfn id=directly-reachable-browsing-contexts>directly reachable browsing
|
| 498 |
apache |
1.8 |
contexts</dfn>. These are:
|
| 499 |
|
|
#ja
|
| 500 |
wakaba |
1.39 |
各<a href=#browsing-context>閲覧文脈</a>は、零以上の<dfn id=directly-reachable-browsing-contexts>直接到達可能閲覧文脈</dfn>の並びを持つと定義します。
|
| 501 |
apache |
1.8 |
これは、次の閲覧文脈を含みます。
|
| 502 |
|
|
|
| 503 |
|
|
#en
|
| 504 |
wakaba |
1.39 |
All the <a href=#browsing-context>browsing context</a>'s <a href=#child-browsing-context
|
| 505 |
apache |
1.8 |
title="child browsing context">child browsing contexts</a>.
|
| 506 |
|
|
#ja
|
| 507 |
wakaba |
1.39 |
当該<a href=#browsing-context>閲覧文脈</a>の全ての<a href=#child-browsing-context
|
| 508 |
apache |
1.8 |
title="child browsing context">子閲覧文脈</a>。
|
| 509 |
|
|
|
| 510 |
|
|
#en
|
| 511 |
wakaba |
1.39 |
The <a href=#browsing-context>browsing context</a>'s <a
|
| 512 |
|
|
href=#parent-browsing-context>parent browsing context</a>.
|
| 513 |
apache |
1.8 |
#ja
|
| 514 |
wakaba |
1.39 |
当該<a href=#browsing-context>閲覧文脈</a>の<a
|
| 515 |
|
|
href=#parent-browsing-context>親閲覧文脈</a>。
|
| 516 |
apache |
1.8 |
|
| 517 |
|
|
#en
|
| 518 |
wakaba |
1.39 |
All the <a href=#browsing-context title="browsing context">browsing
|
| 519 |
|
|
contexts</a> that have the <a href=#browsing-context>browsing context</a> as
|
| 520 |
|
|
their <a href=#opener-browsing-context>opener browsing context</a>.
|
| 521 |
apache |
1.8 |
#ja
|
| 522 |
wakaba |
1.39 |
当該<a href=#browsing-context>閲覧文脈</a>が<a href=#opener-browsing-context>開闢器閲覧文脈</a>であるすべての<a href=#browsing-context title="browsing context">閲覧文脈</a>。
|
| 523 |
apache |
1.8 |
|
| 524 |
|
|
#en
|
| 525 |
wakaba |
1.39 |
The <a href=#browsing-context>browsing context</a>'s <a
|
| 526 |
|
|
href=#opener-browsing-context>opener browsing context</a>.
|
| 527 |
apache |
1.8 |
#ja
|
| 528 |
wakaba |
1.39 |
当該<a href=#browsing-context>閲覧文脈</a>の<a href=#opener-browsing-context>開闢器閲覧文脈</a>。
|
| 529 |
apache |
1.8 |
|
| 530 |
|
|
#en
|
| 531 |
wakaba |
1.39 |
The transitive closure of all the <a href=#browsing-context title="browsing
|
| 532 |
|
|
context">browsing contexts</a> that are <a href=#directly-reachable-browsing-contexts>directly
|
| 533 |
|
|
reachable browsing contexts</a> forms a <dfn id=unit-of-related-browsing-contexts>unit of related
|
| 534 |
apache |
1.8 |
browsing contexts</dfn>.
|
| 535 |
|
|
#ja
|
| 536 |
wakaba |
1.39 |
<a href=#directly-reachable-browsing-contexts>直接到達可能閲覧文脈</a>である<a href=#browsing-context title="browsing
|
| 537 |
|
|
context">閲覧文脈</a>すべての推移的閉包は、<dfn id=unit-of-related-browsing-contexts>関連閲覧文脈の単位</dfn>を形成します。
|
| 538 |
apache |
1.8 |
|
| 539 |
|
|
#en
|
| 540 |
wakaba |
1.39 |
All the executable code in a <a href=#unit-of-related-browsing-contexts>unit of related browsing
|
| 541 |
apache |
1.8 |
contexts</a> must execute on a single conceptual thread. The dispatch of
|
| 542 |
|
|
events fired by the user agent (e.g. in response to user actions or
|
| 543 |
|
|
network activity) and the execution of any scripts associated with timers
|
| 544 |
wakaba |
1.39 |
must be serialized so that for each <a href=#unit-of-related-browsing-contexts>unit of related
|
| 545 |
apache |
1.8 |
browsing contexts</a> there is only one script being executed at a time.
|
| 546 |
|
|
#ja
|
| 547 |
wakaba |
1.39 |
<a href=#unit-of-related-browsing-contexts>関連閲覧文脈の単位</a>内のすべての実行可能符号は、
|
| 548 |
apache |
1.8 |
単一の概念的なスレッドで実行されなければ[[MUST:なりません]]。利用者エージェントが
|
| 549 |
|
|
(例えば利用者の作用やネットワーク活動への反応として) 発火する事象の発送やタイマーと関連付けられたスクリプトの実行は、
|
| 550 |
wakaba |
1.39 |
<a href=#unit-of-related-browsing-contexts>関連閲覧文脈の単位</a>毎に同時に1つのスクリプトだけが実行されるように直列化されなければ[[MUST:なりません]]。
|
| 551 |
apache |
1.8 |
|
| 552 |
apache |
1.9 |
#pattern
|
| 553 |
|
|
<span class=secno>* </span>Browsing context names
|
| 554 |
|
|
#ja
|
| 555 |
|
|
<span class=secno>$1 </span>閲覧文脈名
|
| 556 |
|
|
|
| 557 |
|
|
#en
|
| 558 |
wakaba |
1.39 |
Browsing contexts can have a <dfn id=browsing-context-container>browsing context
|
| 559 |
apache |
1.9 |
name</dfn>. By default, a browsing context has no name (its name is not
|
| 560 |
|
|
set).
|
| 561 |
|
|
#ja
|
| 562 |
wakaba |
1.39 |
閲覧文脈は、<dfn id=browsing-context-container>閲覧文脈名</dfn>を持つことができます。
|
| 563 |
apache |
1.9 |
既定では、閲覧文脈は名前を持ちません (名前は設定されません)。
|
| 564 |
|
|
|
| 565 |
apache |
1.8 |
|
| 566 |
|
|
|
| 567 |
|
|
|
| 568 |
|
|
|
| 569 |
|
|
|
| 570 |
apache |
1.7 |
|
| 571 |
|
|
|
| 572 |
apache |
1.6 |
|
| 573 |
|
|
|
| 574 |
apache |
1.4 |
|
| 575 |
apache |
1.3 |
|
| 576 |
|
|
|
| 577 |
|
|
|
| 578 |
|
|
|
| 579 |
|
|
|
| 580 |
|
|
#en
|
| 581 |
wakaba |
1.39 |
When an HTML document is to be loaded in a <a href=#browsing-context>browsing
|
| 582 |
apache |
1.3 |
context</a>, the user agent must create a <code>Document</code> object,
|
| 583 |
wakaba |
1.39 |
mark it as being an <a href=#html-documents title="HTML documents">HTML
|
| 584 |
|
|
document</a>, create an <a href=#html-parser>HTML parser</a>, associate it
|
| 585 |
apache |
1.3 |
with the document, and begin to use the bytes provided for the document as
|
| 586 |
wakaba |
1.39 |
the <a href=#the-input-element>input stream</a> for that parser.
|
| 587 |
apache |
1.3 |
#ja
|
| 588 |
wakaba |
1.39 |
HTML 文書が<a href=#browsing-context>閲覧文脈</a>に読み込まれるとき、
|
| 589 |
apache |
1.3 |
利用者エージェントは、 <code>Document</code> オブジェクトを作成し、
|
| 590 |
wakaba |
1.39 |
それに <a href=#html-documents title="HTML documents">HTML
|
| 591 |
|
|
文書</a>であるとの印を付け、<a href=#html-parser>HTML 構文解析器</a>を作成し、
|
| 592 |
apache |
1.3 |
これをその文書と関連付け、
|
| 593 |
wakaba |
1.39 |
その文書に対して提供されたバイト列を構文解析器の<a href=#the-input-element>入力ストリーム</a>として使い始めなければ[[MUST:なりません]]。
|
| 594 |
apache |
1.3 |
|
| 595 |
|
|
#en
|
| 596 |
wakaba |
1.39 |
The <a href=#the-input-element>input stream</a> converts bytes into
|
| 597 |
apache |
1.3 |
characters for use in the <span>tokeniser</span><!-- XXX xref
|
| 598 |
|
|
-->. This
|
| 599 |
|
|
process relies, in part, on character encoding information found in the
|
| 600 |
wakaba |
1.39 |
real <a href=#content-type-0 title=Content-Type>Content-Type metadata</a>
|
| 601 |
apache |
1.3 |
|
| 602 |
|
|
of the resource; the "sniffed type" is not used for this purpose.
|
| 603 |
|
|
#ja
|
| 604 |
wakaba |
1.39 |
<a href=#the-input-element>入力ストリーム</a>はバイト列を文字列に変換し、
|
| 605 |
apache |
1.3 |
字句化器で使用できるようにします。この過程は、部分的に、
|
| 606 |
wakaba |
1.39 |
資源の実際の <a href=#content-type-0 title=Content-Type>Content-Type
|
| 607 |
apache |
1.3 |
メタデータ</a>に現れる文字符号化情報に依存しています。
|
| 608 |
|
|
ここでは「探知型」は使用しません。
|
| 609 |
|
|
|
| 610 |
|
|
#en
|
| 611 |
|
|
When no more bytes are available, an EOF character is implied, which
|
| 612 |
|
|
eventually causes a <code title=event-load><a
|
| 613 |
wakaba |
1.39 |
href=#event-load>load</a></code> event to be fired.
|
| 614 |
apache |
1.3 |
#ja
|
| 615 |
|
|
それ以上のバイトが存在しなくなると、暗黙の EOF 文字の存在が仮定され、
|
| 616 |
|
|
それによって <code title=event-load><a
|
| 617 |
wakaba |
1.39 |
href=#event-load>load</a></code> 事象が発火されることとなります。
|
| 618 |
apache |
1.3 |
|
| 619 |
|
|
#en
|
| 620 |
|
|
After creating the <code>Document</code> object, but potentially before
|
| 621 |
|
|
the page has finished parsing, the user agent must <a
|
| 622 |
wakaba |
1.39 |
href=#update-the-session-history-with-the-new-page>update the session history with the new page</a>.
|
| 623 |
apache |
1.3 |
#ja
|
| 624 |
|
|
<code>Document</code> オブジェクトが作成された後に、
|
| 625 |
|
|
頁が構文解析を完了される前でも構いませんが、
|
| 626 |
|
|
利用者エージェントは、<a
|
| 627 |
wakaba |
1.39 |
href=#update-the-session-history-with-the-new-page>新しい頁によりセッション履歴を更新</a>しなければ[[MUST:なりません]]。
|
| 628 |
apache |
1.3 |
|
| 629 |
|
|
#en
|
| 630 |
wakaba |
1.39 |
<a href=#concept-appcache-init-with-attribute
|
| 631 |
apache |
1.3 |
title=concept-appcache-init-with-attribute>Application cache selection</a>
|
| 632 |
|
|
|
| 633 |
wakaba |
1.39 |
happens <a href=#parser-appcache>in the HTML parser</a>.
|
| 634 |
apache |
1.3 |
#ja
|
| 635 |
wakaba |
1.39 |
<a href=#concept-appcache-init-with-attribute
|
| 636 |
apache |
1.3 |
title=concept-appcache-init-with-attribute>アプリケーション・キャッシュの選択</a>が
|
| 637 |
wakaba |
1.39 |
<a href=#parser-appcache>HTML 構文解析器の中</a>で起こります。
|
| 638 |
apache |
1.3 |
|
| 639 |
|
|
#en
|
| 640 |
|
|
When faced with displaying an XML file inline, user agents must first
|
| 641 |
|
|
create a <code>Document</code> object, following the requirements of the
|
| 642 |
|
|
XML and Namespaces in XML recommendations, RFC 3023, DOM3 Core, and other
|
| 643 |
wakaba |
1.39 |
relevant specifications. <a href=#refsXML>[XML]</a> <a
|
| 644 |
|
|
href=#refsXMLNS>[XMLNS]</a> <a href=#refsRFC3023>[RFC3023]</a> <a
|
| 645 |
|
|
href=#refsDOM3CORE>[DOM3CORE]</a>
|
| 646 |
apache |
1.3 |
#ja
|
| 647 |
|
|
利用者エージェントは、 XML ファイルを行内で表示することになったとき、
|
| 648 |
|
|
まず <code>Document</code> オブジェクトを XML と XML 名前空間の勧告、
|
| 649 |
apache |
1.11 |
RFC 3023、DOM3 中核、その他関連する仕様書に従って作成しなければ[[MUST:なりません]]。
|
| 650 |
wakaba |
1.39 |
<a href=#refsXML>[XML]</a> <a
|
| 651 |
|
|
href=#refsXMLNS>[XMLNS]</a> <a href=#refsRFC3023>[RFC3023]</a> <a
|
| 652 |
|
|
href=#refsDOM3CORE>[DOM3CORE]</a>
|
| 653 |
apache |
1.3 |
|
| 654 |
|
|
#en
|
| 655 |
|
|
The actual HTTP headers and other metadata, not the headers as mutated
|
| 656 |
|
|
or implied by the algorithms given in this specification, are the ones
|
| 657 |
|
|
that must be used when determining the character encoding according to the
|
| 658 |
|
|
rules given in the above specifications. Once the character encoding is
|
| 659 |
wakaba |
1.39 |
established, the <a href=#character-encoding-requirements>document's character encoding</a>
|
| 660 |
apache |
1.3 |
must be set to that character encoding.
|
| 661 |
|
|
#ja
|
| 662 |
|
|
実際の HTTP 頭部その他のメタデータが、
|
| 663 |
|
|
前述の仕様書群で示された規則に従い文字符号化を決定する際には使用しなければ[[MUST:ならない]]ものです
|
| 664 |
|
|
(この仕様書に示した算法により変異した、あるいは暗示される頭部ではありません)。
|
| 665 |
|
|
|
| 666 |
|
|
#en
|
| 667 |
|
|
If the root element, as parsed according to the XML specifications cited
|
| 668 |
wakaba |
1.39 |
above, is found to be an <code><a href=#the-html-element>html</a></code> element
|
| 669 |
apache |
1.3 |
with an attribute <code title=attr-html-manifest><a
|
| 670 |
wakaba |
1.39 |
href=#attr-html-manifest>manifest</a></code>, then, as soon as the element is
|
| 671 |
|
|
inserted into the DOM, the user agent must run the <a href=#concept-appcache-init-with-attribute
|
| 672 |
apache |
1.3 |
title=concept-appcache-init-with-attribute>application cache selection
|
| 673 |
|
|
algorithm</a> with the value of that attribute, resolved relative to the
|
| 674 |
wakaba |
1.39 |
<a href=#dom-form-elements>element's base URI</a>, as the manifest URI.
|
| 675 |
apache |
1.3 |
Otherwise, as soon as the root element is inserted into the DOM, the user
|
| 676 |
wakaba |
1.39 |
agent must run the <a href=#concept-appcache-init-no-attribute
|
| 677 |
apache |
1.3 |
title=concept-appcache-init-no-attribute>application cache selection
|
| 678 |
|
|
algorithm</a> with no manifest.
|
| 679 |
|
|
#ja
|
| 680 |
wakaba |
1.39 |
利用者エージェントは、前述の XML 仕様書群に従い構文解析された根要素が <code><a href=#the-html-element>html</a></code>
|
| 681 |
apache |
1.3 |
要素であって <code title=attr-html-manifest><a
|
| 682 |
wakaba |
1.39 |
href=#attr-html-manifest>manifest</a></code> 属性を持つものであることが判明した場合、
|
| 683 |
|
|
その要素が DOM に挿入されると同時に、<a href=#concept-appcache-init-with-attribute
|
| 684 |
|
|
title=concept-appcache-init-with-attribute>アプリケーション・キャッシュ選択算法</a>を、その属性の値を<a href=#dom-form-elements>要素の基底
|
| 685 |
apache |
1.3 |
URI</a> に対して解決したものをマニフェスト URI
|
| 686 |
|
|
として実行しなければ[[MUST:なりません]]。そうでない場合、
|
| 687 |
|
|
利用者エージェントは、根要素が DOM に挿入されると同時に、
|
| 688 |
wakaba |
1.39 |
<a href=#concept-appcache-init-no-attribute
|
| 689 |
apache |
1.3 |
title=concept-appcache-init-no-attribute>アプリケーション・キャッシュ選択算法</a>をマニフェストなしで実行しなければ[[MUST:なりません]]。
|
| 690 |
|
|
|
| 691 |
|
|
#en
|
| 692 |
|
|
Because the processing of the <code
|
| 693 |
wakaba |
1.39 |
title=attr-html-manifest><a href=#attr-html-manifest>manifest</a></code> attribute
|
| 694 |
apache |
1.3 |
happens only once the root element is parsed, any URIs referenced by
|
| 695 |
|
|
processing instructions before the root element (such as <code
|
| 696 |
|
|
title=""><?xml-styleesheet?></code> and <code
|
| 697 |
|
|
title=""><?xbl?></code> PIs) will be fetched from the network and
|
| 698 |
|
|
cannot be cached.
|
| 699 |
|
|
#ja
|
| 700 |
|
|
<code
|
| 701 |
wakaba |
1.39 |
title=attr-html-manifest><a href=#attr-html-manifest>manifest</a></code>
|
| 702 |
apache |
1.3 |
属性の処理は根要素が構文解析されてはじめて行われますから、
|
| 703 |
apache |
1.10 |
根要素の前に現れる処理指令 (例えば <code
|
| 704 |
|
|
title=""><?xml-styleesheet?></code> や <code
|
| 705 |
|
|
title=""><?xbl?></code> 処理指令) が参照する URI
|
| 706 |
|
|
はネットワークから取って来られることになり、キャッシュできません。
|
| 707 |
apache |
1.3 |
|
| 708 |
|
|
#en
|
| 709 |
|
|
User agents may examine the namespace of the root <code>Element</code>
|
| 710 |
|
|
node of this <code>Document</code> object to perform namespace-based
|
| 711 |
|
|
dispatch to alternative processing tools, e.g. determining that the
|
| 712 |
|
|
content is actually a syndication feed and passing it to a feed handler.
|
| 713 |
|
|
If such processing is to take place, abort the steps in this section, and
|
| 714 |
wakaba |
1.39 |
jump to <a href=#navigate-non-Document>step 10</a> in the <a
|
| 715 |
|
|
href=#navigate>navigate</a> steps above.
|
| 716 |
apache |
1.3 |
#ja
|
| 717 |
|
|
利用者エージェントは、この <code>Document</code>
|
| 718 |
|
|
オブジェクトの根 <code>Element</code>
|
| 719 |
|
|
ノードを検査し、名前空間を基にした代替処理ツールを呼び出しても[[MAY:構いません]]
|
| 720 |
|
|
(例えば、内容が実際には配給フィードであると判定し、
|
| 721 |
|
|
これをフィード取扱器に渡しても構いません)。このような処理が行われる場合は、
|
| 722 |
|
|
この節の段階を中断し、前述の<a
|
| 723 |
wakaba |
1.39 |
href=#navigate>操縦</a>段階の<a href=#navigate-non-Document>段階
|
| 724 |
apache |
1.3 |
10</a> に飛びます。
|
| 725 |
|
|
|
| 726 |
|
|
#en
|
| 727 |
|
|
Otherwise, then, with the newly created <code>Document</code>, the user
|
| 728 |
wakaba |
1.39 |
agents must <a href=#update-the-session-history-with-the-new-page>update the session history with the new
|
| 729 |
apache |
1.3 |
page</a>. User agents may do this before the complete document has been
|
| 730 |
|
|
parsed (thus achieving <i>incremental rendering</i>).
|
| 731 |
|
|
#ja
|
| 732 |
|
|
そうでない場合には、利用者エージェントは、新たに作成された
|
| 733 |
|
|
<code>Document</code> によって、
|
| 734 |
wakaba |
1.39 |
<a href=#update-the-session-history-with-the-new-page>新しい頁によりセッション履歴を更新</a>しなければ[[MUST:なりません]]。
|
| 735 |
apache |
1.3 |
利用者エージェントは、これを文書全体が構文解析される前に行って
|
| 736 |
wakaba |
1.12 |
(<i>逐次的レンダリング</i>を実現して) も[[MAY:構いません]]。
|
| 737 |
apache |
1.3 |
|
| 738 |
|
|
#en
|
| 739 |
|
|
Error messages from the parse process (e.g. namespace well-formedness
|
| 740 |
|
|
errors) may be reported inline by mutating the <code>Document</code>.
|
| 741 |
|
|
#ja
|
| 742 |
|
|
構文解析過程の誤りメッセージ (例えば名前空間整形式性誤り)
|
| 743 |
apache |
1.37 |
は <code>Document</code> を変異させることによって行内で報告して[[MAY:構いません]]。
|
| 744 |
|
|
|
| 745 |
|
|
#en
|
| 746 |
wakaba |
1.39 |
Browsing contexts can have a <dfn id=browsing-context-name>browsing context
|
| 747 |
apache |
1.26 |
name</dfn>. By default, a browsing context has no name (its name is not
|
| 748 |
apache |
1.37 |
set).
|
| 749 |
|
|
#ja
|
| 750 |
wakaba |
1.39 |
閲覧文脈は<dfn id=browsing-context-name>閲覧文脈名</dfn>を持つことができます。
|
| 751 |
apache |
1.37 |
既定では閲覧文脈は名前を持ちません (名前は設定されません)。
|
| 752 |
|
|
|
| 753 |
|
|
#en
|
| 754 |
wakaba |
1.39 |
A <dfn id=valid-month-string>valid browsing context name</dfn> is any string with at
|
| 755 |
apache |
1.27 |
least one character that does not start with a U+005F LOW LINE character.
|
| 756 |
apache |
1.37 |
(Names starting with an underscore are reserved for special keywords.)
|
| 757 |
|
|
#ja
|
| 758 |
wakaba |
1.39 |
<dfn id=valid-month-string>妥当な閲覧文脈名</dfn>は、最低1文字を含み、
|
| 759 |
apache |
1.27 |
U+005F LOW LINE からはじまらない文字列です。
|
| 760 |
apache |
1.37 |
(下線からはじまる文字列は特別なキーワードに予約されています。)
|
| 761 |
|
|
|
| 762 |
|
|
#en
|
| 763 |
wakaba |
1.39 |
A <dfn id=valid-week-string>valid browsing context name or keyword</dfn> is any
|
| 764 |
|
|
string that is either a <a href=#valid-month-string>valid browsing context name</a>
|
| 765 |
|
|
or that is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for one
|
| 766 |
apache |
1.28 |
of: <code title="">_blank</code>, <code title="">_self</code>, <code
|
| 767 |
apache |
1.37 |
title="">_parent</code>, or <code title="">_top</code>.
|
| 768 |
|
|
#ja
|
| 769 |
wakaba |
1.39 |
<dfn id=valid-week-string>妥当な閲覧文脈の名前かキーワード</dfn>は、
|
| 770 |
|
|
<a href=#valid-month-string>妥当な閲覧文脈名</a>であるか、または
|
| 771 |
|
|
<a href=#ascii-case-insensitive>ASCII 大文字・小文字不区別</a>で
|
| 772 |
apache |
1.28 |
<code title="">_blank</code>、<code title="">_self</code>、<code
|
| 773 |
|
|
title="">_parent</code>、<code title="">_top</code>
|
| 774 |
apache |
1.37 |
のいずれかと一致するかのどちらかである文字列です。
|
| 775 |
|
|
|
| 776 |
|
|
#en
|
| 777 |
wakaba |
1.39 |
<dfn id=the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>The rules for choosing a browsing context given a
|
| 778 |
apache |
1.29 |
browsing context name</dfn> are as follows. The rules assume that they are
|
| 779 |
wakaba |
1.39 |
being applied in the context of a <a href=#browsing-context>browsing
|
| 780 |
apache |
1.37 |
context</a>.
|
| 781 |
|
|
#ja
|
| 782 |
wakaba |
1.39 |
<dfn id=the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>閲覧文脈名から閲覧文脈を選ぶ規則</dfn>は次の通りです。
|
| 783 |
|
|
この規則はある<a href=#browsing-context>閲覧文脈</a>の文脈において適用されることを想定しています。
|
| 784 |
apache |
1.37 |
|
| 785 |
|
|
#en
|
| 786 |
apache |
1.30 |
If the given browsing context name is the empty string or <code
|
| 787 |
|
|
title="">_self</code>, then the chosen browsing context must be the
|
| 788 |
apache |
1.37 |
current one.
|
| 789 |
|
|
#ja
|
| 790 |
apache |
1.30 |
与えられた閲覧文脈名が空文字列であるか、<code
|
| 791 |
apache |
1.37 |
title="">_self</code> である場合、選ばれる閲覧文脈は現在のものでなければ[[MUST:なりません]]。
|
| 792 |
|
|
|
| 793 |
|
|
#en
|
| 794 |
apache |
1.31 |
If the given browsing context name is <code title="">_parent</code>,
|
| 795 |
|
|
then the chosen browsing context must be the <a
|
| 796 |
wakaba |
1.39 |
href=#parent-browsing-context><em>parent</em> browsing context</a> of the current one,
|
| 797 |
apache |
1.31 |
unless there isn't one, in which case the chosen browsing context must
|
| 798 |
apache |
1.37 |
be the current browsing context.
|
| 799 |
|
|
#ja
|
| 800 |
apache |
1.31 |
与えられた閲覧文脈名が <code title="">_parent</code> である場合、
|
| 801 |
|
|
選ばれる閲覧文脈は現在の閲覧文脈の<a
|
| 802 |
wakaba |
1.39 |
href=#parent-browsing-context><em>親</em>閲覧文脈</a>があればそれでなければ[[MUST:ならず]]、
|
| 803 |
apache |
1.37 |
なければ現在の閲覧文脈でなければ[[MUST:なりません]]。
|
| 804 |
|
|
|
| 805 |
|
|
#en
|
| 806 |
apache |
1.32 |
If the given browsing context name is <code title="">_top</code>, then
|
| 807 |
|
|
the chosen browsing context must be the most <a
|
| 808 |
wakaba |
1.39 |
href=#top-level-browsing-context>top-level browsing context</a> of the current one.
|
| 809 |
apache |
1.37 |
#ja
|
| 810 |
apache |
1.32 |
与えられた閲覧文脈名が <code title="">_top</code> である場合、
|
| 811 |
|
|
選ばれる閲覧文脈は現在の閲覧文脈の一番<a
|
| 812 |
wakaba |
1.39 |
href=#top-level-browsing-context>最上位閲覧文脈</a>でなければ[[MUST:なりません]]。
|
| 813 |
apache |
1.37 |
|
| 814 |
|
|
#en
|
| 815 |
apache |
1.33 |
If the given browsing context name is not <code title="">_blank</code>
|
| 816 |
wakaba |
1.39 |
and there exists a browsing context whose <a href=#browsing-context-name
|
| 817 |
apache |
1.33 |
title="browsing context name">name</a> is the same as the given browsing
|
| 818 |
|
|
context name, and the current browsing context is <a
|
| 819 |
wakaba |
1.39 |
href=#concept-input-step>allowed to navigate</a> that browsing context, and the
|
| 820 |
apache |
1.33 |
user agent determines that the two browsing contexts are related enough
|
| 821 |
|
|
that it is ok if they reach each other, then that browsing context must
|
| 822 |
|
|
be the chosen one. If there are multiple matching browsing contexts, the
|
| 823 |
|
|
user agent should select one in some arbitrary consistent manner, such
|
| 824 |
|
|
as the most recently opened, most recently focused, or more closely
|
| 825 |
apache |
1.37 |
related.
|
| 826 |
|
|
#ja
|
| 827 |
apache |
1.33 |
与えられた閲覧文脈名が <code title="">_blank</code>
|
| 828 |
wakaba |
1.39 |
ではなく、<a href=#browsing-context-name
|
| 829 |
apache |
1.33 |
title="browsing context name">名前</a>が与えられた閲覧文脈名と同じである閲覧文脈が存在する場合で、
|
| 830 |
|
|
現在の閲覧文脈がその閲覧文脈を<a
|
| 831 |
wakaba |
1.39 |
href=#concept-input-step>操縦することが認められており</a>、
|
| 832 |
apache |
1.33 |
利用者エージェントが2つの閲覧文脈は十分関係しているので互いに到達してもよいと判断した場合、
|
| 833 |
|
|
選ばれる閲覧文脈はその閲覧文脈でなければ[[MUST:なりません]]。
|
| 834 |
|
|
一致する閲覧文脈が複数ある場合、利用者エージェントは何らかの一貫した方法、
|
| 835 |
|
|
例えば最も新しく開かれたもの、最も新しく焦点を当てられたもの、
|
| 836 |
apache |
1.37 |
最もよく関係しているものといった方法で1つを選ぶ[[SHOULD:べきです]]。
|
| 837 |
|
|
|
| 838 |
|
|
#en
|
| 839 |
apache |
1.34 |
Otherwise, a new browsing context is being requested, and what happens
|
| 840 |
apache |
1.37 |
depends on the user agent's configuration and/or abilities:
|
| 841 |
|
|
#ja
|
| 842 |
apache |
1.38 |
それ以外の場合、新しい閲覧文脈が要求されており、
|
| 843 |
apache |
1.37 |
利用者エージェントの設定や能力、あるいはその両方によって動作が決まります。
|
| 844 |
|
|
|
| 845 |
|
|
#en
|
| 846 |
apache |
1.35 |
If the current browsing context has the <a
|
| 847 |
wakaba |
1.39 |
href=#sandboxed-navigation-browsing-context-flag>sandboxed navigation browsing context flag</a> set.
|
| 848 |
apache |
1.37 |
#ja
|
| 849 |
apache |
1.35 |
現在の閲覧文脈が<a
|
| 850 |
wakaba |
1.39 |
href=#sandboxed-navigation-browsing-context-flag>砂箱化操縦閲覧文脈旗</a>を設定されている場合。
|
| 851 |
apache |
1.37 |
|
| 852 |
|
|
#en
|
| 853 |
apache |
1.36 |
The user agent may offer to create a new <a
|
| 854 |
wakaba |
1.39 |
href=#top-level-browsing-context>top-level browsing context</a> or reuse an existing
|
| 855 |
|
|
<a href=#top-level-browsing-context>top-level browsing context</a>. If the user picks
|
| 856 |
apache |
1.36 |
one of those options, then the designated browsing context must be the
|
| 857 |
|
|
chosen one (the browsing context's name isn't set to the given browsing
|
| 858 |
|
|
context name). Otherwise (if the user agent doesn't offer the option to
|
| 859 |
|
|
the user, or if the user declines to allow a browsing context to be
|
| 860 |
apache |
1.37 |
used) there must not be a chosen browsing context.
|
| 861 |
|
|
#ja
|
| 862 |
apache |
1.36 |
利用者エージェントは新しい<a
|
| 863 |
wakaba |
1.39 |
href=#top-level-browsing-context>最上位閲覧文脈</a>を作成することや既存の<a href=#top-level-browsing-context>最上位閲覧文脈</a>を再利用することを提示して[[MAY:構いません]]。
|
| 864 |
apache |
1.36 |
利用者エージェントがこれらの選択肢の1つを選んだ場合、
|
| 865 |
|
|
指定された閲覧文脈を選ばれた閲覧文脈としなければ[[MUST:なりません]]
|
| 866 |
|
|
(閲覧文脈名は与えられた閲覧文脈名に設定しません)。
|
| 867 |
|
|
そうでない場合 (利用者エージェントが利用者に選択肢を提示しない場合、
|
| 868 |
|
|
あるいは利用者が閲覧文脈を使うことを認めないことにした場合)、
|
| 869 |
|
|
どの閲覧文脈も選んでは[[MUST NOT:なりません]]。
|
| 870 |
apache |
1.37 |
|
| 871 |
|
|
#en
|
| 872 |
wakaba |
1.39 |
The <dfn id=dom-top title=dom-top><code>top</code></dfn> DOM attribute on
|
| 873 |
|
|
the <code><a href=#window>Window</a></code> object of a <a
|
| 874 |
|
|
href=#browsing-context>browsing context</a> <var title="">b</var> must return
|
| 875 |
|
|
the <code><a href=#window>Window</a></code> object of its <a
|
| 876 |
|
|
href=#top-level-browsing-context>top-level browsing context</a> (which would be its own
|
| 877 |
|
|
<code><a href=#window>Window</a></code> object if it was a <a
|
| 878 |
|
|
href=#top-level-browsing-context>top-level browsing context</a> itself).
|
| 879 |
apache |
1.37 |
#ja
|
| 880 |
|
|
<a
|
| 881 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a> <var title="">b</var> の
|
| 882 |
|
|
<code><a href=#window>Window</a></code> オブジェクトの <dfn id=dom-top title=dom-top><code>top</code></dfn> DOM
|
| 883 |
apache |
1.37 |
属性は、その<a
|
| 884 |
wakaba |
1.39 |
href=#top-level-browsing-context>最上位閲覧文脈</a>の
|
| 885 |
|
|
<code><a href=#window>Window</a></code>
|
| 886 |
apache |
1.37 |
オブジェクト (その閲覧文脈自体が<a
|
| 887 |
wakaba |
1.39 |
href=#top-level-browsing-context>最上位閲覧文脈</a>の場合、
|
| 888 |
|
|
その <code><a href=#window>Window</a></code>
|
| 889 |
apache |
1.37 |
オブジェクト自体) を返さなければ[[MUST:なりません]]。
|
| 890 |
|
|
|
| 891 |
|
|
|
| 892 |
|
|
#en
|
| 893 |
wakaba |
1.39 |
The <dfn id=dom-parent title=dom-parent><code>parent</code></dfn> DOM
|
| 894 |
|
|
attribute on the <code><a href=#window>Window</a></code> object of a <a
|
| 895 |
|
|
href=#browsing-context>browsing context</a> <var title="">b</var> must return
|
| 896 |
|
|
the <code><a href=#window>Window</a></code> object of the <a
|
| 897 |
|
|
href=#parent-browsing-context>parent browsing context</a>, if there is one (i.e. if <var
|
| 898 |
|
|
title="">b</var> is a <a href=#child-browsing-context>child browsing context</a>), or the
|
| 899 |
|
|
<code><a href=#window>Window</a></code> object of the <a
|
| 900 |
|
|
href=#browsing-context>browsing context</a> <var title="">b</var> itself,
|
| 901 |
|
|
otherwise (i.e. if it is a <a href=#top-level-browsing-context>top-level browsing
|
| 902 |
apache |
1.37 |
context</a>).
|
| 903 |
|
|
#ja
|
| 904 |
|
|
<a
|
| 905 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a> <var title="">b</var> の
|
| 906 |
|
|
<code><a href=#window>Window</a></code> オブジェクトの <dfn id=dom-parent title=dom-parent><code>parent</code></dfn> DOM
|
| 907 |
apache |
1.37 |
属性は、その<a
|
| 908 |
wakaba |
1.39 |
href=#parent-browsing-context>親閲覧文脈</a>があれば
|
| 909 |
apache |
1.37 |
(つまり <var
|
| 910 |
wakaba |
1.39 |
title="">b</var> が<a href=#child-browsing-context>子閲覧文脈</a>である場合) その<a
|
| 911 |
|
|
href=#parent-browsing-context>親閲覧文脈</a>の
|
| 912 |
|
|
<code><a href=#window>Window</a></code>
|
| 913 |
|
|
オブジェクトを、そうでない場合 (つまりそれ自体が<a href=#top-level-browsing-context>最上位閲覧文脈</a>の場合)
|
| 914 |
apache |
1.37 |
<a
|
| 915 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a> <var title="">b</var>
|
| 916 |
|
|
自体の <code><a href=#window>Window</a></code> オブジェクトを返さなければ[[MUST:なりません]]。
|
| 917 |
apache |
1.37 |
|
| 918 |
|
|
#en
|
| 919 |
wakaba |
1.39 |
The <dfn id=dom-frameelement
|
| 920 |
apache |
1.37 |
title=dom-frameElement><code>frameElement</code></dfn> DOM attribute on
|
| 921 |
wakaba |
1.39 |
the <code><a href=#window>Window</a></code> object of a <a
|
| 922 |
|
|
href=#browsing-context>browsing context</a> <var title="">b</var>, on getting,
|
| 923 |
apache |
1.37 |
must run the following algorithm:
|
| 924 |
|
|
#ja
|
| 925 |
|
|
<a
|
| 926 |
wakaba |
1.39 |
href=#browsing-context>閲覧文脈</a> <var title="">b</var> の
|
| 927 |
|
|
<code><a href=#window>Window</a></code> オブジェクトの <dfn id=dom-frameelement
|
| 928 |
apache |
1.37 |
title=dom-frameElement><code>frameElement</code></dfn> DOM
|
| 929 |
|
|
属性は、取得時、次の算法を走らせなければ[[MUST:なりません]]。
|
| 930 |
|
|
|
| 931 |
|
|
#en
|
| 932 |
wakaba |
1.39 |
If <var title="">b</var> is not a <a href=#child-browsing-context>child browsing
|
| 933 |
apache |
1.37 |
context</a>, return null and abort these steps.
|
| 934 |
|
|
#ja
|
| 935 |
wakaba |
1.39 |
<var title="">b</var> が<a href=#child-browsing-context>子閲覧文脈</a>でない場合、
|
| 936 |
apache |
1.37 |
null を返し、これらの段階を停止します。
|
| 937 |
|
|
|
| 938 |
|
|
#en
|
| 939 |
wakaba |
1.39 |
If the <a href=#parent-browsing-context>parent browsing context</a>'s <a
|
| 940 |
|
|
href=#active-document>active document</a> does not have the <span>same</span>
|
| 941 |
apache |
1.37 |
<span>effective origin</span> as the script that is accessing the <code
|
| 942 |
wakaba |
1.39 |
title=dom-frameElement><a href=#dom-frameelement>frameElement</a></code>
|
| 943 |
|
|
attribute, then throw a <a href=#security-exception>security exception</a>.
|
| 944 |
apache |
1.37 |
#ja
|
| 945 |
wakaba |
1.39 |
<a href=#parent-browsing-context>親閲覧文脈</a>の<a
|
| 946 |
|
|
href=#active-document>活性文書</a>が <code
|
| 947 |
|
|
title=dom-frameElement><a href=#dom-frameelement>frameElement</a></code>
|
| 948 |
|
|
属性にアクセスしているスクリプトと<span>同じ</span><span>実効起源</span>を持たない場合、<a href=#security-exception>保安性例外</a>を投げます。
|
| 949 |
apache |
1.37 |
|
| 950 |
|
|
#en
|
| 951 |
wakaba |
1.39 |
Otherwise, return the <a href=#browsing-context-container>browsing context
|
| 952 |
apache |
1.37 |
container</a> for <var title="">b</var>.
|
| 953 |
|
|
#ja
|
| 954 |
wakaba |
1.39 |
そうでない場合、 <var title="">b</var> の<a href=#browsing-context-container>閲覧文脈包含子</a>を返します。
|
| 955 |
apache |
1.42 |
|
| 956 |
|
|
|
| 957 |
|
|
#pattern |
| 958 |
|
|
<span class=secno>* </span>Navigating nested browsing contexts in the DOM |
| 959 |
|
|
#ja |
| 960 |
apache |
1.43 |
<span class=secno>$1 </span>DOM における入れ子閲覧文脈のナビゲーション |
| 961 |
|
|
|
| 962 |
|
|
#pattern |
| 963 |
|
|
<span class=secno>* </span>Navigating auxiliary browsing contexts in the DOM |
| 964 |
|
|
#ja |
| 965 |
apache |
1.44 |
<span class=secno>$1 </span>DOM における補助閲覧文脈のナビゲーション |
| 966 |
|
|
|
| 967 |
|
|
#en |
| 968 |
|
|
If the <a href=#parent-browsing-context>parent browsing context</a>'s <a href=#active-document>active
|
| 969 |
|
|
document</a> does not have the <span>same</span> <a href=#effective-script-origin>effective
|
| 970 |
|
|
script origin</a> as the script that is accessing the <code title=dom-frameElement><a href=#dom-frameelement>frameElement</a></code> attribute, then throw
|
| 971 |
|
|
a <a href=#security-exception>security exception</a>. |
| 972 |
|
|
#ja |
| 973 |
|
|
<a href=#parent-browsing-context>親閲覧文脈</a>の<a href=#active-document>活性文書</a>が、
|
| 974 |
|
|
<code title=dom-frameElement><a href=#dom-frameelement>frameElement</a></code>
|
| 975 |
|
|
属性にアクセスしているスクリプトと<span>同じ</span><a href=#effective-script-origin>実効スクリプト起源</a>を持たない場合、
|
| 976 |
|
|
<a href=#security-exception>保安性例外</a>を投げます。 |