<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>仕様書</h1><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite xml:lang="en">XMLHttpRequest Standard</cite> (<time>2017-04-20 18:49:47 +09:00</time>) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://xhr.spec.whatwg.org/#text-response">https://xhr.spec.whatwg.org/#text-response</anchor-external></li></ul></refs></section><section><h1>歴史</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end>
<cite>[ajax] Safari の responseText で UTF-8 コード文字化け回避 Kawa.net Blog(ゆうすけブログ)/ウェブリブログ</cite> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://kawa.at.webry.info/200511/article_9.html">http://kawa.at.webry.info/200511/article_9.html</anchor-external>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2006-09-21 23:34:42 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite>Hawk's W3 Laboratory : XML : XMLHttpRequestについて</cite> (<time>2009-01-04 12:58:40 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://web.archive.org/web/20060901145130/www.hawk.34sp.com/stdpls/xml/xmlhttprequest.html">http://web.archive.org/web/20060901145130/www.hawk.34sp.com/stdpls/xml/xmlhttprequest.html</anchor-external></p><blockquote><p>responseTextプロパティを参照することで、リソースをテキストとして取得することが出来ます。ただしこのとき用いられる文字エンコーディングはブラウザによって異なります。</p><dl><dt>IEの場合</dt><dd><ins>(...)</ins>
デフォルトではUTF-8と見なされるが、BOM付きのTF-16LE/BEおよびUTF-32も使用可能、XML宣言のエンコーディング指定は無視される、といったところですが、実際には Content-type ヘッダで適切な charset が指定されていればその他のエンコーディングも使用できます。</dd><dt>Geckoの場合</dt><dd>
ルールは少し複雑です。まずContent-type ヘッダで適切な charset が指定されていればそのエンコーディングが使用されます。指定がない場合、メディアタイプがresponseXMLでDOMDocumentに変換可能なものであれば自動判定されます(XML宣言の指定が使用されるわけではない)。そうでない場合はUTF-8が使用されます。</dd><dt>KHTMLの場合</dt><dd>
UTF-16LE/BEが使用可能なのは確認できましたが、それ以外はcharsetの指定やメディアタイプに関わらず使用できないようです。これはresponseXMLでも同様です。</dd><dt>Operaの場合</dt><dd>
いずれの場合においても自動判定されます。 </dd></dl></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite>IRC logs: freenode / #whatwg / 20110926</cite>
( (<time>2011-10-01 00:28:35 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://krijnhoetmer.nl/irc-logs/whatwg/20110926">http://krijnhoetmer.nl/irc-logs/whatwg/20110926</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite xml:lang="en"><strong></strong>[<strong></strong>XHR2<strong></strong>]<strong></strong> responseText for text/html before the encoding has stabilized</cite>
( (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Henri Sivonen</anchor> 著, <time>2011-09-29 20:49:17 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1747.html">http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1747.html</anchor-external></p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="ja">XMLHttpRequest の拡張機能 (Windows)</cite>
(<time>2015-03-28 21:17:49 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://msdn.microsoft.com/ja-jp/library/ie/hh673569(v=vs.85).aspx">https://msdn.microsoft.com/ja-jp/library/ie/hh673569(v=vs.85).aspx</anchor-external></figcaption><blockquote><p>Internet Explorer 10 では、次の例に示すように、XMLHttpRequest 要求への応答の読み込み中に responseText プロパティの読み取りを可能にすることで、マルチパート HTTP ストリーミング (Comet ストリーミングとも呼びます) をサポートしています。</p><p>以前のバージョンの Windows Internet Explorer では、readyState プロパティが done に設定されている場合のみ responseText プロパティを読み取ることができます。</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <cite>Progressive XMLHttpRequest on kylescholz.com :: blog</cite>
(<time>2010-12-27 11:33:05 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.kylescholz.com/blog/2010/01/progressive_xmlhttprequest_1.html">http://www.kylescholz.com/blog/2010/01/progressive_xmlhttprequest_1.html</anchor-external></p></section></body></html>