/[suikacvs]/markup/html/html5/spec-ja/data/storages.dat
Suika

Contents of /markup/html/html5/spec-ja/data/storages.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.28 - (hide annotations) (download)
Sun Aug 10 06:44:56 2008 UTC (17 years, 11 months ago) by apache
Branch: MAIN
Changes since 1.27: +133 -134 lines
by remote user 'guest'

1 apache 1.28
2     #pattern
3     <span class=secno>* </span>The * event
4     #ja
5     <span class=secno>$1 </span>$2 事象
6    
7     #en
8 apache 1.3 The <dfn id=storage1 title=event-storage><code>storage</code></dfn>
9     event is fired in an <code><a href="#htmldocument">HTMLDocument</a></code>
10     when a storage area changes, as described in the previous two sections (<a
11     href="#sessionStorageEvent">for session storage</a>, <a
12 apache 1.28 href="#localStorageEvent">for local storage</a>).
13     #ja
14 apache 1.3 <dfn id=storage1 title=event-storage><code>storage</code></dfn>
15     事象は、 <code><a href="#htmldocument">HTMLDocument</a></code>
16     において、ストレージ領域が変化した時に。前の2つの節
17     (<a
18     href="#sessionStorageEvent">セッション・ストレージ対象</a>、<a
19     href="#localStorageEvent">局所ストレージ対象</a>)
20     で説明したように発火されます。
21 apache 1.28
22    
23     #en
24 apache 1.4 When this happens, the user agent must dispatch an event with the name
25     <code><a href="#storage0">storage</a></code>, with no namespace, which
26     does not bubble but is cancelable, and which uses the <code><a
27     href="#storageevent">StorageEvent</a></code>, at <a href="#the-body1">the
28     body element</a> of each <a href="#active" title="active
29     document">active</a> <code><a href="#htmldocument">HTMLDocument</a></code>
30 apache 1.28 object affected.
31     #ja
32 apache 1.4 利用者エージェントは、これが起こる時、名前
33     <code><a href="#storage0">storage</a></code>、
34     名前空間なし、
35     泡立たず取消し可能で <code><a
36     href="#storageevent">StorageEvent</a></code>
37     を使った事象を、関係する<a href="#active" title="active
38     document">活性</a> <code><a href="#htmldocument">HTMLDocument</a></code>
39     オブジェクトそれぞれの<a href="#the-body1">文書
40     body 要素</a>に対して発送しなければ[[MUST:なりません]]。
41 apache 1.28
42    
43     #pattern
44     <span class=secno>* </span>Event definition
45     #ja
46     <span class=secno>$1 </span>事象定義
47    
48     #en
49 apache 1.6 The <dfn id=initstorageevent
50     title=dom-StorageEvent-initStorageEvent><code>initStorageEvent()</code></dfn>
51     and <dfn id=initstorageeventns
52     title=dom-StorageEvent-initStorageEventNS><code>initStorageEventNS()</code></dfn>
53     methods must initialise the event in a manner analogous to the
54     similarly-named methods in the DOM3 Events interfaces. <a
55 apache 1.28 href="#refsDOM3EVENTS">[DOM3EVENTS]</a>
56     #ja
57 apache 1.6 <dfn id=initstorageevent
58     title=dom-StorageEvent-initStorageEvent><code>initStorageEvent()</code></dfn>
59     メソッドと <dfn id=initstorageeventns
60     title=dom-StorageEvent-initStorageEventNS><code>initStorageEventNS()</code></dfn>
61     メソッドは、 DOM3 事象界面の同じような名前のメソッドと同じような方法で、
62     事象を初期化しなければ[[MUST:なりません]]。
63 apache 1.28
64    
65     #en
66 apache 1.7 The <dfn id=key title=dom-StorageEvent-key><code>key</code></dfn>
67 apache 1.28 attribute represents the key being changed.
68     #ja
69 apache 1.7 <dfn id=key title=dom-StorageEvent-key><code>key</code></dfn>
70     属性は、変化する鍵を表します。
71 apache 1.28
72    
73     #en
74 apache 1.8 The <dfn id=oldvalue
75     title=dom-StorageEvent-oldValue><code>oldValue</code></dfn> attribute
76 apache 1.28 represents the old value of the key being changed.
77     #ja
78 apache 1.8 <dfn id=oldvalue
79     title=dom-StorageEvent-oldValue><code>oldValue</code></dfn>
80     属性は、変化する鍵の古い値を表します。
81 apache 1.28
82    
83     #en
84 apache 1.9 The <dfn id=newvalue
85     title=dom-StorageEvent-vnewValue><code>newValue</code></dfn> attribute
86 apache 1.28 represents the new value of the key being changed.
87     #ja
88 apache 1.9 <dfn id=newvalue
89     title=dom-StorageEvent-vnewValue><code>newValue</code></dfn>
90     属性は、変化する鍵の新しい値を表します。
91 apache 1.28
92    
93     #en
94 apache 1.10 The <dfn id=url1 title=dom-StorageEvent-url><code>url</code></dfn>
95 apache 1.28 attribute represents the address of the document that changed the key.
96     #ja
97 apache 1.10 <dfn id=url1 title=dom-StorageEvent-url><code>url</code></dfn>
98     属性は、鍵を変更した文書の番地を表します。
99 apache 1.28
100    
101     #en
102 apache 1.11 The <dfn id=source1
103     title=dom-StorageEvent-source><code>source</code></dfn> attribute
104     represents the <code><a href="#window">Window</a></code> that changed the
105 apache 1.28 key.
106     #ja
107 apache 1.11 <dfn id=source1
108 apache 1.28 title=dom-StorageEvent-source><code>source</code></dfn> 属性は、
109 apache 1.11 鍵を変更した <code><a href="#window">Window</a></code>
110 apache 1.28 を表します。
111    
112     #en
113 apache 1.12 Multiple browsing contexts must be able to access the local storage
114     areas simultaneously in a predictable manner. Scripts must not be able to
115 apache 1.28 detect any concurrent script execution.
116     #ja
117 apache 1.12 複数の閲覧文脈は、局所ストレージ領域に同時に予測可能な方法でアクセスできなければ[[MUST:なりません]]。
118     スクリプトが並行スクリプト実行を検知可能であっては[[MUST:なりません]]。
119 apache 1.28
120    
121     #en
122 apache 1.13 This is required to guarantee that the <code title=dom-Storage-length><a
123     href="#length10">length</a></code> attribute of a <code><a
124     href="#storage0">Storage</a></code> object never changes while a script is
125 apache 1.28 executing, other than in a way that is predictable by the script itself.
126     #ja
127 apache 1.13 これは <code><a
128     href="#storage0">Storage</a></code>
129     オブジェクトの <code title=dom-Storage-length><a
130     href="#length10">length</a></code>
131 apache 1.28 属性があるスクリプトの実行中にスクリプト自体が予期可能な形以外で決して代わらないことを保証するために[[REQUIRED:要求]]されます。
132    
133    
134     #en
135 apache 1.14 There are various ways of implementing this requirement. One is that if
136     a script running in one browsing context accesses a local storage area,
137     the UA blocks scripts in other browsing contexts when they try to access
138     the local storage area for the <a href="#same-origin">same origin</a>
139     until the first script has executed to completion. (Similarly, when a
140     script in one browsing context accesses its session storage area, any
141     scripts that have the same top level browsing context and the <a
142     href="#same-origin">same origin</a> would block when accessing their
143     session storage area until the first script has executed to completion.)
144     Another (potentially more efficient but probably more complex)
145     implementation strategy is to use optimistic transactional script
146     execution. This specification does not require any particular
147 apache 1.28 implementation strategy, so long as the requirement above is met.
148     #ja
149 apache 1.14 この要件を実装する方法は色々あります。
150     1つは、ある閲覧文脈で走っているスクリプトが局所ストレージ領域にアクセスする場合、
151     そのスクリプトが実行完了するまでの間、
152     他の閲覧文脈中のスクリプトが<a href="#same-origin">同一起源</a>の局所ストレージ領域にアクセスしようとしたら利用者エージェントがブロックする、
153     というものです。
154     (同様に、ある閲覧文脈中のスクリプトがセッション・ストレージ領域にアクセスする時に、
155     そのスクリプトが実行完了するまでの間、
156     同じ最上位閲覧文脈と<a
157     href="#same-origin">同一起源</a>を持つスクリプトがセッション・ストレージ領域にアクセスする時にはブロックされることとなります。)
158     他の (より効率がよいかもしれないがより複雑であろう) 実装戦略は、
159     楽観的取引的スクリプト実行を使うというものです。
160     この仕様書は、前記の要件が満たされる限りにおいて、
161 apache 1.28 いかなる実装戦略をも要求しません。
162    
163    
164     #pattern
165     <span class=secno>* </span>Database storage
166     #ja
167     <span class=secno>$1 </span>データベース・ストレージ
168    
169     #pattern
170     <span class=secno>* </span>Databases
171     #ja
172     <span class=secno>$1 </span>データベース
173    
174     #en
175 apache 1.17 Each <i><a href="#origin0">origin</a></i> has an associated set of
176     databases. Each database has a name and a current version. There is no way
177 apache 1.28 to enumerate or delete the databases available for a domain from this API.
178     #ja
179 apache 1.17 各<i><a href="#origin0">起源</a></i>は、それに関連付けられたデータベースの集合を持ちます。
180     各データベースは、名前と現在の版を持ちます。
181     この API を使ってあるドメインに利用可能なデータベースを列挙したり、
182     削除したりする方法はありません。
183 apache 1.28
184    
185     #en
186 apache 1.18 Each database has one version at a time, a database can't
187     exist in multiple versions at once. Versions are intended to allow authors
188     to manage schema changes incrementally and non-destructively, and without
189     running the risk of old code (e.g. in another browser window) trying to
190 apache 1.28 write to a database with incorrect assumptions.
191     #ja
192 apache 1.18 各データベースはある時点で1つの版を持ち、
193     1つのデータベースの複数の版が同時に存在することはできません。
194     版は著者がスキーマの変更を随時、非破壊的に、
195     かつ古い符号 (例えば他のブラウザ窓中のもの)
196 apache 1.28 が誤った仮定の下でデータベースに書き込もうとする危険なしで行えるようにすることを意図したものです。
197    
198    
199     #en
200 apache 1.19 The <dfn id=opendatabase
201     title=dom-opendatabase><code>openDatabase()</code></dfn> method returns a
202     <code><a href="#database0">Database</a></code> object. The method takes
203     four arguments: a database name, a database version, a display name, and
204     an estimated size, in bytes, of the data that will be stored in the
205 apache 1.28 database.
206     #ja
207 apache 1.19 <dfn id=opendatabase
208     title=dom-opendatabase><code>openDatabase()</code></dfn>
209     メソッドは
210     <code><a href="#database0">Database</a></code>
211     オブジェクトを返します。
212     このメソッドは、データベース名、データベース版、
213     表示名、データベース中に蓄積されるデータの大きさの見積もり (バイト単位)
214 apache 1.28 の4つの引数を取ります。
215    
216     #en
217 apache 1.20 The <code title=dom-opendatabase><a
218     href="#opendatabase">openDatabase()</a></code> method must use and create
219     databases from the <a href="#origin0">origin</a> of the <a
220     href="#active">active document</a> of the <a href="#browsing1">browsing
221     context</a> of the <code><a href="#window">Window</a></code> object on
222 apache 1.28 which the method was invoked.
223     #ja
224 apache 1.20 <code title=dom-opendatabase><a
225     href="#opendatabase">openDatabase()</a></code>
226     メソッドは、それが呼び出された <code><a href="#window">Window</a></code>
227     オブジェクトの<a href="#browsing1">閲覧文脈</a>の<a
228     href="#active">活性文書</a>の<a href="#origin0">起源</a>からのデータベースを使用・作成しなければ[[MUST:なりません]]。
229 apache 1.28
230    
231     #en
232 apache 1.21 If the database version provided is not the empty string, and the
233     database already exists but has a different version, then the method must
234 apache 1.28 raise an <code>INVALID_STATE_ERR</code> exception.
235     #ja
236 apache 1.21 指定されたデータベースの版が空文字列でない場合で、
237     データベースが既に存在し、
238     異なる版を持つ場合、
239     メソッドは
240     <code>INVALID_STATE_ERR</code>
241 apache 1.28 例外を発生させなければ[[MUST:なりません]]。
242    
243     #en
244 apache 1.22 The user agent may also raise a <a href="#security10">security
245     exception</a> in case the request violates a policy decision (e.g. if the
246 apache 1.28 user agent is configured to not allow the page to open databases).
247     #ja
248 apache 1.22 利用者エージェントは、要求が方針決定に反する場合
249     (例えば、頁がデータベースを開くことを認めないように利用者エージェントが設定されている場合)
250    
251 apache 1.28 <a href="#security10">保安性例外</a>を発生させても[[MAY:構いません]]。
252    
253     #en
254 apache 1.23 Otherwise, if the database version provided is the empty string, or if
255     the database doesn't yet exist, or if the database exists and the version
256     provided to the <code title=dom-opendatabase><a
257     href="#opendatabase">openDatabase()</a></code> method is the same as the
258     current version associated with the database, then the method must return
259     a <code><a href="#database0">Database</a></code> object representing the
260     database that has the name that was given. If no such database exists, it
261 apache 1.28 must be created first.
262     #ja
263 apache 1.23 そうでない場合、指定されたデータベースの版が空文字列の場合、
264     またはデータベースがまだ存在しない場合、
265     またはデータベースが存在し、 <code title=dom-opendatabase><a
266     href="#opendatabase">openDatabase()</a></code>
267     メソッドに指定されて版がデータベースに関連付けられている現在の版と同じである場合には、
268     メソッドは、指定された名前を持つデータベースを表す
269     <code><a href="#database0">Database</a></code>
270     オブジェクトを返さなければ[[MUST:なりません]]。
271     そのようなデータベースが存在しない場合、
272 apache 1.28 まずそれを作らなければ[[MUST:なりません]]。
273    
274     #en
275 apache 1.24 All strings including the empty string are valid database names.
276     Database names must be compared in a <a
277 apache 1.28 href="#case-sensitive">case-sensitive</a> manner.
278     #ja
279 apache 1.24 空文字列を含むすべての文字列は妥当なデータベース名です。
280     データベース名は<a
281 apache 1.28 href="#case-sensitive">大文字・小文字を区別</a>した形で比較しなければ[[MUST:なりません]]。
282    
283     #en
284 apache 1.25 Implementations can support this even in environments that
285     only support a subset of all strings as database names by mapping database
286 apache 1.28 names (e.g. using a hashing algorithm) to the supported set of names.
287     #ja
288 apache 1.25 実装は、すべての文字列の部分集合をデータベース名として扱う環境であっても、
289     データベース名を対応している名前の集合に写像する
290 apache 1.28 (例えばハッシュ算法を使う) ことにより、これに対応することができます。
291    
292     #en
293 apache 1.26 User agents are expected to use the display name and the estimated
294     database size to optimize the user experience. For example, a user agent
295     could use the estimated size to suggest an initial quota to the user. This
296     allows a site that is aware that it will try to use hundreds of megabytes
297     to declare this upfront, instead of the user agent prompting the user for
298 apache 1.28 permission to increase the quota every five megabytes.
299     #ja
300 apache 1.26 利用者エージェントに対しては、表示名とデータベースの大きさの見積もりを、
301     利用者の体験の最適化のために使うことを期待しています。
302     例えば、利用者エージェントは、利用者に対して最初の割当量を提示するために大きさの見積もりを使うことができます。
303     それによって、はじめから数百メガバイトを使うであろうことがわかっているサイトがそれを予め宣言しておけば、
304 apache 1.28 利用者エージェントは5メガバイト毎に割当量を増やすかどうかを利用者に問わなくてもよくなります。
305    
306     #en
307 apache 1.27 The <dfn id=transaction
308     title=dom-database-transaction><code>transaction()</code></dfn> method
309     takes one or two arguments. When called, the method must immediately
310     return and then asynchronously run the <a href="#transaction0">transaction
311     steps</a> with the <i>transaction callback</i> being the first argument,
312     the <i>error callback</i> being the second argument, if any, the
313     <i>success callback</i> being the third argument, if any, and with no
314 apache 1.28 <i>preflight operation</i> or <i>postflight operation</i>.
315     #ja
316 apache 1.27 <dfn id=transaction
317     title=dom-database-transaction><code>transaction()</code></dfn>
318     メソッドは1つか2つの引数を取ります。
319     このメソッドは、呼び出された時、
320     すぐに返り、それから非同期に、
321     <i>取引呼び戻し</i>を最初の引数とし、
322     <i>誤り呼び戻し</i>を2つ目の引数があればそれとし、
323     <i>成功呼び戻し</i>を3つ目の引数があればそれとし、
324     <i>飛行前操作</i>と<i>飛行後操作</i>はなしとして、
325     <a href="#transaction0">取引段階</a>を走らせなければ[[MUST:なりません]]。

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24