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