| 1267 |
#ja |
#ja |
| 1268 |
簡単のため、文書が利用者に対してレンダリングされる方法に言及する際に<i>示す</i>、<i>表示する</i>、<i>可視である</i>といった用語を使うことがあります。 |
簡単のため、文書が利用者に対してレンダリングされる方法に言及する際に<i>示す</i>、<i>表示する</i>、<i>可視である</i>といった用語を使うことがあります。 |
| 1269 |
これらの語を使っていても、視覚的な媒体を仮定しているわけではありません。 |
これらの語を使っていても、視覚的な媒体を仮定しているわけではありません。 |
|
他の媒体に対しても等価な方法で適用されると解釈し[[MUST:なければなりません]]。 |
|
| 1270 |
|
他の媒体に対しても等価な方法で適用されると解釈し[[MUST:なければなりません]]。 |
| 1271 |
|
|
| 1272 |
|
#en |
| 1273 |
|
The <code>Document</code> of a <code>Node</code> (such as an |
| 1274 |
|
element) is the <code>Document</code> that the <code>Node</code>'s |
| 1275 |
|
<code title="">ownerDocument</code> DOM attribute returns. |
| 1276 |
|
#ja |
| 1277 |
|
<code>Node</code> (要素など) の <code>Document</code> とは、 |
| 1278 |
|
当該 <code>Node</code> の <code title="">ownerDocument</code> DOM |
| 1279 |
|
属性が返す <code>Document</code> です。 |
| 1280 |
|
|
| 1281 |
|
#en |
| 1282 |
|
An element is said to have been <dfn id=insert-an-element-into-a-document title="insert an element |
| 1283 |
|
into a document">inserted into a document</dfn> when its <a href=#root-element>root |
| 1284 |
|
element</a> changes and is now the document's <a href=#root-element>root |
| 1285 |
|
element</a>. If a <code>Node</code> is in a <code>Document</code> |
| 1286 |
|
then that <code>Document</code> is always the <code>Node</code>'s |
| 1287 |
|
<code>Document</code>, and the <code>Node</code>'s <code title="">ownerDocument</code> DOM attribute thus always returns that |
| 1288 |
|
<code>Document</code>. |
| 1289 |
|
#ja |
| 1290 |
|
要素は、その<a href=#root-element>根要素</a>が変化し、 |
| 1291 |
|
<a href=#root-element>根要素</a>が文書の<a href=#root-element>根要素</a>となった時、 |
| 1292 |
|
<dfn id=insert-an-element-into-a-document title="insert an element |
| 1293 |
|
into a document">文書に挿入された</dfn>といいます。 |
| 1294 |
|
|
| 1295 |
|
#en |
| 1296 |
|
A DOM attribute is said to be <i>getting</i> when its value is |
| 1297 |
|
being retrieved (e.g. by author script), and is said to be |
| 1298 |
|
<i>setting</i> when a new value is assigned to it. |
| 1299 |
|
#ja |
| 1300 |
|
DOM 属性は、その値が (例えば著者のスクリプトによって) 取り出される時に<i>取得時</i>であるといい、 |
| 1301 |
|
新たな値が割り当てられる時に<i>設定時</i>であるといいます。 |
| 1302 |
|
|
| 1303 |
|
#en |
| 1304 |
|
The terms <i>fire</i> and <i>dispatch</i> are used |
| 1305 |
|
interchangeably in the context of events, as in the DOM Events |
| 1306 |
|
specifications. <a href=#refsDOM3EVENTS>[DOM3EVENTS]</a> |
| 1307 |
|
#ja |
| 1308 |
|
用語<i>発火</i>・<i>発送</i>は、事象についての文脈では、 |
| 1309 |
|
DOM 事象仕様書にある通りに、交換可能なものとして用います。 <a href=#refsDOM3EVENTS>[DOM3EVENTS]</a> |
| 1310 |
|
|
| 1311 |
|
#pattern |
| 1312 |
|
<span class=secno>* </span>Character encodings |
| 1313 |
|
#ja |
| 1314 |
|
<span class=secno>$1 </span>文字符号化 |
| 1315 |
|
|
| 1316 |
|
#en |
| 1317 |
|
An <dfn id=ascii-compatible-character-encoding>ASCII-compatible character encoding</dfn> is one that is |
| 1318 |
|
a superset of US-ASCII (specifically, ANSI_X3.4-1968) for bytes in |
| 1319 |
|
the set 0x09, 0x0A, 0x0C, 0x0D, 0x20 - 0x22, 0x26, 0x27, 0x2C - |
| 1320 |
|
0x3F, 0x41 - 0x5A, and 0x61 - 0x7A<!-- is that list ok? do any |
| 1321 |
|
character sets we want to support do things outside that range? |
| 1322 |
|
-->. <!-- XXX #refs RFC1345 ? --> |
| 1323 |
|
#ja |
| 1324 |
|
<dfn id=ascii-compatible-character-encoding>ASCII 互換文字符号化</dfn>とは、 |
| 1325 |
|
集合 0x09, 0x0A, 0x0C, 0x0D, 0x20~0x22, 0x26, 0x27, 0x2C~0x3F, 0x41~0x5A, 0x61~0x7A<!-- is that list ok? do any |
| 1326 |
|
character sets we want to support do things outside that range? |
| 1327 |
|
--> |
| 1328 |
|
のバイトが US-ASCII (明確には ANSI_X3.4-1968) の超集合であるようなものです。 |
| 1329 |
|
<!-- XXX #refs RFC1345 ? --> |
| 1330 |
|
|
| 1331 |
|
#pattern |
| 1332 |
|
<span class=secno>* </span>Case-sensitivity and string comparison |
| 1333 |
|
#ja |
| 1334 |
|
<span class=secno>$1 </span>大文字・小文字と文字列の比較 |
| 1335 |
|
|
| 1336 |
|
#en |
| 1337 |
|
A string <var title="">pattern</var> is a <dfn id=prefix-match>prefix match</dfn> |
| 1338 |
|
for a string <var title="">s</var> when <var title="">pattern</var> |
| 1339 |
|
is not longer than <var title="">s</var> and truncating <var title="">s</var> to <var title="">pattern</var>'s length leaves the |
| 1340 |
|
two strings as matches of each other. |
| 1341 |
|
#ja |
| 1342 |
|
文字列 <var title="">pattern</var> が文字列 <var title="">s</var> |
| 1343 |
|
の<dfn id=prefix-match>接頭辞一致</dfn>であるのは、 |
| 1344 |
|
<var title="">pattern</var> が <var title="">s</var> より長くなく、 |
| 1345 |
|
<var title="">s</var> を <var title="">pattern</var> の長さに短縮すると両文字列が互いに一致する時です。 |
| 1346 |
|
|
| 1347 |
|
#en |
| 1348 |
|
The <dfn id=white_space title=White_Space>White_Space characters</dfn> are |
| 1349 |
|
those that have the Unicode property "White_Space". <a href=#refsUNICODE>[UNICODE]</a> |
| 1350 |
|
#ja |
| 1351 |
|
<dfn id=white_space title=White_Space>White_Space 文字</dfn>は、 |
| 1352 |
|
Unicode 特性「White_Space」を持つ文字です。 <a href=#refsUNICODE>[UNICODE]</a> |
| 1353 |
|
|
| 1354 |
|
#en |
| 1355 |
|
The step <dfn id=skip-whitespace>skip whitespace</dfn> means that the user agent |
| 1356 |
|
must <a href=#collect-a-sequence-of-characters>collect a sequence of characters</a> that are <a href=#space-character title="space character">space characters</a>. The step <dfn id=skip-white_space-characters>skip |
| 1357 |
|
White_Space characters</dfn> means that the user agent must |
| 1358 |
|
<a href=#collect-a-sequence-of-characters>collect a sequence of characters</a> that are |
| 1359 |
|
<a href=#white_space>White_Space</a> characters. In both cases, the collected |
| 1360 |
|
characters are not used. <a href=#refsUNICODE>[UNICODE]</a> |
| 1361 |
|
#ja |
| 1362 |
|
段階<dfn id=skip-whitespace>空白を飛ばす</dfn>は、 |
| 1363 |
|
利用者エージェントが<a href=#space-character title="space character">空白文字</a>であるような<a href=#collect-a-sequence-of-characters>文字の列を収集</a>し[[MUST:なければならない]]ことを意味します。 |
| 1364 |
|
段階 <dfn id=skip-white_space-characters>White_Space 文字を飛ばす</dfn>は、 |
| 1365 |
|
利用者エージェントが |
| 1366 |
|
<a href=#white_space>White_Space</a> |
| 1367 |
|
文字であるような<a href=#collect-a-sequence-of-characters>文字の列を収集</a>し[[MUST:なければならない]]ことを意味します。 |
| 1368 |
|
いずれの場合も、収集した文字は使いません。 <a href=#refsUNICODE>[UNICODE]</a> |
| 1369 |
|
|
| 1370 |
|
#en |
| 1371 |
|
When a user agent is to <dfn id=strip-line-breaks>strip line breaks</dfn> from a |
| 1372 |
|
string, the user agent must remove any U+000A LINE FEED (LF) and |
| 1373 |
|
U+000D CARRIAGE RETURN (CR) characters from that string. |
| 1374 |
|
#ja |
| 1375 |
|
利用者エージェントが文字列から<dfn id=strip-line-breaks>改行を除去</dfn>する場合、 |
| 1376 |
|
当該文字列から U+000A LINE FEED (LF) 文字と |
| 1377 |
|
U+000D CARRIAGE RETURN (CR) 文字を削除し[[MUST:なければなりません]]。 |
| 1378 |
|
|
| 1379 |
|
#en |
| 1380 |
|
The <dfn id=codepoint-length>codepoint length</dfn> of a string is the number of |
| 1381 |
|
Unicode codepoints in that string. |
| 1382 |
|
#ja |
| 1383 |
|
文字列の<dfn id=codepoint-length>符号位置長</dfn>は、当該文字列中の Unicode |
| 1384 |
|
符号位置の数です。 |
| 1385 |
|
|
| 1386 |
|
|
| 1387 |
|
#en |
| 1388 |
|
A string is a <dfn id=valid-floating-point-number>valid floating point number</dfn> if it |
| 1389 |
|
consists of: |
| 1390 |
|
#ja |
| 1391 |
|
文字列は、それが次のものから構成される場合、<dfn id=valid-floating-point-number>妥当な浮動小数点数</dfn>です。 |
| 1392 |
|
|
| 1393 |
|
#en |
| 1394 |
|
Optionally, a U+002D HYPHEN-MINUS ("-") character. |
| 1395 |
|
#ja |
| 1396 |
|
U+002D HYPHEN-MINUS ("-") 文字 (任意選択)。 |
| 1397 |
|
|
| 1398 |
|
#en |
| 1399 |
|
A series of one or more characters in the range U+0030 DIGIT |
| 1400 |
|
ZERO (0) to U+0039 DIGIT NINE (9). |
| 1401 |
|
#ja |
| 1402 |
|
範囲 U+0030 DIGIT |
| 1403 |
|
ZERO (0) ~ U+0039 DIGIT NINE (9) の文字1文字以上の列。 |
| 1404 |
|
|
| 1405 |
|
#en |
| 1406 |
|
Optionally: |
| 1407 |
|
#ja |
| 1408 |
|
任意選択で、 |
| 1409 |
|
|
| 1410 |
|
#en |
| 1411 |
|
A single U+002E FULL STOP (".") character. |
| 1412 |
|
#ja |
| 1413 |
|
単一の U+002E FULL STOP (".") 文字。 |
| 1414 |
|
|
| 1415 |
|
#en |
| 1416 |
|
A series of one or more characters in the range U+0030 DIGIT |
| 1417 |
|
ZERO (0) to U+0039 DIGIT NINE (9). |
| 1418 |
|
#ja |
| 1419 |
|
範囲 U+0030 DIGIT |
| 1420 |
|
ZERO (0) ~ U+0039 DIGIT NINE (9) の文字1文字以上の列。 |
| 1421 |
|
|
| 1422 |
|
#en |
| 1423 |
|
Either a U+0065 LATIN SMALL LETTER E character or a U+0045 |
| 1424 |
|
LATIN CAPITAL LETTER E character. |
| 1425 |
|
#ja |
| 1426 |
|
U+0065 LATIN SMALL LETTER E 文字か、 U+0045 |
| 1427 |
|
LATIN CAPITAL LETTER E 文字のいずれか。 |
| 1428 |
|
|
| 1429 |
|
#en |
| 1430 |
|
A series of characters in the range U+0030 DIGIT ZERO (0) to |
| 1431 |
|
U+0039 DIGIT NINE (9). |
| 1432 |
|
#ja |
| 1433 |
|
範囲 U+0030 DIGIT ZERO (0) ~ |
| 1434 |
|
U+0039 DIGIT NINE (9) の文字の列。 |
| 1435 |
|
|
| 1436 |
|
#en |
| 1437 |
|
If <var title="">n</var> is 4 or more, and the first bytes of |
| 1438 |
|
the resource match one of the following byte sets: |
| 1439 |
|
#ja |
| 1440 |
|
<var title="">n</var> が 4 以上であり、資源の最初の数バイトが次のバイト集合のいずれかに一致する場合、 |
| 1441 |
|
|
| 1442 |
|
#en |
| 1443 |
|
Description |
| 1444 |
|
#ja |
| 1445 |
|
説明 |
| 1446 |
|
|
| 1447 |
|
#en |
| 1448 |
|
...then the sniffed type of the resource is "text/plain". Abort |
| 1449 |
|
these steps. |
| 1450 |
|
#ja |
| 1451 |
|
資源の探知型は「text/plain」です。これらの段階を停止します。 |
| 1452 |
|
|
| 1453 |
|
#en |
| 1454 |
|
If none of the first <var title="">n</var> bytes of the |
| 1455 |
|
resource are <a href=#binary-data-bytes>binary data bytes</a> then the sniffed type |
| 1456 |
|
of the resource is "text/plain". Abort these steps. |
| 1457 |
|
#ja |
| 1458 |
|
資源の最初の <var title="">n</var> バイトのいずれもが<a href=#binary-data-bytes>バイナリー・データ・バイト</a>でない場合、 |
| 1459 |
|
資源の探知型は「text/plain」です。これらの段階を停止します。 |
| 1460 |
|
|
| 1461 |
|
#en |
| 1462 |
|
If the first bytes of the resource match one of the byte |
| 1463 |
|
sequences in the "pattern" column of the table in the <i title="content-type sniffing: unknown type"><a href=#content-type-sniffing:-unknown-type>unknown type</a></i> |
| 1464 |
|
section below, ignoring any rows whose cell in the "security" |
| 1465 |
|
column says "scriptable" (or "n/a"), then the sniffed type of the |
| 1466 |
|
resource is the type given in the corresponding cell in the |
| 1467 |
|
"sniffed type" column on that row; abort these steps. |
| 1468 |
|
#ja |
| 1469 |
|
資源の最初のバイトが、 |
| 1470 |
|
後の<i title="content-type sniffing: unknown type"><a href=#content-type-sniffing:-unknown-type>未知型</a></i>の節の表のうち、 |
| 1471 |
|
「保安性」の列がのこまが「スクリプト可能」 (か「N/A」) となっている行以外で、 |
| 1472 |
|
「パターン」の列のバイト列のいずれかと一致する場合、 |
| 1473 |
|
資源の探知型は、その行の「探知型」の列の対応するこまで与えられた型です。 |
| 1474 |
|
これらの段階を停止します。 |
| 1475 |
|
|
| 1476 |
|
|
| 1477 |
|
#en |
| 1478 |
|
It is critical that this step not ever return a |
| 1479 |
|
scriptable type (e.g. text/html), as otherwise that would allow a |
| 1480 |
|
privilege escalation attack. |
| 1481 |
|
#ja |
| 1482 |
|
この段階でスクリプト可能な型 (例えば text/html) を返さないことは重要であり、 |
| 1483 |
|
そうしなければ特権昇格攻撃を認めることになってしまいます。 |
| 1484 |
|
|
| 1485 |
|
#en |
| 1486 |
|
Otherwise, the sniffed type of the resource is |
| 1487 |
|
"application/octet-stream". |
| 1488 |
|
#ja |
| 1489 |
|
そうでない場合、資源の探知型は「application/octet-stream」です。 |
| 1490 |
|
|
| 1491 |
|
#en |
| 1492 |
|
Bytes covered by the following ranges are <dfn id=binary-data-bytes>binary data |
| 1493 |
|
bytes</dfn>: |
| 1494 |
|
#ja |
| 1495 |
|
次の範囲に含まれるバイトが<dfn id=binary-data-bytes>バイナリー・データ・バイト</dfn>です。 |
| 1496 |
|
|
| 1497 |
|
#pattern |
| 1498 |
|
<span class=secno>* </span><dfn>Content-Type sniffing: unknown type</dfn> |
| 1499 |
|
#ja |
| 1500 |
|
<span class=secno>$1 </span><dfn>Content-Type 探知: 未知型</dfn> |
| 1501 |
|
|
| 1502 |
|
#en |
| 1503 |
|
The user agent may wait for 512 or more bytes of the |
| 1504 |
|
resource to be available. |
| 1505 |
|
#ja |
| 1506 |
|
利用者エージェントは、資源の 512 バイト以上が利用可能となるまで待って[[MAY:構いません]]。 |
| 1507 |
|
|
| 1508 |
|
#en |
| 1509 |
|
Let <var title="">stream length</var> be the smaller of |
| 1510 |
|
either 512 or the number of bytes already available. |
| 1511 |
|
#ja |
| 1512 |
|
<var title="">stream length</var> を、 512 と既に利用可能なバイトの数の小さい方とします。 |
| 1513 |
|
|
| 1514 |
|
#en |
| 1515 |
|
For each row in the table below: |
| 1516 |
|
#ja |
| 1517 |
|
後掲の表の各表について、 |
| 1518 |
|
|
| 1519 |
|
#en |
| 1520 |
|
If the row has no "<em>WS</em>" bytes: |
| 1521 |
|
#ja |
| 1522 |
|
行が「<em>WS</em>」バイトを持たない場合、 |
| 1523 |
|
|
| 1524 |
|
#en |
| 1525 |
|
Let <var title="">pattern length</var> be the length of the |
| 1526 |
|
pattern (number of bytes described by the cell in the second |
| 1527 |
|
column of the row). |
| 1528 |
|
#ja |
| 1529 |
|
<var title="">pattern length</var> を、パターンの長さ |
| 1530 |
|
(行の2つ目のこまに記述されたバイトの数) |
| 1531 |
|
とします。 |
| 1532 |
|
|
| 1533 |
|
#en |
| 1534 |
|
If <var title="">stream length</var> is smaller than <var title="">pattern length</var> then skip this row. |
| 1535 |
|
#ja |
| 1536 |
|
<var title="">stream length</var> が <var title="">pattern length</var> |
| 1537 |
|
より小さい場合、この行を飛ばします。 |
| 1538 |
|
|
| 1539 |
|
#en |
| 1540 |
|
Apply the "and" operator to the first <var title="">pattern |
| 1541 |
|
length</var> bytes of the resource and the given mask (the |
| 1542 |
|
bytes in the cell of first column of that row), and let the |
| 1543 |
|
result be the <var title="">data</var>. |
| 1544 |
|
#ja |
| 1545 |
|
資源の最初の <var title="">pattern |
| 1546 |
|
length</var> バイトと与えられたマスク (その行の最初の列のこまのバイト列) |
| 1547 |
|
に「論理積」演算子を適用し、その結果を <var title="">data</var> とします。 |
| 1548 |
|
|
| 1549 |
|
#en |
| 1550 |
|
If the bytes of the <var title="">data</var> matches the |
| 1551 |
|
given pattern bytes exactly, then the sniffed type of the |
| 1552 |
|
resource is the type given in the cell of the third column in |
| 1553 |
|
that row; abort these steps. |
| 1554 |
|
#ja |
| 1555 |
|
<var title="">data</var> のバイト列が与えられたパターン・バイト列と正確に一致する場合、 |
| 1556 |
|
資源の探知型はその行の3つ目の列のこまで与えられる型です。 |
| 1557 |
|
これらの段階を停止します。 |
| 1558 |
|
|
| 1559 |
|
#en |
| 1560 |
|
If the row has a "<em>WS</em>" byte: |
| 1561 |
|
#ja |
| 1562 |
|
行が「<em>WS</em>」バイトを持つ場合、 |
| 1563 |
|
|
| 1564 |
|
#en |
| 1565 |
|
Let <var title="">index<sub>pattern</sub></var> be an |
| 1566 |
|
index into the mask and pattern byte strings of the |
| 1567 |
|
row. |
| 1568 |
|
#ja |
| 1569 |
|
<var title="">index<sub>pattern</sub></var> を、行のマスクとパターンのバイト列の中の索引とします。 |
| 1570 |
|
|
| 1571 |
|
#en |
| 1572 |
|
Let <var title="">index<sub>stream</sub></var> be an |
| 1573 |
|
index into the byte stream being examined. |
| 1574 |
|
#ja |
| 1575 |
|
<var title="">index<sub>stream</sub></var> を、検査するバイト・ストリームの中の索引とします。 |
| 1576 |
|
|
| 1577 |
|
#en |
| 1578 |
|
<em>Loop</em>: If <var title="">index<sub>stream</sub></var> points beyond the end of |
| 1579 |
|
the byte stream, then this row doesn't match, skip this |
| 1580 |
|
row. |
| 1581 |
|
#ja |
| 1582 |
|
<em>ループ</em>: <var title="">index<sub>stream</sub></var> がバイト・ストリームの終わりの先を指している場合、 |
| 1583 |
|
この行は一致せず、この行を飛ばします。 |
| 1584 |
|
|
| 1585 |
|
#en |
| 1586 |
|
Examine the <var title="">index<sub>stream</sub></var>th |
| 1587 |
|
byte of the byte stream as follows: |
| 1588 |
|
#ja |
| 1589 |
|
バイト・ストリームの <var title="">index<sub>stream</sub></var> |
| 1590 |
|
番目のバイトを次のように検査します。 |
| 1591 |
|
|
| 1592 |
|
#en |
| 1593 |
|
If the <var title="">index<sub>pattern</sub></var>th byte |
| 1594 |
|
of the pattern is a normal hexadecimal byte and not a "<em>WS</em>" |
| 1595 |
|
byte: |
| 1596 |
|
#ja |
| 1597 |
|
パターンの <var title="">index<sub>pattern</sub></var> |
| 1598 |
|
番目のバイトが通常の十六進数バイトであって「<em>WS</em>」バイトでない場合、 |
| 1599 |
|
|
| 1600 |
|
#en |
| 1601 |
|
Otherwise, increment <var title="">index<sub>pattern</sub></var> to the next byte in |
| 1602 |
|
the mask and pattern and <var title="">index<sub>stream</sub></var> to the next byte in |
| 1603 |
|
the byte stream. |
| 1604 |
|
#ja |
| 1605 |
|
そうでない場合、 <var title="">index<sub>pattern</sub></var> |
| 1606 |
|
をマスクとパターンの次のバイトに、 |
| 1607 |
|
<var title="">index<sub>stream</sub></var> |
| 1608 |
|
をバイト・ストリームの次のバイトにと増加させます。 |
| 1609 |
|
|
| 1610 |
|
#en |
| 1611 |
|
Otherwise, if the <var title="">index<sub>pattern</sub></var>th byte of the pattern |
| 1612 |
|
is a "<em>WS</em>" byte: |
| 1613 |
|
#ja |
| 1614 |
|
そうでない場合、パターンの <var title="">index<sub>pattern</sub></var> |
| 1615 |
|
番目のバイトが「<em>WS</em>」バイトの場合、 |
| 1616 |
|
|
| 1617 |
|
#en |
| 1618 |
|
"<em>WS</em>" means "whitespace", and allows insignificant |
| 1619 |
|
whitespace to be skipped when sniffing for a type |
| 1620 |
|
signature. |
| 1621 |
|
#ja |
| 1622 |
|
「<em>WS</em>」は「空白」を意味し、型署名の探知の時に重要でない空白を飛ばすことを認めます。 |
| 1623 |
|
|
| 1624 |
|
#en |
| 1625 |
|
If the <var title="">index<sub>stream</sub></var>th byte |
| 1626 |
|
of the stream is one of 0x09 (ASCII TAB), 0x0A (ASCII LF), |
| 1627 |
|
0x0C (ASCII FF), 0x0D (ASCII CR), or 0x20 (ASCII space), |
| 1628 |
|
then increment only the <var title="">index<sub>stream</sub></var> to the next byte in |
| 1629 |
|
the byte stream. |
| 1630 |
|
#ja |
| 1631 |
|
ストリームの <var title="">index<sub>stream</sub></var> |
| 1632 |
|
番目のバイトが 0x09 (ASCII TAB)、0x0A (ASCII LF)、 |
| 1633 |
|
0x0C (ASCII FF)、0x0D (ASCII CR)、0x20 (ASCII 間隔) |
| 1634 |
|
のいずれかの場合、 <var title="">index<sub>stream</sub></var> |
| 1635 |
|
をバイト・ストリームの次のバイトへと増加させます。 |
| 1636 |
|
|
| 1637 |
|
#en |
| 1638 |
|
Otherwise, increment only the <var title="">index<sub>pattern</sub></var> to the next byte in |
| 1639 |
|
the mask and pattern. |
| 1640 |
|
#ja |
| 1641 |
|
そうでない場合、 <var title="">index<sub>pattern</sub></var> |
| 1642 |
|
だけをマスクとパターンの次のバイトへと増加させます。 |
| 1643 |
|
|
| 1644 |
|
#en |
| 1645 |
|
If <var title="">index<sub>pattern</sub></var> does not |
| 1646 |
|
point beyond the end of the mask and pattern byte strings, then |
| 1647 |
|
jump back to the <em>loop</em> step in this algorithm. |
| 1648 |
|
#ja |
| 1649 |
|
<var title="">index<sub>pattern</sub></var> がマスクとパターンのバイト列の終わりの先を指していない場合、この算法の<em>ループ</em>の段階に飛んで戻ります。 |
| 1650 |
|
|
| 1651 |
|
#en |
| 1652 |
|
Otherwise, the sniffed type of the resource is the type |
| 1653 |
|
given in the cell of the third column in that row; abort these |
| 1654 |
|
steps. |
| 1655 |
|
#ja |
| 1656 |
|
そうでない場合、資源の探知型はその行の3番目の列のこまに与えられた型です。 |
| 1657 |
|
これらの段階を停止します。 |
| 1658 |
|
|
| 1659 |
|
#en |
| 1660 |
|
The table used by the above algorithm is: |
| 1661 |
|
#ja |
| 1662 |
|
先述の算法で用いる表は、次の通りです。 |
| 1663 |
|
|
| 1664 |
|
#en |
| 1665 |
|
Sniffed type |
| 1666 |
|
#ja |
| 1667 |
|
探知型 |
| 1668 |
|
|
| 1669 |
|
#en |
| 1670 |
|
Security |
| 1671 |
|
#ja |
| 1672 |
|
保安性 |
| 1673 |
|
|
| 1674 |
|
#en |
| 1675 |
|
Comment |
| 1676 |
|
#ja |
| 1677 |
|
注釈 |
| 1678 |
|
|
| 1679 |
|
#en |
| 1680 |
|
Mask |
| 1681 |
|
#ja |
| 1682 |
|
マスク |
| 1683 |
|
|
| 1684 |
|
#en |
| 1685 |
|
Pattern |
| 1686 |
|
#ja |
| 1687 |
|
パターン |
| 1688 |
|
|
| 1689 |
|
#en |
| 1690 |
|
Scriptable |
| 1691 |
|
#ja |
| 1692 |
|
スクリプト可能 |
| 1693 |
|
|
| 1694 |
|
#en |
| 1695 |
|
The string "<code title=""><!DOCTYPE HTML</code>" in US-ASCII or compatible encodings, case-insensitively. |
| 1696 |
|
#ja |
| 1697 |
|
US-ASCII や互換な符号化で文字列「<code title=""><!DOCTYPE HTML</code>」 |
| 1698 |
|
を大文字または小文字で。 |
| 1699 |
|
|
| 1700 |
|
#en |
| 1701 |
|
The string "<code title=""><HTML</code>" in US-ASCII or compatible encodings, case-insensitively, possibly with leading spaces. |
| 1702 |
|
#ja |
| 1703 |
|
US-ASCII や互換な符号化で文字列「<code title=""><HTML</code>」 |
| 1704 |
|
を大文字または小文字で、最初に間隔があってもよい。 |
| 1705 |
|
|
| 1706 |
|
#en |
| 1707 |
|
The string "<code title=""><HEAD</code>" in US-ASCII or compatible encodings, case-insensitively, possibly with leading spaces. |
| 1708 |
|
#ja |
| 1709 |
|
US-ASCII や互換な符号化で文字列「<code title=""><HEAD</code>」 |
| 1710 |
|
を大文字または小文字で、最初に間隔があってもよい。 |
| 1711 |
|
|
| 1712 |
|
#en |
| 1713 |
|
The string "<code title=""><SCRIPT</code>" in US-ASCII or compatible encodings, case-insensitively, possibly with leading spaces. |
| 1714 |
|
#ja |
| 1715 |
|
US-ASCII や互換な符号化で文字列「<code title=""><SCRIPT</code>」 |
| 1716 |
|
を大文字または小文字で、最初に間隔があってもよい。 |
| 1717 |
|
|
| 1718 |
|
#en |
| 1719 |
|
The string "<code title="">%PDF-</code>", the PDF signature. |
| 1720 |
|
#ja |
| 1721 |
|
文字列「<code title="">%PDF-</code>」、 PDF 署名。 |
| 1722 |
|
|
| 1723 |
|
#en |
| 1724 |
|
Safe |
| 1725 |
|
#ja |
| 1726 |
|
安全 |
| 1727 |
|
|
| 1728 |
|
#en |
| 1729 |
|
The string "<code title="">%!PS-Adobe-</code>", the PostScript signature. |
| 1730 |
|
<!-- copied from the text or binary section above --> |
| 1731 |
|
#ja |
| 1732 |
|
文字列「<code title="">%!PS-Adobe-</code>」、PostScript 署名。 |
| 1733 |
|
<code title="">%!PS-Adobe-</code> |
| 1734 |
|
|
| 1735 |
|
#en |
| 1736 |
|
n/a |
| 1737 |
|
#ja |
| 1738 |
|
N/A |
| 1739 |
|
|
| 1740 |
|
#en |
| 1741 |
|
The string "<code title="">GIF87a</code>", a GIF signature. |
| 1742 |
|
#ja |
| 1743 |
|
文字列「<code title="">GIF87a</code>」、GIF 署名。 |
| 1744 |
|
|
| 1745 |
|
#en |
| 1746 |
|
The string "<code title="">GIF89a</code>", a GIF signature. |
| 1747 |
|
#ja |
| 1748 |
|
文字列「<code title="">GIF89a</code>」、GIF 署名。 |
| 1749 |
|
|
| 1750 |
|
#en |
| 1751 |
|
The PNG signature. |
| 1752 |
|
#ja |
| 1753 |
|
PNG 署名。 |
| 1754 |
|
|
| 1755 |
|
#en |
| 1756 |
|
A JPEG SOI marker followed by the first byte of another marker. |
| 1757 |
|
#ja |
| 1758 |
|
JPEG SOI マーカーの後に別のマーカーの最初のバイト。 |
| 1759 |
|
|
| 1760 |
|
#en |
| 1761 |
|
The string "<code title="">BM</code>", a BMP signature. |
| 1762 |
|
#ja |
| 1763 |
|
文字列「<code title="">BM</code>」、BMP 署名。 |
| 1764 |
|
|
| 1765 |
|
#en |
| 1766 |
|
A 0 word following by a 1 word, a Windows Icon file format signature. |
| 1767 |
|
#ja |
| 1768 |
|
語 0 の後に語 1、 Windows アイコン・ファイル書式署名。 |
| 1769 |
|
|
| 1770 |
|
#en |
| 1771 |
|
I'd like to add types like MPEG, AVI, Flash, |
| 1772 |
|
Java, etc, to the above table. |
| 1773 |
|
#ja |
| 1774 |
|
MPEG、AVI、Flash、Java などの型も上の表に追加したいと思っています。 |
| 1775 |
|
|
| 1776 |
|
#en |
| 1777 |
|
User agents may support further types if desired, by implicitly |
| 1778 |
|
adding to the above table. However, user agents should not use any |
| 1779 |
|
other patterns for types already mentioned in the table above, as |
| 1780 |
|
this could then be used for privilege escalation (where, e.g., a |
| 1781 |
|
server uses the above table to determine that content is not HTML |
| 1782 |
|
and thus safe from XSS attacks, but then a user agent detects it as |
| 1783 |
|
HTML anyway and allows script to execute). |
| 1784 |
|
#ja |
| 1785 |
|
利用者エージェントは、必要があれば、前掲の表に暗示的に追加することによって、 |
| 1786 |
|
更に別の型に対応して[[MAY:構いません]]。 |
| 1787 |
|
しかし、前掲の表で既に言及されている型に関して他のパターンを使うと、 |
| 1788 |
|
特権昇格に使うことができてしまいます |
| 1789 |
|
(例えば、鯖が前掲の表を使って内容が HTML ではないと判定し、 |
| 1790 |
|
よって XSS 攻撃に関して安全と判定したところ、 |
| 1791 |
|
利用者エージェントがそれは HTML であると判定し、 |
| 1792 |
|
スクリプトが実行されるのを認めてしまいます。) から、 |
| 1793 |
|
利用者エージェントはそうする[[SHOULD NOT:べきではありません]]。 |
| 1794 |
|
|
| 1795 |
|
|
| 1796 |
|
#en |
| 1797 |
|
The column marked "security" is used by the algorithm in the |
| 1798 |
|
"text or binary" section, to avoid sniffing <code title="">text/plain</code> content as a type that can be used for a |
| 1799 |
|
privilege escalation attack. |
| 1800 |
|
#ja |
| 1801 |
|
「保安性」と印された列は、「テキストまたはバイナリー」の節の算法で、 |
| 1802 |
|
<code title="">text/plain</code> |
| 1803 |
|
の内容を特権昇格攻撃に使える型と探知してしまうことを避けるために使います。 |
| 1804 |
|
|
| 1805 |
|
|
| 1806 |
|
#pattern |
| 1807 |
|
<span class=secno>* </span><dfn>Content-Type sniffing: image</dfn> |
| 1808 |
|
#ja |
| 1809 |
|
<span class=secno>$1 </span><dfn>Content-Type 探知: 画像</dfn> |
| 1810 |
|
|
| 1811 |
|
#en |
| 1812 |
|
If the resource's <var title="">official type</var> is |
| 1813 |
|
"image/svg+xml", then the sniffed type of the resource is its <var title="">official type</var> (an XML type). |
| 1814 |
|
#ja |
| 1815 |
|
資源の <var title="">official type</var> が |
| 1816 |
|
「image/svg+xml」の場合、資源の探知型はその |
| 1817 |
|
<var title="">official type</var> (XML 型) です。 |
| 1818 |
|
|
| 1819 |
|
#en |
| 1820 |
|
Otherwise, if the first bytes of the resource match one of the |
| 1821 |
|
byte sequences in the first column of the following table, then the |
| 1822 |
|
sniffed type of the resource is the type given in the corresponding |
| 1823 |
|
cell in the second column on the same row: |
| 1824 |
|
#ja |
| 1825 |
|
そうでない場合、資源の最初の数バイトが次の表の最初の列のバイト列のいずれかと一致する場合、 |
| 1826 |
|
資源の探知型は同じ行の2番目の列の対応するこまで与えられる型です。 |
| 1827 |
|
|
| 1828 |
|
#en |
| 1829 |
|
Comment |
| 1830 |
|
<!-- update the table above if you change this! --> |
| 1831 |
|
#ja |
| 1832 |
|
注釈 |
| 1833 |
|
<!-- update the table above if you change this! --> |
| 1834 |
|
|
| 1835 |
|
#en |
| 1836 |
|
A 0 word following by a 1 word, a Windows Icon file format signature. |
| 1837 |
|
<!-- XXX Mozilla also detects ART (AOL proprietary format) and Windows Cursor files --> |
| 1838 |
|
#ja |
| 1839 |
|
語 0 の後に語 1、 Windows アイコン・ファイル書式署名。 |
| 1840 |
|
<!-- XXX Mozilla also detects ART (AOL proprietary format) and Windows Cursor files --> |
| 1841 |
|
|
| 1842 |
|
#en |
| 1843 |
|
Otherwise, the sniffed type of the resource is the same as |
| 1844 |
|
its <var title="">official type</var>. |
| 1845 |
|
#ja |
| 1846 |
|
そうでない場合、資源の探知型は <var title="">official type</var> と同じです。 |
| 1847 |
|
|
| 1848 |
|
#pattern |
| 1849 |
|
<span class=secno>* </span><dfn>Content-Type sniffing: feed or HTML</dfn> |
| 1850 |
|
#ja |
| 1851 |
|
<span class=secno>$1 </span><dfn>Content-Type sniffing: フィードまたは HTML</dfn> |
| 1852 |
|
|
| 1853 |
|
#en |
| 1854 |
|
Let <var title="">s</var> be the stream of bytes, and let |
| 1855 |
|
<span><var title="">s</var>[<var title="">i</var>]</span> represent |
| 1856 |
|
the byte in <var title="">s</var> with position <var title="">i</var>, treating <var title="">s</var> as zero-indexed |
| 1857 |
|
(so the first byte is at <span><var title="">i</var>=0</span>). |
| 1858 |
|
#ja |
| 1859 |
|
<var title="">s</var> をバイトのストリームとし、 |
| 1860 |
|
<span><var title="">s</var>[<var title="">i</var>]</span> を <var title="">s</var> |
| 1861 |
|
中の位置 <var title="">i</var> のバイトを表すとします。 |
| 1862 |
|
ただし、 <var title="">s</var> は零索引付けされている |
| 1863 |
|
(ので最初のバイトは位置 <span><var title="">i</var>=0</span> にある) とします。 |
| 1864 |
|
|
| 1865 |
|
#en |
| 1866 |
|
If at any point this algorithm requires the user agent to |
| 1867 |
|
determine the value of a byte in <var title="">s</var> which is not |
| 1868 |
|
yet available, or which is past the first 512 bytes of the |
| 1869 |
|
resource, or which is beyond the end of the resource, the user |
| 1870 |
|
agent must stop this algorithm, and assume that the sniffed type of |
| 1871 |
|
the resource is "text/html". |
| 1872 |
|
#ja |
| 1873 |
|
この算法のいずれかの地点で利用者エージェントが <var title="">s</var> 中のまだ利用可能となっていないバイトや資源の最初の512バイトを越えたバイトや資源の終わりを越えたバイトの値を判断することを要求する場合には、 |
| 1874 |
|
利用者エージェントはこの算法を停止し、資源の探知型は「text/html」 |
| 1875 |
|
であるとしなければ[[MUST:なりません]]。 |
| 1876 |
|
|
| 1877 |
|
|
| 1878 |
|
#en |
| 1879 |
|
User agents are allowed, by the first step of this |
| 1880 |
|
algorithm, to wait until the first 512 bytes of the resource are |
| 1881 |
|
available. |
| 1882 |
|
#ja |
| 1883 |
|
利用者エージェントは、この算法の最初の段階により、資源の最初の 512 バイトが利用可能となるまで待つことが認められています。 |