| 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 |
|
偽を返します。 |