#?SuikaWiki/0.9 [1] この WikiPage では、色々な[[スクリプトの媒体型]]や [[language]] 属性の指定にお使いの [[UA]] が対応しているかどうかをご覧になれます。 [2] 場合によっては既にこれを読む前にスクリプト・エラーが出たかもしれませんが、あまり気にしなくても構いません。 [3] 「Add」ボタンを押すと記録を残せます。 参考として是非記録して行って下さい。 (テストは複数あります。お手数ですがそれぞれ「Add」して下さい。) [4] 参考: テスト項目の中には、実際には存在しない値も含まれています。 全ての値について「OK」が出れば正しいというものではありません。 特に、不正な値のテストは OK が出る方がおかしい場合もありえます。 - [5] なお、正しい指定方法については [[script]] 要素, [[スクリプトの媒体型]], [[JavaScript関係の媒体型]]などをご覧下さい。 - [20] >>3 ぐちゃぐちゃになっちゃうけどうまくまとめる方法ないかなあ? [[#comment]] * JavaScript [[#form:'%script-test-supported-list(caption=>"type 属性による指定",id=>stest,type=>"text/javascript,text/ecmascript,application/javascript,application/ecmascript,text/x-javascript,application/x-javascript,application/x-ecmascript,text/livescript,text/jscript,text/javascript1.0,text/javascript1.1,text/javascript1.2,text/javascript1.3,text/javascript1.4,text/javascript1.5,text/javascript1.6,text/javascript1.7,text/javascript2.0,text/javascript-de-nai-nanika"); %script-test-supported-list(caption=>"language 属性による指定",id=>stest,language=>",javascript,javascript1.0,javascript1.1,javascript1.2,javascript1.3,javascript1.4,javascript1.5,javascript1.6,javascript1.7,javascript2.0,javascript1.10,livescript,jscript,ecmascript"); %script-test-supported-list(caption=>"type 属性による指定 (版情報つき)",id=>stest,type=>"text/javascript;version=1.0,text/javascript;version=1.1,text/javascript;version=1.2,text/javascript;version=1.3,text/javascript;version=1.4,text/javascript;version=1.5,text/javascript;version=1.6,text/javascript;version=1.7,text/javascript;version=1.00,text/javascript;charset=euc-jp;version=1.1"); %text(label=>"User-Agent:",id=>ua,default=>"%cgi-meta-variable(category=>HTTP,name=>USER_AGENT);",size=>20); %textarea(id=>comment,label=>"Comment (if any): "); %submit(label=>Add);':'%n;[%index;] ([WEAK[%date;]]) {User-Agent: %text(source=>ua);}%n;%text(source=>comment);%n;%script-test-supported-list(source=>stest);%n;':'%output(reverse);']] [28] ([WEAK[2004-04-06 02:35:01 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} ahoaho [undef: script_test_supported_list] [27] ([WEAK[2004-04-06 02:32:56 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [undef: script_test_supported_list] [26] ([WEAK[2004-04-02 19:43:50 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [undef: script_test_supported_list] [24] ([WEAK[2003-12-29 09:18:02 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [script_test_supported_list: undef] [22] ([WEAK[2003-10-29 11:09:36 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [script_test_supported_list: undef] [21] ([WEAK[2003-09-19 02:00:13 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [script_test_supported_list: undef] [19] ([WEAK[2003-01-25 11:56]]) {User-Agent: Mozilla/4.01 [ja] (Win95; I)} , , ,JS , ,javascript ,JS , ,javascript1.1 ,JS , ,javascript1.2 ,JS , ,livescript ,JS ,application/x-javascript , ,JS ,text/javascript , ,JS [16] ([WEAK[2003-01-25 11:28]]) {User-Agent: Mozilla/2.01I [ja] (Win95; I)} script error まみれ (type 属性のない VBS/PS のせい) でしぬかとおもいました:) , , ,JS , ,javascript ,JS , ,livescript ,JS ,application/ecmascript , ,JS ,application/javascript , ,JS ,application/x-ecmascript , ,JS ,application/x-javascript , ,JS ,text/ecmascript , ,JS ,text/javascript-de-nai-nanika , ,JS ,text/javascript1.0 , ,JS ,text/javascript1.1 , ,JS ,text/javascript1.2 , ,JS ,text/javascript1.3 , ,JS ,text/javascript1.4 , ,JS ,text/javascript1.5 , ,JS ,text/javascript1.6 , ,JS ,text/javascript1.7 , ,JS ,text/javascript2.0 , ,JS ,text/javascript;charset=euc-jp;version=1.1 , ,JS ,text/javascript;version=1.00 , ,JS ,text/javascript;version=1.0 , ,JS ,text/javascript;version=1.1 , ,JS ,text/javascript;version=1.2 , ,JS ,text/javascript;version=1.3 , ,JS ,text/javascript;version=1.4 , ,JS ,text/javascript;version=1.5 , ,JS ,text/javascript;version=1.6 , ,JS ,text/javascript;version=1.7 , ,JS ,text/javascript , ,JS ,text/jscript , ,JS ,text/livescript , ,JS ,text/x-javascript , ,JS [13] ([WEAK[2003-01-25 11:14]]) {User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Windows 95)} type 属性を知らないらしい。 language=jscript にも未対応! , , ,JS , ,javascript ,JS , ,livescript ,JS ,application/ecmascript , ,JS ,application/javascript , ,JS ,application/x-ecmascript , ,JS ,application/x-javascript , ,JS ,text/ecmascript , ,JS ,text/javascript-de-nai-nanika , ,JS ,text/javascript1.0 , ,JS ,text/javascript1.1 , ,JS ,text/javascript1.2 , ,JS ,text/javascript1.3 , ,JS ,text/javascript1.4 , ,JS ,text/javascript1.5 , ,JS ,text/javascript1.6 , ,JS ,text/javascript1.7 , ,JS ,text/javascript2.0 , ,JS ,text/javascript;charset=euc-jp;version=1.1 , ,JS ,text/javascript;version=1.00 , ,JS ,text/javascript;version=1.0 , ,JS ,text/javascript;version=1.1 , ,JS ,text/javascript;version=1.2 , ,JS ,text/javascript;version=1.3 , ,JS ,text/javascript;version=1.4 , ,JS ,text/javascript;version=1.5 , ,JS ,text/javascript;version=1.6 , ,JS ,text/javascript;version=1.7 , ,JS ,text/javascript , ,JS ,text/jscript , ,JS ,text/livescript , ,JS ,text/x-javascript , ,JS [9] ([WEAK[2003-01-25 10:21]]) {User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)} , , ,JS , ,ecmascript ,JS , ,javascript ,JS , ,javascript1.1 ,JS , ,javascript1.2 ,JS , ,javascript1.3 ,JS , ,jscript ,JS , ,livescript ,JS ,text/ecmascript , ,JS ,text/javascript1.1 , ,JS ,text/javascript1.2 , ,JS ,text/javascript1.3 , ,JS ,text/javascript , ,JS ,text/jscript , ,JS ,text/livescript , ,JS [6] ([WEAK[2003-01-25 10:12]]) {User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212} , , ,JS , ,javascript ,JS , ,javascript1.0 ,JS , ,javascript1.1 ,JS , ,javascript1.2 ,JS , ,javascript1.3 ,JS , ,javascript1.4 ,JS , ,javascript1.5 ,JS , ,livescript ,JS ,application/x-javascript , ,JS ,text/javascript;charset=euc-jp;version=1.1 , ,JS ,text/javascript;version=1.0 , ,JS ,text/javascript;version=1.1 , ,JS ,text/javascript;version=1.2 , ,JS ,text/javascript;version=1.3 , ,JS ,text/javascript;version=1.4 , ,JS ,text/javascript;version=1.5 , ,JS ,text/javascript , ,JS * VBScript, その他 [[#form:'%script-test-supported-list(id=>stest, caption=>"VBScript (type 属性)", type=>"text/vbscript,text/vbs,text/vb,text/x-vbscript,text/x-vbs,application/vbscript,application/x-vbscript,application/vbs", script_lang=>"vbscript,vbscript,vbscript,vbscript,vbscript,vbscript,vbscript,vbscript"); %script-test-supported-list(id=>stest,caption=>"VBScript (language 属性)", language=>"vbscript,vbs,vb", script_lang=>"vbscript,vbscript,vbscript"); %script-test-supported-list(id=>stest,caption=>"その他のスクリプト", language=>",,,,,perlscript", type=>"text/perlscript,text/x-perlscript,application/perlscript,application/x-perlscript,application/x-perl", script_lang=>"perlscript,perlscript,perlscript,perlscript,perlscript,perlscript,perlscript,perlscript"); %text(label=>"User-Agent:",id=>ua,default=>"%cgi-meta-variable(category=>HTTP,name=>USER_AGENT);",size=>20); %textarea(id=>comment,label=>"Comment (if any): "); %submit(label=>Add);':'%n;[%index;] ([WEAK[%date;]]) {User-Agent: %text(source=>ua);}%n;%text(source=>comment);%n;%script-test-supported-list(source=>stest);%n;':'%output(reverse);']] [29] ([WEAK[2004-05-12 00:03:24 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} res [undef: script_test_supported_list] [25] ([WEAK[2004-03-12 20:17:27 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [script_test_supported_list: undef] [23] ([WEAK[2003-10-31 03:22:12 +00:00]]) {User-Agent: %cgi-meta-variable(category=>HTTP,name=>USER_AGENT);} [script_test_supported_list: undef] [14] ([WEAK[2003-01-25 11:15]]) {User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Windows 95)} , ,vbs ,VBS , ,vbscript ,VBS [12] ([WEAK[2003-01-25 10:35]]) {User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)} [[ActivePerl]] あり。 , ,perlscript ,PS(5.8.0) , ,vbs ,VBS , ,vbscript ,VBS ,text/perlscript , ,PS(5.8.0) ,text/vbs , ,VBS ,text/vbscript , ,VBS [7] ([WEAK[2003-01-25 10:16]]) {User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212} [[VBS]] に対応せず。 * 不正又は未対応の指定への対応 [[#form:'%script-test-supported-list(id=>stest,type=>"text/vbscript,text/vbscript,text/javascript,text/javascript,,application/x-nazo-script", language=>"javascript,javascript,vbscript,vbscript,nazo-script,", script_lang=>"javascript,vbscript,javascript,vbscript"); %text(label=>"User-Agent:",id=>ua,default=>"%cgi-meta-variable(category=>HTTP,name=>USER_AGENT);",size=>20); %textarea(id=>comment,label=>"Comment (if any): "); %submit(label=>Add);':'%n;[%index;] ([WEAK[%date;]]) {User-Agent: %text(source=>ua);}%n;%text(source=>comment);%n;%script-test-supported-list(source=>stest);%n;':'%output(reverse);']] [18] ([WEAK[2003-01-25 11:55]]) {User-Agent: Mozilla/4.01 [ja] (Win95; I)} ,text/javascript ,vbscript ,JS [15] ([WEAK[2003-01-25 11:16]]) {User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Windows 95)} ,application/x-nazo-script , ,JS ,text/javascript ,vbscript ,VBS ,text/vbscript ,javascript ,JS [11] ([WEAK[2003-01-25 10:24]]) {User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)} >>8 に同じ。 ,text/javascript ,vbscript ,JS ,text/vbscript ,javascript ,VBS [8] ([WEAK[2003-01-25 10:17]]) {User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212} type 属性があると language 属性が無視されるため、 language=vbscript でも実行されてしまう。 ,text/javascript ,vbscript ,JS - [17] {User-Agent: Mozilla/2.01I [ja] (Win95; I)} では VBS が実行されないのを除いて >>15 と同じ。