| 1 |
wakaba |
1.1 |
|
| 2 |
|
|
'''The 'text/html' Media Type''' |
| 3 |
|
|
- Network Working Group |
| 4 |
|
|
- Request for Comments: 2854 |
| 5 |
|
|
- Obsoletes: 2070, 1980, 1942, 1867, 1866 |
| 6 |
|
|
- Category: Informational |
| 7 |
|
|
- D. Connolly |
| 8 |
|
|
- World Wide Web Consortium (W3C) |
| 9 |
|
|
- L. Masinter |
| 10 |
|
|
- AT&T |
| 11 |
|
|
- June 2000 |
| 12 |
|
|
|
| 13 |
|
|
|
| 14 |
|
|
* Status of this Memo |
| 15 |
|
|
|
| 16 |
|
|
> This memo provides information for the Internet community. It does |
| 17 |
|
|
not specify an Internet standard of any kind. Distribution of this |
| 18 |
|
|
memo is unlimited. |
| 19 |
|
|
|
| 20 |
|
|
|
| 21 |
|
|
* Copyright Notice |
| 22 |
|
|
|
| 23 |
|
|
> Copyright (C) The Internet Society (2000). All Rights Reserved. |
| 24 |
|
|
|
| 25 |
|
|
|
| 26 |
|
|
* Abstract |
| 27 |
|
|
|
| 28 |
|
|
> This document summarizes the history of HTML development, and defines |
| 29 |
|
|
the "text/html" MIME type by pointing to the relevant W3C |
| 30 |
|
|
recommendations; it is intended to obsolete the previous IETF |
| 31 |
|
|
documents defining HTML, including RFC 1866, RFC 1867, RFC 1980, RFC |
| 32 |
|
|
1942 and RFC 2070, and to remove HTML from IETF Standards Track. |
| 33 |
|
|
|
| 34 |
|
|
この文書は HTML 開発の歴史をまとめ、関係する W3C |
| 35 |
|
|
勧告を指して [CODE(MIME)[text/html]] MIME 型を定義します。 |
| 36 |
|
|
この文書は HTML を定義する以前の IETF 文書 (RFC 1866、 |
| 37 |
|
|
RFC 1867、 RFC 1980、 RFC 1942、 RFC 2070) を廃止し、 |
| 38 |
|
|
HTML を IETF 標準化過程から削除することを意図しています。 |
| 39 |
|
|
|
| 40 |
|
|
> This document was prepared at the request of the W3C HTML working |
| 41 |
|
|
group. Please send comments to www-html@w3.org, a public mailing list |
| 42 |
|
|
with archive at <http://lists.w3.org/Archives/Public/www-html/>. |
| 43 |
|
|
|
| 44 |
|
|
この文書は W3C HTML 作業部会の要求で用意しました。 |
| 45 |
|
|
ご意見は <http://lists.w3.org/Archives/Public/www-html/> |
| 46 |
|
|
で保管される公開メイリング・リスト <MAIL:www-html@w3.org> |
| 47 |
|
|
へお寄せ下さい。 |
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
* 1. Introduction and background |
| 51 |
|
|
|
| 52 |
|
|
> HTML has been in use in the World Wide Web information infrastructure |
| 53 |
|
|
since 1990, and specified in various informal documents. The |
| 54 |
|
|
text/html media type was first officially defined by the IETF HTML |
| 55 |
|
|
working group in 1995 in [HTML20]. Extensions to HTML were proposed |
| 56 |
|
|
in [HTML30], [UPLOAD], [TABLES], [CLIMAPS], and [I18N]. |
| 57 |
|
|
|
| 58 |
|
|
HTML は1990年から World Wide Web 情報基盤で使われ、 |
| 59 |
|
|
種々の非公式な文書に規定されてきました。 [CODE(MIME)[text/html]] |
| 60 |
|
|
媒体型ははじめ 1995年に IETF HTML 作業部会により |
| 61 |
|
|
[[RFC 1866]] で定義されました。 HTML の拡張が |
| 62 |
|
|
[[HTML 3.0]] [[I-D]], [[RFC 1867]], [[RFC 1942]], |
| 63 |
|
|
[[RFC 1980]], [[RFC 2070]] で提案されました。 |
| 64 |
|
|
|
| 65 |
|
|
> The IETF HTML working group closed Sep 1996, and work on defining |
| 66 |
|
|
HTML moved to the World Wide Web Consortium (W3C). The proposed |
| 67 |
|
|
extensions were incorporated to some extent in [HTML32], and to a |
| 68 |
|
|
larger extent in [HTML40]. The definition of multipart/form-data from |
| 69 |
|
|
[UPLOAD] was described in [FORMDATA]. In addition, a reformulation of |
| 70 |
|
|
HTML 4.0 in XML 1.0[XHTML1] was developed. |
| 71 |
|
|
|
| 72 |
|
|
IETF HTML 作業部会は1996年9月に閉鎖し、 HTML を定義する作業は |
| 73 |
|
|
World Wide Web Consortium (W3C) に移管されました。 |
| 74 |
|
|
提案されていた拡張はある程度 [[HTML 3.2]] で取入れられ、 |
| 75 |
|
|
更に多くが [[HTML 4.0]] に取入れられました。 |
| 76 |
|
|
RFC 1867 からの [CODE(MIME)[[[multipart/form-data]]]] の定義は |
| 77 |
|
|
[[RFC 2388]] で記述されています。加えて、 |
| 78 |
|
|
[[HTML 4.0]]の[[XML 1.0]]による再形式化版 ([[XHTML 1.0]]) |
| 79 |
|
|
が開発されました。 |
| 80 |
|
|
|
| 81 |
|
|
> [HTML32] notes "This specification defines HTML version 3.2. HTML 3.2 |
| 82 |
|
|
aims to capture recommended practice as of early '96 and as such to |
| 83 |
|
|
be used as a replacement for HTML 2.0 (RFC 1866)." Subsequent |
| 84 |
|
|
specifications for HTML describe the differences in each version. |
| 85 |
|
|
|
| 86 |
|
|
HTML 3.2 は、[Q[この仕様書は HTML 3.2 版を定義します。 HTML 3.2 は1996年初期の推奨される慣習を捕獲するのを助けます。ですから [[HTML 2.0]] (RFC 1866) に代わって使われるものです。]] |
| 87 |
|
|
とメモっています。それ以後の[[HTML]]の仕様書はそれぞれの版の違いを説明しています。 |
| 88 |
|
|
|
| 89 |
|
|
> In addition to the development of standards, a wide variety of |
| 90 |
|
|
additional extensions, restrictions, and modifications to HTML were |
| 91 |
|
|
popularized by NCSA's Mosaic system and subsequently by the |
| 92 |
|
|
competitive implementations of Netscape Navigator and Microsoft |
| 93 |
|
|
Internet Explorer; these extensions are documented in numerous books |
| 94 |
|
|
and online guides. |
| 95 |
|
|
|
| 96 |
|
|
規格の開発に加え、 HTML への広範囲にわたる拡張、制限、 |
| 97 |
|
|
修正が NCSA の Mosaic システムやそれに続く Netscape Navigator |
| 98 |
|
|
および Microsoft Internet Explorer の競争的実装により広まりました。 |
| 99 |
|
|
これらの拡張は数々の本や線上手引きに文書化されています。 |
| 100 |
|
|
|
| 101 |
|
|
|
| 102 |
|
|
* 2. Registration of MIME media type text/html |
| 103 |
|
|
|
| 104 |
|
|
> |
| 105 |
|
|
:MIME media type name:text |
| 106 |
|
|
:MIME subtype name:html |
| 107 |
|
|
:Required parameters:none |
| 108 |
|
|
:Optional parameters: |
| 109 |
|
|
|
| 110 |
|
|
> |
| 111 |
|
|
:charset: |
| 112 |
|
|
The optional parameter "charset" refers to the character |
| 113 |
|
|
encoding used to represent the HTML document as a sequence of |
| 114 |
|
|
bytes. Any registered IANA charset may be used, but UTF-8 is |
| 115 |
|
|
preferred. Although this parameter is optional, it is strongly |
| 116 |
|
|
recommended that it always be present. See Section 6 below for |
| 117 |
|
|
a discussion of charset default rules. |
| 118 |
|
|
|
| 119 |
|
|
省略可能な引数 [CODE(MIME)[charset]] は、 |
| 120 |
|
|
HTML 文書をバイトの列として表現するのに使われる文字符号化を参照します。 |
| 121 |
|
|
任意の IANA charset を使って構いませんが、 [CODE(charset)[[[UTF-8]]]] |
| 122 |
|
|
が好ましいです。この引数は省略可能ですが、 |
| 123 |
|
|
常に使用することを強く推奨します。 Charset 既定値規則についての議論は |
| 124 |
|
|
6章をご覧ください。 |
| 125 |
|
|
|
| 126 |
|
|
> Note that [HTML20] included an optional "level" parameter; in |
| 127 |
|
|
practice, this parameter was never used and has been removed from |
| 128 |
|
|
this specification. [HTML30] also suggested a "version" |
| 129 |
|
|
parameter; in practice, this parameter also was never used and has |
| 130 |
|
|
been removed from this specification. |
| 131 |
|
|
|
| 132 |
|
|
RFC 1866 は省略可能な [CODE(MIME)[level]] 引数を含んでいました。 |
| 133 |
|
|
実際には、この引数は使われたことはなく、この仕様書からは削除しています。 |
| 134 |
|
|
HTML 3.0 I-D も [CODE(MIME)[version]] 引数を提案しました。 |
| 135 |
|
|
実際には、この引数は使われたことはなく、この仕様書からは削除しています。 |
| 136 |
|
|
|
| 137 |
|
|
> |
| 138 |
|
|
:Encoding considerations: |
| 139 |
|
|
See Section 4 of this document. |
| 140 |
|
|
:Security considerations: |
| 141 |
|
|
See Section 7 of this document. |
| 142 |
|
|
|
| 143 |
|
|
> |
| 144 |
|
|
:Interoperability considerations: |
| 145 |
|
|
HTML is designed to be interoperable across the widest possible |
| 146 |
|
|
range of platforms and devices of varying capabilities. However, |
| 147 |
|
|
there are contexts (platforms of limited display capability, for |
| 148 |
|
|
example) where not all of the capabilities of the full HTML |
| 149 |
|
|
definition are feasible. There is ongoing work to develop both a |
| 150 |
|
|
modularization of HTML and a set of profiling capabilities to |
| 151 |
|
|
identify and negotiate restricted (and extended) capabilities. |
| 152 |
|
|
|
| 153 |
|
|
HTML は可能な限り広範囲の環境や色々な能力の装置の間で相互運用できるように設計されています。 |
| 154 |
|
|
しかし、 HTML の完全な定義のすべての能力が望まれない文脈 |
| 155 |
|
|
(例えば限られた表示能力の環境) もあります。 |
| 156 |
|
|
HTML のモジュール化と制限された (および拡張された) |
| 157 |
|
|
能力を識別・折衝するプロファイル能力集合の両方の開発作業が行われています。 |
| 158 |
|
|
|
| 159 |
|
|
> Due to the long and distributed development of HTML, current |
| 160 |
|
|
practice on the Internet includes a wide variety of HTML variants. |
| 161 |
|
|
Implementors of text/html interpreters must be prepared to be |
| 162 |
|
|
"bug-compatible" with popular browsers in order to work with many |
| 163 |
|
|
HTML documents available the Internet. |
| 164 |
|
|
|
| 165 |
|
|
長く分散した HTML の開発のために、インターネットの現在の習慣では種々多様な |
| 166 |
|
|
HTML の異種が含まれています。 [CODE(MIME)[text/html]] |
| 167 |
|
|
の解釈器の実装者は、インターネットで入手可能な多くの HTML |
| 168 |
|
|
文書に機能するよう有名ブラウザとの「バグ互換性」 |
| 169 |
|
|
を準備しなければなりません。 |
| 170 |
|
|
|
| 171 |
|
|
> Typically, different versions are distinguishable by the DOCTYPE |
| 172 |
|
|
declaration contained within them, although the DOCTYPE |
| 173 |
|
|
declaration itself is sometimes omitted or incorrect. |
| 174 |
|
|
|
| 175 |
|
|
普通、異なる版は文書に含まれる [CODE(SGML)[[[DOCTYPE]]]] |
| 176 |
|
|
宣言で区別することができます。ただし、 [CODE(SGML)[DOCTYPE]] |
| 177 |
|
|
宣言自体が時々省略されていたり不正であったりします。 |
| 178 |
|
|
|
| 179 |
|
|
> |
| 180 |
|
|
:Published specification: |
| 181 |
|
|
The text/html media type is now defined by W3C Recommendations; |
| 182 |
|
|
the latest published version is [HTML401]. In addition, [XHTML1] |
| 183 |
|
|
defines a profile of use of XHTML which is compatible with HTML |
| 184 |
|
|
4.01 and which may also be labeled as text/html. |
| 185 |
|
|
|
| 186 |
|
|
[CODE(MIME)[text/html]] 媒体型は今は W3C 勧告で定義されています。 |
| 187 |
|
|
出版済みの最新版は [[HTML 4.01]] です。加えて、 [[XHTML 1.0]] |
| 188 |
|
|
が HTML 4.01 と互換な XHTML の使用のプロファイルを定義しており、 |
| 189 |
|
|
これも [CODE(MIME)[text/html]] と札付けして構いません。 |
| 190 |
|
|
|
| 191 |
|
|
> |
| 192 |
|
|
:Applications which use this media type: |
| 193 |
|
|
The first and most common application of HTML is the World Wide |
| 194 |
|
|
Web; commonly, HTML documents contain URI references [URI] to |
| 195 |
|
|
other documents and media to be retrieved using the HTTP protocol |
| 196 |
|
|
[HTTP]. Many gateway applications provide HTML-based interfaces to |
| 197 |
|
|
other underlying complex services. Numerous other applications now |
| 198 |
|
|
also use HTML as a convenient platform-independent multimedia |
| 199 |
|
|
document representation. |
| 200 |
|
|
|
| 201 |
|
|
HTML の最初で一番広まっている応用は World Wide Web です。 |
| 202 |
|
|
普通、 HTML 文書は HTTP プロトコルを使って取出される他の文書や媒体への |
| 203 |
|
|
URI 参照を含みます。多くの関門応用が他の下位の複雑なサービスへの |
| 204 |
|
|
HTML を基にした界面を提供しています。数々の他の応用も今では |
| 205 |
|
|
HTML を便利な環境独立多媒体文書表現として使っています。 |
| 206 |
|
|
|
| 207 |
|
|
> |
| 208 |
|
|
:Additional information: |
| 209 |
|
|
|
| 210 |
|
|
> |
| 211 |
|
|
:Magic number: |
| 212 |
|
|
There is no single initial string that is always present for |
| 213 |
|
|
HTML files. However, Section 5 below gives some guidelines for |
| 214 |
|
|
recognizing HTML files. |
| 215 |
|
|
|
| 216 |
|
|
HTML ファイルに常に出現する一つの初期文字列はありません。 |
| 217 |
|
|
しかし、5章で HTML ファイルを認識するための指針を示します。 |
| 218 |
|
|
|
| 219 |
|
|
> |
| 220 |
|
|
:File extension: |
| 221 |
|
|
The file extensions 'html' or 'htm' are commonly used, but |
| 222 |
|
|
other extensions denoting file formats for preprocessing are |
| 223 |
|
|
also common. |
| 224 |
|
|
|
| 225 |
|
|
ファイル拡張子 [CODE(file)[html]]・[CODE(file)[htm]] |
| 226 |
|
|
が広く使われていますが、 |
| 227 |
|
|
前処理のファイル書式を示す他の拡張子も広く使われています。 |
| 228 |
|
|
|
| 229 |
|
|
> |
| 230 |
|
|
:Macintosh File Type code:TEXT |
| 231 |
|
|
|
| 232 |
|
|
> |
| 233 |
|
|
:Person & email address to contact for further information: |
| 234 |
|
|
Dan Connolly <connolly@w3.org> |
| 235 |
|
|
Larry Masinter <lmm@acm.org> |
| 236 |
|
|
|
| 237 |
|
|
> |
| 238 |
|
|
:Intended usage:COMMON |
| 239 |
|
|
|
| 240 |
|
|
> |
| 241 |
|
|
:Author/Change controller: |
| 242 |
|
|
The HTML specification is a work product of the World Wide Web |
| 243 |
|
|
Consortium's HTML Working Group. The W3C has change control over |
| 244 |
|
|
the HTML specification. |
| 245 |
|
|
|
| 246 |
|
|
HTML 仕様書は World Wide Web Consortium の HTML |
| 247 |
|
|
作業部会の成果物です。 W3C が HTML 仕様書の変更権を有します。 |
| 248 |
|
|
|
| 249 |
|
|
> |
| 250 |
|
|
:Further information: |
| 251 |
|
|
HTML has a means of including, by reference via URI, additional |
| 252 |
|
|
resources (image, video clip, applet) within the base document. In |
| 253 |
|
|
order to transfer a complete HTML object and the included |
| 254 |
|
|
resources in a single MIME object, the mechanisms of [MHTML] may |
| 255 |
|
|
be used. |
| 256 |
|
|
|
| 257 |
|
|
HTML は基底文書中に URI による参照として追加の資源 |
| 258 |
|
|
(画像、動画片、applet) を取込む手段を有します。 |
| 259 |
|
|
完全に HTML 物体および取込まれた資源を一つの MIME |
| 260 |
|
|
物体として転送するためには、 [[MHTML]] の仕組みを使うことができます。 |
| 261 |
|
|
|
| 262 |
|
|
|
| 263 |
|
|
* 3. Fragment Identifiers |
| 264 |
|
|
|
| 265 |
|
|
> The URI specification [URI] notes that the semantics of a fragment |
| 266 |
|
|
identifier (part of a URI after a "#") is a property of the data |
| 267 |
|
|
resulting from a retrieval action, and that the format and |
| 268 |
|
|
interpretation of fragment identifiers is dependent on the media type |
| 269 |
|
|
of the retrieval result. |
| 270 |
|
|
|
| 271 |
|
|
URI 仕様書は素片識別子 (URI の [CODE(URI)[#]] の後の部分) |
| 272 |
|
|
の意味は取出し動作の結果のデータの特性であり、 |
| 273 |
|
|
素片識別子の書式と解釈は取出し結果の媒体型に依存すると書いています。 |
| 274 |
|
|
|
| 275 |
|
|
> For documents labeled as text/html, the fragment identifier |
| 276 |
|
|
designates the correspondingly named element; any element may be |
| 277 |
|
|
named with the "id" attribute, and A, APPLET, FRAME, IFRAME, IMG and |
| 278 |
|
|
MAP elements may be named with a "name" attribute. This is described |
| 279 |
|
|
in detail in [HTML40] section 12. |
| 280 |
|
|
|
| 281 |
|
|
[CODE(MIME)[text/html]] と札付けされた文書では、 |
| 282 |
|
|
素片識別子は対応する名前付き要素を示します。 |
| 283 |
|
|
任意の要素が [CODE(HTMLa)[[[id]]]] 属性で名前を付けることができますし、 |
| 284 |
|
|
[CODE(HTMLe)[[[a]]]], [CODE(HTMLe)[[[applet]]]], |
| 285 |
|
|
[CODE(HTMLe)[[[frame]]]], [CODE(HTMLe)[[[iframe]]]], |
| 286 |
|
|
ODE(HTMLe)[[[img]]]], [CODE(HTMLe)[[[map]]]] の要素は |
| 287 |
|
|
[CODE(HTMLa)[[[name]]]] 属性で名前を付けることができます。 |
| 288 |
|
|
これは HTML 4.0 12章で詳しく説明されています。 |
| 289 |
|
|
|
| 290 |
|
|
|
| 291 |
|
|
* 4. Encoding considerations |
| 292 |
|
|
|
| 293 |
|
|
> Because of the availability within HTML itself for using character |
| 294 |
|
|
entity references, documents that use a wide repertoire of characters |
| 295 |
|
|
may still be represented using the US-ASCII charset and transported |
| 296 |
|
|
without encoding. However, transport of text/html using a charset |
| 297 |
|
|
other than US-ASCII may require base64 or quoted-printable encoding |
| 298 |
|
|
for 7-bit channels. |
| 299 |
|
|
|
| 300 |
|
|
HTML 自体が実体参照を使うことができますから、 |
| 301 |
|
|
大きな文字のレパートリを使う文書であっても [CODE(charset)[[[US-ASCII]]]] |
| 302 |
|
|
charset を使って表現して、符号化せずに輸送することができます。 |
| 303 |
|
|
しかし、 [CODE(charset)[US-ASCII]] 以外の charset |
| 304 |
|
|
を使った ODE(MIME)[text/html]] の輸送では、7ビット輸送路のため |
| 305 |
|
|
[CODE(MIME)[base64]] や [CODE(MIME)[quoted-printable]] |
| 306 |
|
|
の符号化が必要かもしれません。 |
| 307 |
|
|
|
| 308 |
|
|
> As with all MIME text subtypes, the canonical form of "text/html" |
| 309 |
|
|
must always represent a line break as a sequence of a CR byte value |
| 310 |
|
|
(0x0D) followed by an LF (0x0A) byte value. Similarly, any |
| 311 |
|
|
occurrence of such a CRLF sequence in "text/html" must represent a |
| 312 |
|
|
line break. Use of CR byte values and LF byte values outside of line |
| 313 |
|
|
break sequences is also forbidden. This rule applies regardless of |
| 314 |
|
|
the character encoding ('charset') involved. |
| 315 |
|
|
|
| 316 |
|
|
MIME の他のすべての [CODE(MIME)[text]] 亜型と同様に、 |
| 317 |
|
|
[CODE(MIME)[text/html]] の正準形は常に改行を [CODE(char)[[[CR]]]] |
| 318 |
|
|
バイト値 ([CODE(char)[0x0D]]) とそれに続く [CODE(char)[[[LF]]]] |
| 319 |
|
|
([CODE(char)[0x0A]]) バイト値で表現しなければなりません。 |
| 320 |
|
|
同様に、 [CODE(MIME)[text/html]] でこのような [CODE(ABNF)[[[CRLF]]]] |
| 321 |
|
|
列が出現する場合は必ず改行を表現しなければなりません。 |
| 322 |
|
|
改行以外で [CODE(char)[CR]] バイト値や [CODE(char)[LF]] |
| 323 |
|
|
バイト値を使うことも禁止されています。この規則は文字符号化 |
| 324 |
|
|
([CODE(MIME)[charset]]) に関わらず適用されます。 |
| 325 |
|
|
|
| 326 |
|
|
> Note, however, that the HTTP protocol allows the transport of data |
| 327 |
|
|
not in canonical form, and, in particular, with other end-of-line |
| 328 |
|
|
conventions; see [HTTP] section 3.7.1. This exception is commonly |
| 329 |
|
|
used for HTML. |
| 330 |
|
|
|
| 331 |
|
|
ただし、 HTTP プロトコルはデータが正準形でなくても輸送を認めており、 |
| 332 |
|
|
特に他の改行表現もよいことに注意して下さい。この例外は HTML |
| 333 |
|
|
では広く使われています。 |
| 334 |
|
|
|
| 335 |
|
|
> HTML sent via email is still subject to the MIME restrictions; this |
| 336 |
|
|
is discussed fully in [MHTML] Section 10. |
| 337 |
|
|
|
| 338 |
|
|
電子メイルを使って送られる HTML はやはり MIME の制限の対象になります。 |
| 339 |
|
|
これは MHTML 10章で完全に議論されています。 |
| 340 |
|
|
|
| 341 |
|
|
|
| 342 |
|
|
* 5. Recognizing HTML files |
| 343 |
|
|
|
| 344 |
|
|
> Almost all HTML files have the string "<html" or "<HTML" near the |
| 345 |
|
|
beginning of the file. |
| 346 |
|
|
|
| 347 |
|
|
ほとんどすべての HTML ファイルは文字列 [SAMP(HTML)[<html]] |
| 348 |
|
|
または [SAMP(HTML)[<HTML]] をファイルの先頭付近に持ちます。 |
| 349 |
|
|
|
| 350 |
|
|
> Documents conformant to HTML 2.0, HTML 3.2 and HTML 4.0 will start |
| 351 |
|
|
with a DOCTYPE declaration "<!DOCTYPE HTML" near the beginning, |
| 352 |
|
|
before the "<html". These dialects are case insensitive. Files may |
| 353 |
|
|
start with white space, comments (introduced by "<!--" ), or |
| 354 |
|
|
processing instructions (introduced by "<?") prior to the DOCTYPE |
| 355 |
|
|
declaration. |
| 356 |
|
|
|
| 357 |
|
|
HTML 2.0, HTML 3.2, HTML 4.0 に適合する文書は先頭付近で |
| 358 |
|
|
[SAMP(HTML)[<html]] より前に |
| 359 |
|
|
[CODE(SGML)[DOCTYPE]] 宣言 [SAMP(HTML)[<!DOCTYPE HTML]] |
| 360 |
|
|
から始まります。ファイルは [CODE(SGML)[DOCTYPE]] 宣言より前に[[空白]]、 |
| 361 |
|
|
[[注釈]] ([SAMP(HTML)[<!--]] で始まります。)、処理指令 |
| 362 |
|
|
([SAMP(HTML)[<?]] で始まります。) から始まるかもしれません。 |
| 363 |
|
|
|
| 364 |
|
|
> XHTML documents (optionally) start with an XML declaration which |
| 365 |
|
|
begins with "<?xml" and are required to have a DOCTYPE declaration |
| 366 |
|
|
"<!DOCTYPE html". |
| 367 |
|
|
|
| 368 |
|
|
XHTML 文書は (任意で) [SAMP(XML)[<?xml]] で始まる |
| 369 |
|
|
[[XML宣言]]から始まり、 [CODE(XML)[DOCTYPE]] 宣言 |
| 370 |
|
|
[SAMP(HTML)[<!DOCTYPE html]] が必要です。 |
| 371 |
|
|
|
| 372 |
|
|
|
| 373 |
|
|
* 6. Charset default rules |
| 374 |
|
|
|
| 375 |
|
|
> The use of an explicit charset parameter is strongly recommended. |
| 376 |
|
|
While [MIME] specifies "The default character set, which must be |
| 377 |
|
|
assumed in the absence of a charset parameter, is US-ASCII." [HTTP] |
| 378 |
|
|
Section 3.7.1, defines that "media subtypes of the 'text' type are |
| 379 |
|
|
defined to have a default charset value of 'ISO-8859-1'". Section |
| 380 |
|
|
19.3 of [HTTP] gives additional guidelines. Using an explicit |
| 381 |
|
|
charset parameter will help avoid confusion. |
| 382 |
|
|
|
| 383 |
|
|
明示的に [CODE(MIME)[charset]] を使用することを強く推奨します。 |
| 384 |
|
|
MIME は [Q[[CODE(MIME)[charset]] 引数が欠けたる時に使用しなければならない既定文字集合は [CODE(charset)[US-ASCII]] です。]] |
| 385 |
|
|
と既定していますが、 HTTP は[Q[媒体型 [CODE(MIME)[text]] の亜型は既定 [CODE(MIME)[charset]] 値 [CODE(charset)[ISO-8859-1]] を持つと定義します。]] |
| 386 |
|
|
と定義しています。 HTTP の 19.3 章は追加の指針を与えています。 |
| 387 |
|
|
明示的に [CODE(MIME)[charset]] 引数を使用することで混乱回避の助けとなります。 |
| 388 |
|
|
|
| 389 |
|
|
> Using an explicit charset parameter also takes into account that the |
| 390 |
|
|
overwhelming majority of deployed browsers are set to use something |
| 391 |
|
|
else than 'ISO-8859-1' as the default; the actual default is either a |
| 392 |
|
|
corporate character encoding or character encodings widely deployed |
| 393 |
|
|
in a certain national or regional community. For further |
| 394 |
|
|
considerations, please also see Section 5.2 of [HTML40]. |
| 395 |
|
|
|
| 396 |
|
|
明示的に [CODE(MIME)[charset]] 引数を使用するというのは、 |
| 397 |
|
|
使用されている圧倒的多数のブラウザが [CODE(charset)[ISO-8859-1]] |
| 398 |
|
|
以外のものを既定値として使うように設定されていることも考慮しています。 |
| 399 |
|
|
実際の既定値は企業文字符号化か特定の国家・地域社会で広く用いられている文字符号化です。 |
| 400 |
|
|
詳しい考察は HTML 4.0 の5.2節もご覧ください。 |
| 401 |
|
|
|
| 402 |
|
|
|
| 403 |
|
|
* 7. Security Considerations |
| 404 |
|
|
|
| 405 |
|
|
> [HTML401], section B.10, notes various security issues with |
| 406 |
|
|
interpreting anchors and forms in HTML documents. |
| 407 |
|
|
|
| 408 |
|
|
HTML 4.01 B.10 節は HTML 分書中のアンカーとフォームの解釈に纏わる種々の保安上の問題について書いています。 |
| 409 |
|
|
|
| 410 |
|
|
> In addition, the introduction of scripting languages and interactive |
| 411 |
|
|
capabilities in HTML 4.0 introduced a number of security risks |
| 412 |
|
|
associated with the automatic execution of programs written by the |
| 413 |
|
|
sender but interpreted by the recipient. User agents executing such |
| 414 |
|
|
scripts or programs must be extremely careful to insure that |
| 415 |
|
|
untrusted software is executed in a protected environment. |
| 416 |
|
|
|
| 417 |
|
|
加えて、 HTML 4.0 でスクリプト言語や対話的能力を導入したことによって、 |
| 418 |
|
|
送信者が書いて受信者が解釈するプログラムが自動的に実行されることに関する保安上の危険の数々が生まれました。 |
| 419 |
|
|
このようなスクリプト・プログラムを実行する利用者エージェントは、 |
| 420 |
|
|
信頼できないソフトウェアが保護された環境で実行されるように甚だ注意を払わなければなりません。 |
| 421 |
|
|
|
| 422 |
|
|
|
| 423 |
|
|
* 8. Authors' Addresses |
| 424 |
|
|
|
| 425 |
|
|
> |
| 426 |
|
|
[PRE[ |
| 427 |
|
|
Daniel W. Connolly |
| 428 |
|
|
World Wide Web Consortium (W3C) |
| 429 |
|
|
MIT Laboratory for Computer Science |
| 430 |
|
|
545 Technology Square |
| 431 |
|
|
Cambridge, MA 02139, U.S.A. |
| 432 |
|
|
]PRE] |
| 433 |
|
|
> |
| 434 |
|
|
EMail: connolly@w3.org |
| 435 |
|
|
http://www.w3.org/People/Connolly/ |
| 436 |
|
|
]PRE] |
| 437 |
|
|
|
| 438 |
|
|
> |
| 439 |
|
|
[PRE[ |
| 440 |
|
|
Larry Masinter |
| 441 |
|
|
AT&T |
| 442 |
|
|
75 Willow Road |
| 443 |
|
|
Menlo Park, CA 94025 |
| 444 |
|
|
]PRE] |
| 445 |
|
|
> |
| 446 |
|
|
EMail: LM@att.com |
| 447 |
|
|
http://larry.masinter.net |
| 448 |
|
|
]PRE] |
| 449 |
|
|
|
| 450 |
|
|
|
| 451 |
|
|
* 9. References |
| 452 |
|
|
|
| 453 |
|
|
[PRE[ |
| 454 |
|
|
[CLIMAPS] Seidman, J., "A Proposed Extension to HTML: Client-Side |
| 455 |
|
|
Image Maps", RFC 1980, August 1996. |
| 456 |
|
|
]PRE] |
| 457 |
|
|
|
| 458 |
|
|
[PRE[ |
| 459 |
|
|
[FORMDATA] Masinter, L., "Returning Values from Forms: |
| 460 |
|
|
multipart/form-data", RFC 2388, August 1998. |
| 461 |
|
|
]PRE] |
| 462 |
|
|
|
| 463 |
|
|
[PRE[ |
| 464 |
|
|
[HTML20] Berners-Lee, T. and D. Connolly, "Hypertext Markup |
| 465 |
|
|
Language - 2.0", RFC 1866, November 1995. |
| 466 |
|
|
]PRE] |
| 467 |
|
|
|
| 468 |
|
|
[PRE[ |
| 469 |
|
|
[HTML30] Raggett, D., "HyperText Markup Language Specification |
| 470 |
|
|
Version 3.0", September 1995. (Available at |
| 471 |
|
|
<http://www.w3.org/MarkUp/html3/CoverPage>). |
| 472 |
|
|
]PRE] |
| 473 |
|
|
|
| 474 |
|
|
[PRE[ |
| 475 |
|
|
[HTML32] Raggett, D., "HTML 3.2 Reference Specification", W3C |
| 476 |
|
|
Recomendation, January 1997. |
| 477 |
|
|
Available at <http://www.w3.org/TR/REC-html32>. |
| 478 |
|
|
]PRE] |
| 479 |
|
|
|
| 480 |
|
|
[PRE[ |
| 481 |
|
|
[HTML40] Raggett, D., et al., "HTML 4.0 Specification", W3C |
| 482 |
|
|
Recommendation, December 1997. |
| 483 |
|
|
Available at <http://www.w3.org/TR/1998/REC-html40- |
| 484 |
|
|
19980424> |
| 485 |
|
|
]PRE] |
| 486 |
|
|
|
| 487 |
|
|
[PRE[ |
| 488 |
|
|
[HTML401] Raggett, D., et al., "HTML 4.01 Specification", W3C |
| 489 |
|
|
Recommendation, December 1999. |
| 490 |
|
|
Available at <http://www.w3.org/TR/html401>. |
| 491 |
|
|
]PRE] |
| 492 |
|
|
|
| 493 |
|
|
[PRE[ |
| 494 |
|
|
[HTTP] Gettys, J., Fielding, R., Mogul, J., Frystyk, H., |
| 495 |
|
|
Masinter, L., Leach, P. and T. Berners-Lee, "Hypertext |
| 496 |
|
|
Transfer Protocol -- HTTP/1.1", RFC 2616, June 1999. |
| 497 |
|
|
]PRE] |
| 498 |
|
|
|
| 499 |
|
|
[PRE[ |
| 500 |
|
|
[I18N] Yergeau, F., Nicol, G. and M. Duerst, |
| 501 |
|
|
"Internationalization of the Hypertext Markup Language", |
| 502 |
|
|
RFC 2070, January 1997. |
| 503 |
|
|
]PRE] |
| 504 |
|
|
|
| 505 |
|
|
[PRE[ |
| 506 |
|
|
[MHTML] Palme, J., Hotmann, A. and N. Shelness, "MIME |
| 507 |
|
|
Encapsulation of Aggregate Documents, such as HTML |
| 508 |
|
|
(MHTML)", RFC 2557, March 1999. |
| 509 |
|
|
]PRE] |
| 510 |
|
|
|
| 511 |
|
|
[PRE[ |
| 512 |
|
|
[MIME] Freed, N. and N. Borenstein, "Multipurpose Internet Mail |
| 513 |
|
|
Extensions (MIME) Part Two: Media Types", RFC 2046, |
| 514 |
|
|
November 1996. |
| 515 |
|
|
]PRE] |
| 516 |
|
|
|
| 517 |
|
|
[PRE[ |
| 518 |
|
|
[TABLES] Raggett, D., "HTML Tables", RFC 1942, May 1996. |
| 519 |
|
|
]PRE] |
| 520 |
|
|
|
| 521 |
|
|
[PRE[ |
| 522 |
|
|
[UPLOAD] Nebel, E. and L. Masinter, "Form-based File Upload in |
| 523 |
|
|
HTML", RFC 1867, November 1995. |
| 524 |
|
|
]PRE] |
| 525 |
|
|
|
| 526 |
|
|
[PRE[ |
| 527 |
|
|
[URI] Berners-Lee, T., Fielding, R. and L. Masinter, "Uniform |
| 528 |
|
|
Resource Identifiers (URI): Generic Syntax", RFC 2396, |
| 529 |
|
|
August 1998. |
| 530 |
|
|
]PRE] |
| 531 |
|
|
|
| 532 |
|
|
[PRE[ |
| 533 |
|
|
[XHTML1] "XHTML 1.0: The Extensible HyperText Markup Language: A |
| 534 |
|
|
Reformulation of HTML 4 in XML 1.0", W3C Recommendation, |
| 535 |
|
|
January 2000. Available at <http://www.w3.org/TR/xhtml1>. |
| 536 |
|
|
]PRE] |
| 537 |
|
|
|
| 538 |
|
|
|
| 539 |
|
|
* 10. Full Copyright Statement |
| 540 |
|
|
|
| 541 |
|
|
[PRE[ |
| 542 |
|
|
Copyright (C) The Internet Society (2000). All Rights Reserved. |
| 543 |
|
|
]PRE] |
| 544 |
|
|
|
| 545 |
|
|
[PRE[ |
| 546 |
|
|
This document and translations of it may be copied and furnished to |
| 547 |
|
|
others, and derivative works that comment on or otherwise explain it |
| 548 |
|
|
or assist in its implementation may be prepared, copied, published |
| 549 |
|
|
and distributed, in whole or in part, without restriction of any |
| 550 |
|
|
kind, provided that the above copyright notice and this paragraph are |
| 551 |
|
|
included on all such copies and derivative works. However, this |
| 552 |
|
|
document itself may not be modified in any way, such as by removing |
| 553 |
|
|
the copyright notice or references to the Internet Society or other |
| 554 |
|
|
Internet organizations, except as needed for the purpose of |
| 555 |
|
|
developing Internet standards in which case the procedures for |
| 556 |
|
|
copyrights defined in the Internet Standards process must be |
| 557 |
|
|
followed, or as required to translate it into languages other than |
| 558 |
|
|
English. |
| 559 |
|
|
]PRE] |
| 560 |
|
|
|
| 561 |
|
|
[PRE[ |
| 562 |
|
|
The limited permissions granted above are perpetual and will not be |
| 563 |
|
|
revoked by the Internet Society or its successors or assigns. |
| 564 |
|
|
]PRE] |
| 565 |
|
|
|
| 566 |
|
|
[PRE[ |
| 567 |
|
|
This document and the information contained herein is provided on an |
| 568 |
|
|
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING |
| 569 |
|
|
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING |
| 570 |
|
|
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION |
| 571 |
|
|
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF |
| 572 |
|
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
| 573 |
|
|
]PRE] |
| 574 |
|
|
|
| 575 |
|
|
|
| 576 |
|
|
* Acknowledgement |
| 577 |
|
|
|
| 578 |
|
|
[PRE[ |
| 579 |
|
|
Funding for the RFC Editor function is currently provided by the |
| 580 |
|
|
Internet Society. |
| 581 |
|
|
]PRE] |
| 582 |
|
|
|
| 583 |
|
|
|
| 584 |
|
|
* メモ |
| 585 |
|
|
|
| 586 |
|
|
Connolly & Masinter Informational [Page 8] |
| 587 |
|
|
[PRE[ |
| 588 |
|
|
|
| 589 |
|
|
]PRE] |
| 590 |
|
|
|
| 591 |
|
|
[1] |
| 592 |
|
|
[CITE@en[RFC 2854 The 'text/html' Media Type]] ([TIME[2007-01-21 19:16:42 +09:00]] 版) <http://tools.ietf.org/html/rfc2854> |
| 593 |
|
|
([[名無しさん]]) |
| 594 |
|
|
|