| 1757 |
of an HTTP redirect (or equivalent in other protocols) |
of an HTTP redirect (or equivalent in other protocols) |
| 1758 |
#ja |
#ja |
| 1759 |
<code>Document</code> や画像が HTTP リダイレクト (や他のプロトコルの等価なもの) |
<code>Document</code> や画像が HTTP リダイレクト (や他のプロトコルの等価なもの) |
|
の所在として返された <code title="">data:</code> URL により生成された場合 |
|
| 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:なりません]]。 |
| 1986 |
|
|
| 1987 |
|
#en |
| 1988 |
|
Apply the IDNA ToASCII algorithm to the new value, with both |
| 1989 |
|
the AllowUnassigned and UseSTD3ASCIIRules flags set. Let <var title="">new value</var> be the result of the ToASCII |
| 1990 |
|
algorithm. |
| 1991 |
|
#ja |
| 1992 |
|
新しい値に IDNA ToASCII 算法を、 AllowUnassigned 旗と UseSTD3ASCIIRules |
| 1993 |
|
旗の両方を設定して適用します。 <var title="">new value</var> を、 |
| 1994 |
|
ToASCII 算法の結果とします。 |
| 1995 |
|
|
| 1996 |
|
#en |
| 1997 |
|
If ToASCII fails to convert one of the components of the |
| 1998 |
|
string, e.g. because it is too long or because it contains invalid |
| 1999 |
|
characters, then throw a <a href=#security-exception>security exception</a> and abort |
| 2000 |
|
these steps. <a href=#refsRFC3490>[RFC3490]</a> |
| 2001 |
|
#ja |
| 2002 |
|
ToASCII が文字列の部品のいずれかの変換に失敗した場合、 |
| 2003 |
|
例えば長過ぎたり非妥当な文字を含んでいたりして失敗した場合には、 |
| 2004 |
|
<a href=#security-exception>保安性例外</a>を投げ、 |
| 2005 |
|
これらの段階を停止します。 <a href=#refsRFC3490>[RFC3490]</a> |
| 2006 |
|
|
| 2007 |
|
#en |
| 2008 |
|
If <var title="">new value</var> is not exactly equal to the |
| 2009 |
|
current value of the <code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code> attribute, then |
| 2010 |
|
run these substeps: |
| 2011 |
|
#ja |
| 2012 |
|
<var title="">new value</var> が <code title=dom-document-domain><a href=#dom-document-domain>document.domain</a></code> 属性の現在の値と正確に等しくない場合、 |
| 2013 |
|
次の部分段階を走らせます。 |
| 2014 |
|
|
| 2015 |
|
#en |
| 2016 |
|
If the current value is an IP address, throw a <a href=#security-exception>security |
| 2017 |
|
exception</a> and abort these steps. |
| 2018 |
|
#ja |
| 2019 |
|
現在の値が IP 番地の場合、<a href=#security-exception>保安性例外</a>を投げ、 |
| 2020 |
|
これらの段階を停止します。 |
| 2021 |
|
|
| 2022 |
|
#en |
| 2023 |
|
If <var title="">new value</var>, prefixed by a U+002E FULL |
| 2024 |
|
STOP ("."), does not exactly match the end of the current value, |
| 2025 |
|
throw a <a href=#security-exception>security exception</a> and abort these |
| 2026 |
|
steps. |
| 2027 |
|
#ja |
| 2028 |
|
<var title="">new value</var> に U+002E FULL |
| 2029 |
|
STOP (".") を接頭辞として連結したものが現在の値の終わりに正確に一致しない場合、 |
| 2030 |
|
<a href=#security-exception>保安性例外</a>を投げ、これらの段階を停止します。 |
| 2031 |
|
|
| 2032 |
|
#en |
| 2033 |
|
Set the attribute's value to <var title="">new value</var>. |
| 2034 |
|
#ja |
| 2035 |
|
属性の値を <var title="">new value</var> に設定します。 |
| 2036 |
|
|
| 2037 |
|
#en |
| 2038 |
|
Set the host part of the <a href=#effective-script-origin>effective script origin</a> |
| 2039 |
|
tuple of the <code>Document</code> to <var title="">new |
| 2040 |
|
value</var>. |
| 2041 |
|
#ja |
| 2042 |
|
<code>Document</code> の<a href=#effective-script-origin>実効スクリプト起源</a>の組の host |
| 2043 |
|
部分を <var title="">new |
| 2044 |
|
value</var> に設定します。 |