| 1318 |
利用者エージェントは、このメソッドが呼び出された時、まずは、 |
利用者エージェントは、このメソッドが呼び出された時、まずは、 |
| 1319 |
<var title="">target</var> 引数を名前、スクリプトの<a href=#browsing-context>閲覧文脈</a>を算法が実行される文脈として用いて<a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>閲覧文脈名から閲覧文脈を選ぶ規則</a>を適用してナビゲーションを行う |
<var title="">target</var> 引数を名前、スクリプトの<a href=#browsing-context>閲覧文脈</a>を算法が実行される文脈として用いて<a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>閲覧文脈名から閲覧文脈を選ぶ規則</a>を適用してナビゲーションを行う |
| 1320 |
<a href=#browsing-context>閲覧文脈</a>を選択しなければ[[MUST:なりません]]。 |
<a href=#browsing-context>閲覧文脈</a>を選択しなければ[[MUST:なりません]]。 |
|
ただし、利用者が希望を示した場合は例外で、その場合は利用者が示した閲覧文脈をナビゲーションを行うものとして[[MAY:構いません]]。 |
|
| 1321 |
|
ただし、利用者が希望を示した場合は例外で、その場合は利用者が示した閲覧文脈をナビゲーションを行うものとして[[MAY:構いません]]。 |
| 1322 |
|
|
| 1323 |
|
#en |
| 1324 |
|
For example, suppose there is a user agent that |
| 1325 |
|
supports control-clicking a link to open it in a new tab. If a user |
| 1326 |
|
clicks in that user agent on an element whose <code title=handler-onclick><a href=#handler-onclick>onclick</a></code> handler uses the <code title=dom-open><a href=#dom-open>window.open()</a></code> API to open a page in an |
| 1327 |
|
iframe, but, while doing so, holds the control key down, the user |
| 1328 |
|
agent could override the selection of the target browsing context to |
| 1329 |
|
instead target a new tab. |
| 1330 |
|
#ja |
| 1331 |
|
例えば、制御鍵を押しながらリンクをクリックすると新しいタブで開く利用者エージェントがあるとします。 |
| 1332 |
|
利用者がこの利用者エージェント上で <code title=handler-onclick><a href=#handler-onclick>onclick</a></code> 取扱器が <code title=dom-open><a href=#dom-open>window.open()</a></code> を用いて頁を iframe |
| 1333 |
|
で開く要素をクリックした場合で、利用者がクリック中に制御鍵を押し続けていた場合、 |
| 1334 |
|
利用者エージェントは対象閲覧文脈の選択を上書きして、代わりに新しいタブで開くことができます。 |
| 1335 |
|
|
| 1336 |
|
|
| 1337 |
|
#en |
| 1338 |
|
Then, the user agent must <a href=#navigate>navigate</a> the selected |
| 1339 |
|
<a href=#browsing-context>browsing context</a> to the <a href=#absolute-url>absolute URL</a> (or |
| 1340 |
|
error) obtained from <a href=#resolve-a-url title="resolve a url">resolving</a> |
| 1341 |
|
<var title="">url</var>. If the <var title="">replace</var> is true, |
| 1342 |
|
then <a href=#replacement-enabled title="replacement enabled">replacement must be |
| 1343 |
|
enabled</a>; otherwise, it must not be enabled unless the |
| 1344 |
|
<a href=#browsing-context>browsing context</a> was just created as part of the |
| 1345 |
|
<a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a browsing |
| 1346 |
|
context name</a>. The navigation must be done with the |
| 1347 |
|
<a href=#script-browsing-context>script browsing context</a> of the script that invoked the |
| 1348 |
|
method as the <a href=#source-browsing-context>source browsing context</a>. |
| 1349 |
|
#ja |
| 1350 |
|
その後、利用者エージェントは選ばれた<a href=#browsing-context>閲覧文脈</a>を <var title="">url</var> |
| 1351 |
|
の<a href=#resolve-a-url title="resolve a url">解決</a>によって得られた<a href=#absolute-url>絶対 |
| 1352 |
|
URL</a> (または誤り) に<a href=#navigate>ナビゲーション</a>しなければ[[MUST:なりません]]。 |
| 1353 |
|
<var title="">replace</var> が真の場合、<a href=#replacement-enabled title="replacement enabled">置換を有効としなければ[[MUST:なりません]]</a>。そうでない場合、 |
| 1354 |
|
<a href=#browsing-context>閲覧文脈</a>が<a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>閲覧文脈名から閲覧文脈を選ぶ規則</a>の中で作成されたばかりである場合を除き、 |
| 1355 |
|
置換を有効としては[[MUST NOT:なりません]]。ナビゲーションは、 |
| 1356 |
|
メソッドを呼び出したスクリプトの<a href=#script-browsing-context>スクリプト閲覧文脈</a>を<a href=#source-browsing-context>原始閲覧文脈</a>として行わなければ[[MUST:なりません]]。 |
| 1357 |
|
|
| 1358 |
|
#en |
| 1359 |
|
The method must return the <code><a href=#window>Window</a></code> object of the |
| 1360 |
|
default view of the <a href=#browsing-context>browsing context</a> that was |
| 1361 |
|
navigated, or null if no browsing context was navigated. |
| 1362 |
|
#ja |
| 1363 |
|
メソッドはナビゲーションされる<a href=#browsing-context>閲覧文脈</a>の既定表示の <code><a href=#window>Window</a></code> |
| 1364 |
|
オブジェクトか、ナビゲーションされる閲覧文脈がない場合には null を返さなければ[[MUST:なりません]]。 |
| 1365 |
|
|
| 1366 |
|
#en |
| 1367 |
|
The <dfn id=dom-name title=dom-name><code>name</code></dfn> attribute of |
| 1368 |
|
the <code><a href=#window>Window</a></code> object must, on getting, return the current |
| 1369 |
|
name of the <a href=#browsing-context>browsing context</a>, and, on setting, set the |
| 1370 |
|
name of the <a href=#browsing-context>browsing context</a> to the new value. |
| 1371 |
|
#ja |
| 1372 |
|
<code><a href=#window>Window</a></code> オブジェクトの <dfn id=dom-name title=dom-name><code>name</code></dfn> |
| 1373 |
|
属性は、取得時には<a href=#browsing-context>閲覧文脈</a>の現在の名前を返し、 |
| 1374 |
|
設定時には<a href=#browsing-context>閲覧文脈</a>の名前を新しい値に設定しなければ[[MUST:なりません]]。 |
| 1375 |
|
|
| 1376 |
|
#en |
| 1377 |
|
The name <a href=#resetBCName>gets reset</a> when |
| 1378 |
|
the browsing context is navigated to another domain. |
| 1379 |
|
#ja |
| 1380 |
|
名前は、他のドメインにナビゲーションされた時に<a href=#resetBCName>再設定されます</a>。 |
| 1381 |
|
|
| 1382 |
|
#pattern |
| 1383 |
|
<span class=secno>* </span>Accessing other browsing contexts |
| 1384 |
|
#ja |
| 1385 |
|
<span class=secno>$1 </span>他の閲覧文脈へのアクセス |
| 1386 |
|
|
| 1387 |
|
#en |
| 1388 |
|
The <dfn id=dom-length title=dom-length><code>length</code></dfn> DOM |
| 1389 |
|
attribute on the <code><a href=#window>Window</a></code> interface must return the |
| 1390 |
|
number of <a href=#child-browsing-context title="child browsing context">child browsing |
| 1391 |
|
contexts</a> of the <a href=#active-document title="active document">active</a> |
| 1392 |
|
<code>Document</code>. |
| 1393 |
|
#ja |
| 1394 |
|
<code><a href=#window>Window</a></code> |
| 1395 |
|
界面の <dfn id=dom-length title=dom-length><code>length</code></dfn> DOM 属性は<a href=#active-document title="active document">活性</a> |
| 1396 |
|
<code>Document</code> の<a href=#child-browsing-context title="child browsing context">子閲覧文脈</a>の数を返さなければ[[MUST:なりません]]。 |
| 1397 |
|
|
| 1398 |
|
#pattern |
| 1399 |
|
<span class=secno>* </span>Origin |
| 1400 |
|
#ja |
| 1401 |
|
<span class=secno>$1 </span>起源 |
| 1402 |
|
|
| 1403 |
|
#en |
| 1404 |
|
The <dfn id=origin-0>origin</dfn> of a resource and the <dfn id=effective-script-origin>effective script |
| 1405 |
|
origin</dfn> of a resource are both either opaque identifiers or |
| 1406 |
|
tuples consisting of a scheme component, a host component, a port |
| 1407 |
|
component, and optionally extra data. |
| 1408 |
|
#ja |
| 1409 |
|
資源の<dfn id=origin-0>起源</dfn>と資源の<dfn id=effective-script-origin>実効スクリプト起源</dfn>は、いずれも、不透明な識別子か、または scheme 部品、 host 部品、 port 部品、任意選択で余剰データの組かのいずれかです。 |
| 1410 |
|
|
| 1411 |
|
#en |
| 1412 |
|
The extra data could include the certificate of the |
| 1413 |
|
site when using encrypted connections, to ensure that if the site's |
| 1414 |
|
secure certificate changes, the origin is considered to change as |
| 1415 |
|
well. |
| 1416 |
|
#ja |
| 1417 |
|
余剰データは、暗号化接続を使っている時に、サイトの保安証明書が変化した場合に起源も同時に変化したとみなすためにこれを含めることができます。 |
| 1418 |
|
|
| 1419 |
|
#en |
| 1420 |
|
For URLs |
| 1421 |
|
#ja |
| 1422 |
|
URL に関して |
| 1423 |
|
|
| 1424 |
|
#en |
| 1425 |
|
The <a href=#origin-0>origin</a> and <a href=#effective-script-origin>effective script |
| 1426 |
|
origin</a> of the <a href=#url>URL</a> is whatever is returned by |
| 1427 |
|
the following algorithm: |
| 1428 |
|
#ja |
| 1429 |
|
<a href=#url>URL</a> の<a href=#origin-0>起源</a>と<a href=#effective-script-origin>実効スクリプト起源</a>は、次の算法によって返されるものです。 |
| 1430 |
|
|
| 1431 |
|
#en |
| 1432 |
|
Let <var title="">url</var> be the <a href=#url>URL</a> for |
| 1433 |
|
which the <a href=#origin-0>origin</a> is being determined. |
| 1434 |
|
#ja |
| 1435 |
|
<var title="">url</var> を、<a href=#origin-0>起源</a>を決定しようとしている <a href=#url>URL</a> |
| 1436 |
|
とします。 |
| 1437 |
|
|
| 1438 |
|
#en |
| 1439 |
|
<a href=#parse-a-url title="parse a url">Parse</a> <var title="">url</var>. |
| 1440 |
|
#ja |
| 1441 |
|
<var title="">url</var> を<a href=#parse-a-url title="parse a url">構文解析</a>します。 |
| 1442 |
|
|
| 1443 |
|
#en |
| 1444 |
|
If <var title="">url</var> does not use a server-based |
| 1445 |
|
naming authority, or if parsing <var title="">url</var> failed, |
| 1446 |
|
or if <var title="">url</var> is not an <a href=#absolute-url>absolute |
| 1447 |
|
URL</a>, then return a new globally unique |
| 1448 |
|
identifier. |
| 1449 |
|
#ja |
| 1450 |
|
<var title="">url</var> が鯖型命名局を用いていない場合や、 |
| 1451 |
|
<var title="">url</var> の構文解析が失敗した場合や、 |
| 1452 |
|
<var title="">url</var> が<a href=#absolute-url>絶対 |
| 1453 |
|
URL</a> |
| 1454 |
|
でない場合、新しい大域的に固有な識別子を返します。 |
| 1455 |
|
|
| 1456 |
|
#en |
| 1457 |
|
Let <var title="">scheme</var> be the <a href=#url-scheme title=url-scheme><scheme></a> component of <var title="">url</var>, <a href=#converted-to-lowercase>converted to lowercase</a>. |
| 1458 |
|
#ja |
| 1459 |
|
<var title="">scheme</var> を、<var title="">url</var> の <a href=#url-scheme title=url-scheme><scheme></a> 部品を、<a href=#converted-to-lowercase>小文字に変換</a>したものとします。 |
| 1460 |
|
|
| 1461 |
|
#en |
| 1462 |
|
If the UA doesn't support the protocol given by <var title="">scheme</var>, then return a new globally unique |
| 1463 |
|
identifier. |
| 1464 |
|
#ja |
| 1465 |
|
利用者エージェントが <var title="">scheme</var> によって与えられるプロトコルに対応していない場合、 |
| 1466 |
|
新しい大域的に固有な識別子を返します。 |
| 1467 |
|
|
| 1468 |
|
|
| 1469 |
|
#en |
| 1470 |
|
If <var title="">scheme</var> is "<code title="">file</code>", then the user agent may return a |
| 1471 |
|
UA-specific value. |
| 1472 |
|
#ja |
| 1473 |
|
<var title="">scheme</var> が「<code title="">file</code>」 |
| 1474 |
|
の場合、利用者エージェントは利用者エージェント規定の値を返して[[MAY:構いません]]。 |
| 1475 |
|
|
| 1476 |
|
#en |
| 1477 |
|
Let <var title="">host</var> be the <a href=#url-host title=url-host><host></a> component of <var title="">url</var>. |
| 1478 |
|
#ja |
| 1479 |
|
<var title="">host</var> を、<var title="">url</var> の <a href=#url-host title=url-host><host></a> |
| 1480 |
|
部品とします。 |
| 1481 |
|
|
| 1482 |
|
#en |
| 1483 |
|
Apply the IDNA ToASCII algorithm to <var title="">host</var>, |
| 1484 |
|
with both the AllowUnassigned and UseSTD3ASCIIRules flags |
| 1485 |
|
set. Let <var title="">host</var> be the result of the ToASCII |
| 1486 |
|
algorithm. |
| 1487 |
|
#ja |
| 1488 |
|
<var title="">host</var> に対して、 IDNA ToASCII 算法を、 |
| 1489 |
|
AllowUnassigned 旗と UseSTD3ASCIIRules 旗の両方を設定して適用します。 |
| 1490 |
|
<var title="">host</var> を、 ToASCII 算法の結果とします。 |
| 1491 |
|
|
| 1492 |
|
#en |
| 1493 |
|
If ToASCII fails to convert one of the components of the |
| 1494 |
|
string, e.g. because it is too long or because it contains |
| 1495 |
|
invalid characters, then return a new globally unique |
| 1496 |
|
identifier. <a href=#refsRFC3490>[RFC3490]</a> |
| 1497 |
|
#ja |
| 1498 |
|
ToASCII が文字列の部品のいずれかの変換に失敗した場合、 |
| 1499 |
|
例えば長すぎたり非妥当な文字を含んだりして失敗した場合、 |
| 1500 |
|
新しい大域的に固有な識別子を返します。 <a href=#refsRFC3490>[RFC3490]</a> |
| 1501 |
|
|
| 1502 |
|
#en |
| 1503 |
|
Let <var title="">host</var> be the result of converting |
| 1504 |
|
<var title="">host</var> <a href=#converted-to-lowercase title="converted to lowercase">to |
| 1505 |
|
lowercase</a>. |
| 1506 |
|
#ja |
| 1507 |
|
<var title="">host</var> を、 <var title="">host</var> を<a href=#converted-to-lowercase title="converted to lowercase">小文字に</a>変換した結果とします。 |
| 1508 |
|
|
| 1509 |
|
#en |
| 1510 |
|
If there is no <a href=#url-port title=url-port><port></a> |
| 1511 |
|
component, then let <var title="">port</var> be the default port |
| 1512 |
|
for the protocol given by <var title="">scheme</var>. Otherwise, |
| 1513 |
|
let <var title="">port</var> be the <a href=#url-port title=url-port><port></a> component of <var title="">url</var>. |
| 1514 |
|
#ja |
| 1515 |
|
<a href=#url-port title=url-port><port></a> 部品がない場合、 |
| 1516 |
|
<var title="">port</var> を、 <var title="">scheme</var> によって与えられたプロトコルの既定のポートとします。 |
| 1517 |
|
そうでない場合、 <var title="">port</var> を、<var title="">url</var> の <a href=#url-port title=url-port><port></a> |
| 1518 |
|
部品とします。 |
| 1519 |
|
|
| 1520 |
|
#en |
| 1521 |
|
Return the tuple (<var title="">scheme</var>, <var title="">host</var>, <var title="">port</var>). |
| 1522 |
|
#ja |
| 1523 |
|
組 (<var title="">scheme</var>, <var title="">host</var>, <var title="">port</var>) |
| 1524 |
|
を返します。 |
| 1525 |
|
|
| 1526 |
|
#en |
| 1527 |
|
In addition, if the <a href=#url>URL</a> is in fact associated with |
| 1528 |
|
a <code>Document</code> object that was created by parsing the |
| 1529 |
|
resource obtained from fetching <a href=#url>URL</a>, and this was |
| 1530 |
|
done over a secure connection, then the server's secure |
| 1531 |
|
certificate may be added to the origin as additional data. |
| 1532 |
|
#ja |
| 1533 |
|
加えて、 <a href=#url>URL</a> が実は <a href=#url>URL</a> の取得によって得られた資源を構文解析することによって作られた <code>Document</code> オブジェクトと関連付けられており、 |
| 1534 |
|
その取得が安全な接続の上で行われた場合には、 |
| 1535 |
|
鯖の保安証明書を起源に追加データとして加えて[[MAY:構いません]]。 |
| 1536 |
|
|
| 1537 |
|
#en |
| 1538 |
|
For scripts |
| 1539 |
|
#ja |
| 1540 |
|
スクリプトに関して |
| 1541 |
|
|
| 1542 |
|
#en |
| 1543 |
|
The <a href=#origin-0>origin</a> and <a href=#effective-script-origin>effective script |
| 1544 |
|
origin</a> of a script are determined from another resource, |
| 1545 |
|
called the <i>owner</i>: |
| 1546 |
|
#ja |
| 1547 |
|
スクリプトの<a href=#origin-0>起源</a>と<a href=#effective-script-origin>実効スクリプト起源</a>は、<i>所有者</i>と呼ぶ他の資源によって決定されます。 |
| 1548 |
|
|
| 1549 |
|
#en |
| 1550 |
|
If a script is in a <code><a href=#script>script</a></code> element |
| 1551 |
|
#ja |
| 1552 |
|
スクリプトが <code><a href=#script>script</a></code> 要素中にある場合 |
| 1553 |
|
|
| 1554 |
|
#en |
| 1555 |
|
The owner is the <code>Document</code> to which the |
| 1556 |
|
<code><a href=#script>script</a></code> element belongs. |
| 1557 |
|
#ja |
| 1558 |
|
所有者は <code><a href=#script>script</a></code> 要素が所属する <code>Document</code> です。 |
| 1559 |
|
|
| 1560 |
|
#en |
| 1561 |
|
If a script is in an <a href=#event-handler-content-attributes title="event handler content attributes">event handler content attribute</a> |
| 1562 |
|
#ja |
| 1563 |
|
スクリプトが<a href=#event-handler-content-attributes title="event handler content attributes">事象取扱器内容属性</a>中にある場合 |
| 1564 |
|
|
| 1565 |
|
#en |
| 1566 |
|
The owner is the <code>Document</code> to which the |
| 1567 |
|
attribute node belongs. |
| 1568 |
|
#ja |
| 1569 |
|
所有者は属性節点が所属する <code>Document</code> です。 |
| 1570 |
|
|
| 1571 |
|
#en |
| 1572 |
|
If a script is a function or other code reference created by |
| 1573 |
|
another script |
| 1574 |
|
#ja |
| 1575 |
|
スクリプトが他のスクリプトによって作成された関数その他の符号参照の場合 |
| 1576 |
|
|
| 1577 |
|
#en |
| 1578 |
|
The owner is the script that created it. |
| 1579 |
|
#ja |
| 1580 |
|
所有者は作成したスクリプトです。 |
| 1581 |
|
|
| 1582 |
|
#en |
| 1583 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> that was returned as the |
| 1584 |
|
location of an HTTP redirect (or equivalent in other |
| 1585 |
|
protocols) |
| 1586 |
|
#ja |
| 1587 |
|
スクリプトが <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> であって、 |
| 1588 |
|
HTTP リダイレクト (または他のプロトコルの等価なもの) の所在として返されたものの場合 |
| 1589 |
|
|
| 1590 |
|
#en |
| 1591 |
|
The owner is the <a href=#url>URL</a> that redirected to the |
| 1592 |
|
<a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a>. |
| 1593 |
|
#ja |
| 1594 |
|
所有者は <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> |
| 1595 |
|
にリダイレクトした <a href=#url>URL</a> です。 |
| 1596 |
|
|
| 1597 |
|
#en |
| 1598 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> in an attribute |
| 1599 |
|
#ja |
| 1600 |
|
スクリプトが属性中の <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> の場合 |
| 1601 |
|
|
| 1602 |
|
#en |
| 1603 |
|
The owner is the <code>Document</code> of the element on |
| 1604 |
|
which the attribute is found. |
| 1605 |
|
#ja |
| 1606 |
|
所有者は属性がある要素の <code>Document</code> です。 |
| 1607 |
|
|
| 1608 |
|
#en |
| 1609 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> in a style sheet |
| 1610 |
|
#ja |
| 1611 |
|
スクリプトがスタイル・シート中の <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> の場合 |
| 1612 |
|
|
| 1613 |
|
#en |
| 1614 |
|
The owner is the <a href=#url>URL</a> of the style sheet. |
| 1615 |
|
#ja |
| 1616 |
|
所有者はスタイル・シートの <a href=#url>URL</a> です。 |
| 1617 |
|
|
| 1618 |
|
#en |
| 1619 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> to which a <a href=#browsing-context>browsing |
| 1620 |
|
context</a> is being <a href=#navigate title=navigate>navigated</a>, |
| 1621 |
|
the URL having been provided by the user (e.g. by using a |
| 1622 |
|
<i>bookmarklet</i>) |
| 1623 |
|
#ja |
| 1624 |
|
スクリプトが <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> であって、 |
| 1625 |
|
<a href=#browsing-context>閲覧文脈</a>がその URL へ<a href=#navigate title=navigate>ナビゲーション</a>されていて、 |
| 1626 |
|
その URL が利用者によって |
| 1627 |
|
(例えば<i>ブックマークレット</i>を使うことによって) |
| 1628 |
|
提供されたものである場合 |
| 1629 |
|
|
| 1630 |
|
#en |
| 1631 |
|
The owner is the <code>Document</code> of the <a href=#browsing-context>browsing |
| 1632 |
|
context</a>'s <a href=#active-document>active document</a>. |
| 1633 |
|
#ja |
| 1634 |
|
所有者は<a href=#browsing-context>閲覧文脈</a>の<a href=#active-document>活性文書</a>の <code>Document</code> |
| 1635 |
|
です。 |
| 1636 |
|
|
| 1637 |
|
#en |
| 1638 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> to which a <a href=#browsing-context>browsing |
| 1639 |
|
context</a> is being <a href=#navigate title=navigate>navigated</a>, |
| 1640 |
|
the URL having been declared in markup |
| 1641 |
|
#ja |
| 1642 |
|
スクリプトが <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> であって、 |
| 1643 |
|
<a href=#browsing-context>閲覧文脈</a>がその URL に<a href=#navigate title=navigate>ナビゲーション</a>されており、 |
| 1644 |
|
その URL がマーク付け中に宣言されていた場合 |
| 1645 |
|
|
| 1646 |
|
#en |
| 1647 |
|
The owner is the <code>Document</code> of the element |
| 1648 |
|
(e.g. an <code><a href=#the-a-element>a</a></code> or <code><a href=#the-area-element>area</a></code> element) that |
| 1649 |
|
declared the URL. |
| 1650 |
|
#ja |
| 1651 |
|
所有者は当該 URL を宣言している要素 |
| 1652 |
|
(例えば <code><a href=#the-a-element>a</a></code> 要素や |
| 1653 |
|
<code><a href=#the-area-element>area</a></code> 要素) |
| 1654 |
|
の <code>Document</code> です。 |
| 1655 |
|
|
| 1656 |
|
#en |
| 1657 |
|
If a script is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> to which a <a href=#browsing-context>browsing |
| 1658 |
|
context</a> is being <a href=#navigate title=navigate>navigated</a>, |
| 1659 |
|
the URL having been provided by script |
| 1660 |
|
#ja |
| 1661 |
|
スクリプトが <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code> URL</a> であって、その URL |
| 1662 |
|
に<a href=#browsing-context>閲覧文脈</a>が<a href=#navigate title=navigate>ナビゲーション</a>されており、 |
| 1663 |
|
その URL がスクリプトにより提供された場合 |
| 1664 |
|
|
| 1665 |
|
#en |
| 1666 |
|
The owner is the script that provided the URL. |
| 1667 |
|
#ja |
| 1668 |
|
所有者は当該 URL を提供したスクリプトです。 |
| 1669 |
|
|
| 1670 |
|
#en |
| 1671 |
|
The <a href=#origin-0>origin</a> of the script is then equal to the |
| 1672 |
|
<a href=#origin-0>origin</a> of the owner, and the <a href=#effective-script-origin>effective script |
| 1673 |
|
origin</a> of the script is equal to the <a href=#effective-script-origin>effective script |
| 1674 |
|
origin</a> of the owner. |
| 1675 |
|
#ja |
| 1676 |
|
さて、スクリプトの<a href=#origin-0>起源</a>は所有者の<a href=#origin-0>起源</a>と等しく、 |
| 1677 |
|
スクリプトの<a href=#effective-script-origin>実効スクリプト起源</a>は所有者の<a href=#effective-script-origin>実効スクリプト起源</a>と等しいです。 |
| 1678 |
|
|
| 1679 |
|
#en |
| 1680 |
|
For <code>Document</code> objects and images |
| 1681 |
|
#ja |
| 1682 |
|
<code>Document</code> オブジェクトと画像に関して |
| 1683 |
|
|
| 1684 |
|
#en |
| 1685 |
|
If a <code>Document</code> is in a |
| 1686 |
|
<a href=#browsing-context>browsing context</a> whose <a href=#sandboxed-origin-browsing-context-flag>sandboxed origin |
| 1687 |
|
browsing context flag</a> is set |
| 1688 |
|
#ja |
| 1689 |
|
<code>Document</code> が<a href=#sandboxed-origin-browsing-context-flag>砂箱化起源閲覧文脈旗</a>の設定された<a href=#browsing-context>閲覧文脈</a>中にある場合 |
| 1690 |
|
|
| 1691 |
|
#en |
| 1692 |
|
The <a href=#origin-0>origin</a> is a globally unique identifier |
| 1693 |
|
assigned when the <code>Document</code> is created. |
| 1694 |
|
#ja |
| 1695 |
|
<a href=#origin-0>起源</a>は <code>Document</code> が作成された時に割り当てられた大域的に固有な識別子です。 |
| 1696 |
|
|
| 1697 |
|
#en |
| 1698 |
|
If a <code>Document</code> or image was returned by the |
| 1699 |
|
<code>XMLHttpRequest</code> API |
| 1700 |
|
#ja |
| 1701 |
|
<code>Document</code> や画像が <code>XMLHttpRequest</code> API |
| 1702 |
|
により返された場合 |
| 1703 |
|
|
| 1704 |
|
#en |
| 1705 |
|
The <a href=#origin-0>origin</a> and <a href=#effective-script-origin>effective script |
| 1706 |
|
origin</a> are equal to the <a href=#origin-0>origin</a> and |
| 1707 |
|
<a href=#effective-script-origin>effective script origin</a> of the <code>Document</code> |
| 1708 |
|
object that was the <a href=#active-document>active document</a> of the browsing context of the |
| 1709 |
|
<code><a href=#window>Window</a></code> object from which the |
| 1710 |
|
<code>XMLHttpRequest</code> constructor was invoked. (That is, |
| 1711 |
|
they track the <code>Document</code> to which the |
| 1712 |
|
<code>XMLHttpRequest</code> object's <a href=http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#document-pointer><code>Document</code> |
| 1713 |
|
pointer</a> pointed when it was created.) <a href=#refsXHR>[XHR]</a> |
| 1714 |
|
#ja |
| 1715 |
|
<a href=#origin-0>起源</a>と<a href=#effective-script-origin>実効スクリプト起源</a>は、 |
| 1716 |
|
<code>XMLHttpRequest</code> 構築子が呼び出された <code><a href=#window>Window</a></code> |
| 1717 |
|
オブジェクトの閲覧文脈の<a href=#active-document>活性文書</a>であった <code>Document</code> |
| 1718 |
|
の<a href=#origin-0>起源</a>と<a href=#effective-script-origin>実効スクリプト起源</a>と等しいです。 |
| 1719 |
|
(つまり、 <code>XMLHttpRequest</code> オブジェクトが作成された時の <a href=http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#document-pointer><code>Document</code> |
| 1720 |
|
指示子</a>が指していた <code>Document</code> を追跡します。) |
| 1721 |
|
|
| 1722 |
|
#en |
| 1723 |
|
If a <code>Document</code> or image was generated from a |
| 1724 |
|
<a href=#javascript-protocol title="javascript protocol"><code>javascript:</code> |
| 1725 |
|
URL</a> |
| 1726 |
|
#ja |
| 1727 |
|
<code>Document</code> や画像が <a href=#javascript-protocol title="javascript protocol"><code>javascript:</code> |
| 1728 |
|
URL</a> により生成された場合 |
| 1729 |
|
|
| 1730 |
|
#en |
| 1731 |
|
The <a href=#origin-0>origin</a> is equal to the <a href=#origin-0>origin</a> |
| 1732 |
|
of the script of that <a href=#javascript-protocol title="javascript |
| 1733 |
|
protocol"><code>javascript:</code> URL</a>. |
| 1734 |
|
#ja |
| 1735 |
|
<a href=#origin-0>起源</a>は当該 <a href=#javascript-protocol title="javascript |
| 1736 |
|
protocol"><code>javascript:</code> URL</a> のスクリプトの<a href=#origin-0>起源</a>と等しいです。 |
| 1737 |
|
|
| 1738 |
|
#en |
| 1739 |
|
If a <code>Document</code> or image was served over the |
| 1740 |
|
network and has an address that uses a URL scheme with a |
| 1741 |
|
server-based naming authority |
| 1742 |
|
#ja |
| 1743 |
|
<code>Document</code> や画像がネットワーク上で供給されたもので、鯖型命名局を用いる URL |
| 1744 |
|
scheme を使った番地を有する場合 |
| 1745 |
|
|
| 1746 |
|
#en |
| 1747 |
|
The <a href=#origin-0>origin</a> is the <a href=#origin-0>origin</a> of the |
| 1748 |
|
<span title="the document's address">address</span><!-- XXXDOCURL |
| 1749 |
|
--> of the <code>Document</code> or image. |
| 1750 |
|
#ja |
| 1751 |
|
<a href=#origin-0>起源</a>は <code>Document</code> や画像の<span title="the document's address">番地</span><!-- XXXDOCURL |
| 1752 |
|
-->の<a href=#origin-0>起源</a>です。 |
| 1753 |
|
|
| 1754 |
|
#en |
| 1755 |
|
If a <code>Document</code> or image was generated from a |
| 1756 |
|
<code title="">data:</code> URL that was returned as the location |
| 1757 |
|
of an HTTP redirect (or equivalent in other protocols) |
| 1758 |
|
#ja |
| 1759 |
|
<code>Document</code> や画像が HTTP リダイレクト (や他のプロトコルの等価なもの) |
| 1760 |
|
の所在として返された <code title="">data:</code> URL により生成された場合 |
| 1761 |
|
|
| 1762 |
|
#en |
| 1763 |
|
The <a href=#origin-0>origin</a> is the <a href=#origin-0>origin</a> of the |
| 1764 |
|
<a href=#url>URL</a> that redirected to the <code title="">data:</code> URL. |
| 1765 |
|
#ja |
| 1766 |
|
<a href=#origin-0>起源</a>は <code title="">data:</code> URL にリダイレクトした |
| 1767 |
|
<a href=#url>URL</a> の<a href=#origin-0>起源</a>です。 |
| 1768 |
|
|
| 1769 |
|
#en |
| 1770 |
|
If a <code>Document</code> or image was generated from a |
| 1771 |
|
<code title="">data:</code> URL found in another |
| 1772 |
|
<code>Document</code> or in a script |
| 1773 |
|
#ja |
| 1774 |
|
<code>Document</code> や画像が他の <code>Document</code> かスクリプトの中にあった <code title="">data:</code> URL |
| 1775 |
|
から生成された場合 |
| 1776 |
|
|
| 1777 |
|
#en |
| 1778 |
|
The <a href=#origin-0>origin</a> is the <a href=#origin-0>origin</a> of the |
| 1779 |
|
<code>Document</code> or script in which the <code title="">data:</code> URL was found. |
| 1780 |
|
#ja |
| 1781 |
|
<a href=#origin-0>起源</a>は当該 <code title="">data:</code> URL |
| 1782 |
|
があった <code>Document</code> やスクリプトの<a href=#origin-0>起源</a>です。 |
| 1783 |
|
|
| 1784 |
|
#en |
| 1785 |
|
If a <code>Document</code> has the <span title="the |
| 1786 |
|
document's address">address</span><!-- XXXDOCURL --> |
| 1787 |
|
"<code><a href=#about:blank>about:blank</a></code>" |
| 1788 |
|
#ja |
| 1789 |
|
<code>Document</code> が<span title="the |
| 1790 |
|
document's address">番地</span><!-- XXXDOCURL -->「<code><a href=#about:blank>about:blank</a></code>」 |
| 1791 |
|
を持つ場合 |
| 1792 |
|
|
| 1793 |
|
#en |
| 1794 |
|
The <a href=#origin-0>origin</a> of the <code>Document</code> is <a href=#about-blank-origin>the <span>origin</span> it was |
| 1795 |
|
assigned when its browsing context was created</a>. |
| 1796 |
|
#ja |
| 1797 |
|
<code>Document</code> の<a href=#origin-0>起源</a>は<a href=#about-blank-origin>当該閲覧文脈が作成された時に割り当てられた<span>起源</span></a>です。 |
| 1798 |
|
|
| 1799 |
|
#en |
| 1800 |
|
If a <code>Document</code> or image was obtained in some |
| 1801 |
|
other manner (e.g. a <code title="">data:</code> URL typed in by |
| 1802 |
|
the user, a <code>Document</code> created using the <code title="">createDocument()</code> API, a <code title="">data:</code> URL returned as the location of an HTTP |
| 1803 |
|
redirect, etc) |
| 1804 |
|
#ja |
| 1805 |
|
<code>Document</code> や画像がその他の方法で得られた場合 (例えば利用者によって打鍵された <code title="">data:</code> URL |
| 1806 |
|
の場合、 <code title="">createDocument()</code> API を使って作られた <code>Document</code> |
| 1807 |
|
の場合、 HTTP リダイレクトの所在として返された <code title="">data:</code> URL の場合など) |
| 1808 |
|
|
| 1809 |
|
#en |
| 1810 |
|
The <a href=#origin-0>origin</a> is a globally unique identifier |
| 1811 |
|
assigned when the <code>Document</code> or image is created. |
| 1812 |
|
#ja |
| 1813 |
|
<a href=#origin-0>起源</a>は <code>Document</code> や画像が作成された時に割り当てられた大域的に固有な識別子です。 |
| 1814 |
|
|
| 1815 |
|
#en |
| 1816 |
|
When a <code>Document</code> is created, unless stated |
| 1817 |
|
otherwise above, its <a href=#effective-script-origin>effective script origin</a> is |
| 1818 |
|
initialized to the <a href=#origin-0>origin</a> of the |
| 1819 |
|
<code>Document</code>. However, the <code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code> attribute can |
| 1820 |
|
be used to change it. |
| 1821 |
|
#ja |
| 1822 |
|
<code>Document</code> が作成された時、既に述べた場合を除き、 |
| 1823 |
|
<a href=#effective-script-origin>実効スクリプト起源</a>は <code>Document</code> |
| 1824 |
|
の<a href=#origin-0>起源</a>に初期化されます。しかし、 |
| 1825 |
|
<code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code> |
| 1826 |
|
を使ってこれを変更することができます。 |
| 1827 |
|
|
| 1828 |
|
#en |
| 1829 |
|
The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string |
| 1830 |
|
obtained by applying the following algorithm to the given |
| 1831 |
|
<a href=#origin-0>origin</a>: |
| 1832 |
|
#ja |
| 1833 |
|
<dfn id=unicode-serialization-of-an-origin>起源の Unicode 直列化</dfn>は、 |
| 1834 |
|
与えられた<a href=#origin-0>起源</a>に次の算法を適用することによって得られる文字列です。 |
| 1835 |
|
|
| 1836 |
|
#en |
| 1837 |
|
Otherwise, let <var title="">result</var> be the scheme part |
| 1838 |
|
of the <a href=#origin-0>origin</a> tuple. |
| 1839 |
|
#ja |
| 1840 |
|
そうでない場合、 <var title="">result</var> を、<a href=#origin-0>origin</a> |
| 1841 |
|
組の scheme 部分とします。 |
| 1842 |
|
|
| 1843 |
|
#en |
| 1844 |
|
Append the string "<code title="">://</code>" to <var title="">result</var>. |
| 1845 |
|
#ja |
| 1846 |
|
文字列「<code title="">://</code>」を <var title="">result</var> の末尾に追加します。 |
| 1847 |
|
|
| 1848 |
|
#en |
| 1849 |
|
Apply the IDNA ToUnicode algorithm to each component of the |
| 1850 |
|
host part of the <a href=#origin-0>origin</a> tuple, and append the results |
| 1851 |
|
— each component, in the same order, separated by U+002E FULL |
| 1852 |
|
STOP characters (".") — to <var title="">result</var>. |
| 1853 |
|
#ja |
| 1854 |
|
IDNA ToUnicode 算法を <a href=#origin-0>origin</a> 組の host 部分の各部品に適用し、 |
| 1855 |
|
各部品の結果を同じ順序で U+002E FULL |
| 1856 |
|
STOP 文字 (".") で分離して <var title="">result</var> の末尾に追加します。 |
| 1857 |
|
|
| 1858 |
|
#en |
| 1859 |
|
If the port part of the <a href=#origin-0>origin</a> tuple gives a port |
| 1860 |
|
that is different from the default port for the protocol given by |
| 1861 |
|
the scheme part of the <a href=#origin-0>origin</a> tuple, then append a |
| 1862 |
|
U+003A COLON character (":") and the given port, in base ten, to |
| 1863 |
|
<var title="">result</var>. |
| 1864 |
|
#ja |
| 1865 |
|
<a href=#origin-0>起源</a>組の port 部分が <a href=#origin-0>起源</a> |
| 1866 |
|
組の scheme 部分で与えられるプロトコルの既定のポートと異なるポートである場合、 |
| 1867 |
|
U+003A COLON 文字 (":") と与えられたポートを十進数で <var title="">result</var> |
| 1868 |
|
の末尾に追加します。 |
| 1869 |
|
|
| 1870 |
|
#en |
| 1871 |
|
The <dfn id=ascii-serialization-of-an-origin>ASCII serialization of an origin</dfn> is the string |
| 1872 |
|
obtained by applying the following algorithm to the given |
| 1873 |
|
<a href=#origin-0>origin</a>: |
| 1874 |
|
#ja |
| 1875 |
|
<dfn id=ascii-serialization-of-an-origin>起源の ASCII 直列化</dfn>は、 |
| 1876 |
|
与えられた<a href=#origin-0>起源</a>に次の算法を適用して得られる文字列です。 |
| 1877 |
|
|
| 1878 |
|
#en |
| 1879 |
|
Apply the IDNA ToASCII algorithm the host part of the |
| 1880 |
|
<a href=#origin-0>origin</a> tuple, with both the AllowUnassigned and |
| 1881 |
|
UseSTD3ASCIIRules flags set, and append the results <var title="">result</var>. |
| 1882 |
|
#ja |
| 1883 |
|
<a href=#origin-0>起源</a>組の host 部分に ToASCII 算法を AllowUnassigned |
| 1884 |
|
旗と UseSTD3ASCIIRules 旗の両方を設定して適用し、結果を <var title="">result</var> |
| 1885 |
|
の末尾に追加します。 |
| 1886 |
|
|
| 1887 |
|
#en |
| 1888 |
|
If ToASCII fails to convert one of the components of the |
| 1889 |
|
string, e.g. because it is too long or because it contains invalid |
| 1890 |
|
characters, then return the empty string and abort these steps. <a href=#refsRFC3490>[RFC3490]</a> |
| 1891 |
|
#ja |
| 1892 |
|
ToASCII が文字列の部品のいずれかの変換に失敗した場合、 |
| 1893 |
|
例えば長過ぎたり非妥当な文字を含んだりして失敗した場合には、 |
| 1894 |
|
空文字列を返し、これらの段階を停止します。 <a href=#refsRFC3490>[RFC3490]</a> |
| 1895 |
|
|
| 1896 |
|
#en |
| 1897 |
|
Two <a href=#origin-0 title=origin>origins</a> are said to be the |
| 1898 |
|
<dfn id=same-origin>same origin</dfn> if the following algorithm returns true: |
| 1899 |
|
#ja |
| 1900 |
|
次の算法が真を返す場合、2つの<a href=#origin-0 title=origin>起源</a>は<dfn id=same-origin>同起源</dfn>であるといいます。 |
| 1901 |
|
|
| 1902 |
|
#en |
| 1903 |
|
Let <var title="">A</var> be the first <a href=#origin-0>origin</a> |
| 1904 |
|
being compared, and <var title="">B</var> be the second |
| 1905 |
|
<a href=#origin-0>origin</a> being compared. |
| 1906 |
|
#ja |
| 1907 |
|
<var title="">A</var> を比較する最初の<a href=#origin-0>起源</a>とし、 |
| 1908 |
|
<var title="">B</var> を比較する2つ目の<a href=#origin-0>起源</a>とします。 |
| 1909 |
|
|
| 1910 |
|
#en |
| 1911 |
|
If <var title="">A</var> and <var title="">B</var> are both |
| 1912 |
|
opaque identifiers, and their value is equal, then return |
| 1913 |
|
true. |
| 1914 |
|
#ja |
| 1915 |
|
<var title="">A</var> と <var title="">B</var> の両方が不透明な識別子であり、 |
| 1916 |
|
両者の値が等しければ、真を返します。 |
| 1917 |
|
|
| 1918 |
|
#en |
| 1919 |
|
Otherwise, if either <var title="">A</var> or <var title="">B</var> or both are opaque identifiers, return |
| 1920 |
|
false. |
| 1921 |
|
#ja |
| 1922 |
|
そうでない場合、 <var title="">A</var> と <var title="">B</var> の一方または両方が不透明な文字列であれば、 |
| 1923 |
|
偽を返します。 |
| 1924 |
|
|
| 1925 |
|
#en |
| 1926 |
|
If <var title="">A</var> and <var title="">B</var> have |
| 1927 |
|
scheme components that are not identical, return false. |
| 1928 |
|
#ja |
| 1929 |
|
<var title="">A</var> と <var title="">B</var> の scheme 部品が同一でない場合、 |
| 1930 |
|
偽を返します。 |
| 1931 |
|
|
| 1932 |
|
#en |
| 1933 |
|
If <var title="">A</var> and <var title="">B</var> have host |
| 1934 |
|
components that are not identical, return false. |
| 1935 |
|
#ja |
| 1936 |
|
<var title="">A</var> と <var title="">B</var> の host 部品が同一でない場合、 |
| 1937 |
|
偽を返します。 |
| 1938 |
|
|
| 1939 |
|
#en |
| 1940 |
|
If <var title="">A</var> and <var title="">B</var> have port |
| 1941 |
|
components that are not identical, return false. |
| 1942 |
|
#ja |
| 1943 |
|
<var title="">A</var> と <var title="">B</var> の port 部品が同一でない場合、 |
| 1944 |
|
偽を返します。 |
| 1945 |
|
|
| 1946 |
|
#en |
| 1947 |
|
If either <var title="">A</var> or <var title="">B</var> |
| 1948 |
|
have additional data, but that data is not identical for both, |
| 1949 |
|
return false. |
| 1950 |
|
#ja |
| 1951 |
|
<var title="">A</var> と <var title="">B</var> のいずれかが追加データを持ち、 |
| 1952 |
|
そのデータが両者同一でない場合、 |
| 1953 |
|
偽を返します。 |
| 1954 |
|
|
| 1955 |
|
#pattern |
| 1956 |
|
<span class=secno>* </span>Relaxing the same-origin restriction |
| 1957 |
|
#ja |
| 1958 |
|
<span class=secno>$1 </span>同起源制限の緩和 |
| 1959 |
|
|
| 1960 |
|
#en |
| 1961 |
|
The <dfn id=dom-document-domain title=dom-document-domain><code>domain</code></dfn> |
| 1962 |
|
attribute on <code>Document</code> objects must be initialized to |
| 1963 |
|
<a href="#the-document's-domain">the document's domain</a>, if it has one, and the empty |
| 1964 |
|
string otherwise. On getting, the attribute must return its current |
| 1965 |
|
value, unless the document was created by |
| 1966 |
|
<code>XMLHttpRequest</code>, in which case it must throw an |
| 1967 |
|
<code>INVALID_ACCESS_ERR</code> exception. On setting, the user |
| 1968 |
|
agent must run the following algorithm: |
| 1969 |
|
#ja |
| 1970 |
|
<code>Document</code> オブジェクトの <dfn id=dom-document-domain title=dom-document-domain><code>domain</code></dfn> |
| 1971 |
|
属性は、<a href="#the-document's-domain">文書のドメイン</a>を持つ場合にはそれに、 |
| 1972 |
|
そうでない場合には空文字列に初期化されなければ[[MUST:なりません]]。 |
| 1973 |
|
取得時、属性は現在の値を返さなければ[[MUST:なりません]]。 |
| 1974 |
|
ただし、文書が <code>XMLHttpRequest</code> により作成された場合は例外で、 |
| 1975 |
|
その場合は <code>INVALID_ACCESS_ERR</code> 例外を投げなければ[[MUST:なりません]]。 |
| 1976 |
|
設定時、利用者エージェントは次の算法を走らせなければ[[MUST:なりません]]。 |
| 1977 |
|
|
| 1978 |
|
#en |
| 1979 |
|
If the document was created by <code>XMLHttpRequest</code>, |
| 1980 |
|
throw an <code>INVALID_ACCESS_ERR</code> exception and abort these |
| 1981 |
|
steps. |
| 1982 |
|
#ja |
| 1983 |
|
文書が <code>XMLHttpRequest</code> により作成された場合、 |
| 1984 |
|
<code>INVALID_ACCESS_ERR</code> 例外を投げ、 |
| 1985 |
|
これらの段階を停止しなければ[[MUST:なりません]]。 |