/
920.txt
220 lines (163 loc) · 10.5 KB
/
920.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
* noscript 要素型 (HTML, XHTML 1)
[1] [[HTML]] の [DFN[[CODE(HTMLe)[noscript]] 要素型]]の要素は、
[[スクリプト]]が実行されないときの[[代替内容]]を提供します。
[9] 仕様書:
- [[HTML 4]]
-- [CITE[18.3.1 The [CODE(HTMLe)[NOSCRIPT]] element]]
<IW:HTML4:"interact/scripts.html#edef-NOSCRIPT">
[8]
:状態:[[W3C]] [[勧告]]
:[[名前空間URI]]:[CODE(URI)@en[[[http://www.w3.org/1999/xhtml]]]]
:[[局所名]]:[CODE(HTMLe)@en[[[noscript]]]]
([Q@en[[[script]]]] ([[スクリプト]]) の否定
[WEAK[(未対応 / 未実行)]] より)
:[[開始タグ]]:必須
:[[終了タグ]]:必須
:[[内容模型]]:[CODE(SGML)[(%[[block]];)+]]
:出現できる文脈:[CODE(SGML)[%block]] な文脈
:[[属性]]:
,属性名 ,属性値 ,既定値 ,説明 ,状態 ,出典
,[CODE(HTMLa)[[[class]]]] , ,(なし) ,[[級]] ,"[HTML 4] %[[coreattrs]] ⊂ %[[attrs]], [XHTML 1] [[Core]] ⊂ [[Common]]"
,[CODE(HTMLa)[[[dir]]]] , , ,[[書字方向]] ,"[HTML 4] %[[i18n]] ⊂ %attrs, [XHTML 1] [[I18N]] ⊂ Common"
,[CODE(HTMLa)[[[id]]]] ,[CODE(SGML)[[[ID]]]] ,(なし) ,一意識別子 ,"[HTML 4] %coreattrs ⊂ %attrs, [XHTML 1] Core ⊂ Common"
,[CODE(HTMLa)[[[lang]]]] , , ,[[自然言語]] ,[HTML 4] %i18n ⊂ %attrs
,[CODE(HTMLa)[[[xml]]:lang]] , , ,自然言語 ,[XHTML 1] I18N ⊂ Common
,[CODE(HTMLa)[[[onclick]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %[[events]] ⊂ %attrs, [XHTML 1] [[Events]] ⊂ Common"
,[CODE(HTMLa)[[[ondblclick]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onkeydown]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onkeypress]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onkeyup]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onmousedown]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onmousemove]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onmouseout]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onmouseover]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[onmouseup]]]] ,[CODE(SGML)[%[[Script]]]] ,(なし) , ,"[HTML 4] %events ⊂ %attrs, [XHTML 1] Events ⊂ Common"
,[CODE(HTMLa)[[[style]]]] , , ,スタイル情報 ,"[HTML 4] %coreattrs ⊂ %attrs, [XHTML 1] [[Style]] ⊂ Common"
,[CODE(HTMLa)[[[title]]]] , , ,注釈的題 ,"[HTML 4] %coreattrs ⊂ %attrs, [XHTML 1] Core ⊂ Common"
** レンダリング
[10] スクリプト対応 UA は、次の場合のみ [CODE(HTMLe)[noscript]]
の内容をレンダリングするべきです [SRC[HTML 4 18.3.1]]。
- スクリプトを実行しないように設定されている場合。
- 文書の[RUBYB[前の方] [earlier]]の [CODE(HTMLe)[[[script]]]]
要素で呼出れたスクリプトの言語に対応していない場合。
スクリプト未対応 UA は、 [CODE(HTMLe)[noscript]]
の内容をレンダリングしなければなりません [SRC[HTML 4 18.3.1]]。
[12] どうやら、[[内在事象]]属性は無視のようです。
* 歴史
** XHTML2
[28] [[XHTML2]] にもはじめは含まれていましたが、第6次案で削除されました。
;; [CITE@en[XHTML 2.0]] ([TIME[2004-07-22 15:25:35 +09:00]] 版) <http://www.w3.org/TR/2004/WD-xhtml2-20040722/>
* 不思議解釈
[13] '''検索円陣 spam''': [CODE(HTMLe)@en[noscript]]
は近代[[視覚ブラウザ]]の初期設定では[[レンダリング]]されないことから、
[[検索円陣spam]] のためにこの[[要素]]が悪用されることがあります。
[[#comment]]
** 例
[11] 代替内容としてデータへのリンクを提供する例 [SRC[HTML 4 18.3.1]]
[PRE(HTML)[
<SCRIPT type="text/tcl">
[VAR[...some Tcl script to insert data...]]
</SCRIPT>
<NOSCRIPT>
<P>Access the <A href="http://someplace.com/data">data.</A>
</NOSCRIPT>
]PRE]
[[#comment]]
** メモ
[2] >>1 文書構造的にはなんなんだ? って気はする。
[[XHTML 2]] で整理を希望。
[3] こういうのを [[JavaScript]] のみ対応の [[UA]]
に与えたら、あんまり嬉しい結果にならないような。
[PRE[
<script type="text/vbscript" language="vbscript">
msgbox "Hello VB!"
</script>
<noscript>
<p>Your User Agent does not support VBScript.</p>
</noscript>
]PRE]
[4] >>3 XHTML 2 WD にはこうある。古い HTML でも同じだと思われ。
だから、希望通りになる''はず''だ。
- The user agent is configured not to evaluate scripts.
- The user agent doesn't support a scripting language invoked by a script element earlier in the document.
- The user agent can't access an external script.
ただ、「早い部分」なんていい加減な条件だしなー。
何とかした方がいいと思う。 (というか埋め込み script
はやめた方がいい。外部にしる!)
[5] ''4'': なんで XHTML2 WD から引用するのかって? そりゃあたまたま見てたからっすよ。
[6] [[HTML 4]] でも >>4 と同じ。で、「早い部分」だと
[PRE[
<script type="text/javascript" />
<noscriot id="js" />
<script type="text/vbscript" />
<noscript id="vb" />
]PRE]
[[VBScript]] のみ非対応の場合に、
[CODE[#vb]] はレンダリングするとして、
[CODE[#js]]
をレンダリングしてよいのか不明だ、 [CODE[#vb]]
だけするように明確化汁!
って [[www-html]] に書いた人がいたんだけど、違う script
言語まぜて何か良いことあるの? って言われてますな。
(2003-02-01)
[7] <http://pc.2ch.net/hp/kako/1008/10083/1008380243.html>: HTML 4 の [CODE(HTML)[noscript]] 要素の親・子の[[内容模型]]について。
[14]
''Bug 127137 - noscript not used for non-javascript types'' <https://bugzilla.mozilla.org/show_bug.cgi?id=127137>
([[名無しさん]])
[15]
[[Netscape Navigator 3]]で導入されました。
;; [CITE[Welcome to Netscape Navigator 3.03]] <http://wp.netscape.com/eng/mozilla/3.0/relnotes/windows-3.03.html#JavaScript>
([[名無しさん]] [sage])
[16]
[CITE[<noscript> per HTML 4.01 - Anne’s Weblog about Markup & Style]] <http://annevankesteren.nl/2006/01/noscript>
([[名無しさん]] [WEAK[2006-01-31 02:02:52 +00:00]])
[17]
[CITE[www-html@w3.org from July 2006: by thread]] <http://lists.w3.org/Archives/Public/www-html/2006Jul/thread.html#msg37>
[CODE(HTMLe)@en[[[noscript]]]] は [CODE(JS)@en[[[document]].[[write]]]]
の代わりだから、それが動かない [[XHTML]]
では不要だと [[Steven Pemberton]] は言っています。
([[名無しさん]] [WEAK[2006-08-05 05:54:30 +00:00]])
[18]
[CITE@en[HP.com no clue NOSCRIPT - miscoded - by Hallvord R. M. Steen]] ([CODE[2007-03-25 15:23:28 +09:00]] 版) <http://my.opera.com/hallvors/blog/2007/03/23/hp-com-no-clue-noscript>
([[名無しさん]] [WEAK[2007-03-25 06:26:48 +00:00]])
[23]
[CITE[Bug 815 – We shouldn't process content inside <NOSCRIPT> tags]] ([CODE[2007-04-21 19:19:34 +09:00]] 版) <https://bugzilla.mozilla.org/show_bug.cgi?id=815>
([[名無しさん]])
[24]
[CITE[<noscript> should be allowed in <head>]] ([[David Hyatt <hyatt@...>]] 著, [CODE[2007-05-29 22:11:22 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/10851>
([[名無しさん]] [WEAK[2007-06-04 11:56:13 +00:00]])
[26]
[CITE@en[Re: XHTML handler module - no equivalent to NOSCRIPT? (PR#8018)]] ([[Steven Pemberton]] 著, [CODE[2007-08-21 00:15:02 +09:00]] 版) <http://lists.w3.org/Archives/Public/public-xhtml2/2007Aug/0018.html>
([[名無しさん]])
[27]
[CITE[Re: several messages about <noscript>]] ([[Ian Hickson <ian@...>]] 著, [CODE[2008-04-12 07:25:48 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/13686>
([[名無しさん]])
[[#comment]]
* メモ
[29] [CITE@en[(X)HTML5 Tracking]]
([TIME[2009-12-15 08:02:36 +09:00]] 版)
<http://html5.org/tools/web-apps-tracker?from=4441&to=4442>
[30] [CITE[IRC logs: freenode / #whatwg / 20110405]]
( ([TIME[2011-04-12 08:49:42 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20110405>
[31] [CITE@en[Allow <noscript> in <head>?]]
( ([[Raphaël Quinet]] 著, [TIME[2003-03-04 00:55:22 +09:00]] 版))
<http://lists.w3.org/Archives/Public/www-html-editor/2003JanMar/0082.html>
[32] [CITE@en[Web Applications 1.0 r2529 MAJOR CHANGES: Revamp the way scripts are specified, along with their interaction with resolving relative URLs, etc. Give enough detail to justify objects in the DOM not being garbage collected randomly when still in use. Define script groups, to handle scripts going away during document.open() and session history navigation. Define why and how setTimeout(), database transactions, etc, handle page transitions. Drop the terms 'with' and 'without' script, use script is 'enabled'/'disabled' instead. Define 'unload' and 'beforeunload'. Rework how onfoo='' and .onfoo event handler attributes are defined. Rework how the content model of <noscript> is defined. Reword the way javascript: is defined to use the new terminology. Add a few notes of things that came up while I was doing all that.]]
( ([TIME[2008-12-12 17:46:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=2528&to=2529>
[33] [CITE[Welcome to Netscape Navigator 3.04]]
( ([TIME[2014-04-07 08:44:57 +09:00]] 版))
<http://web.archive.org/web/20030208045953/http://wp.netscape.com/eng/mozilla/3.0/relnotes/windows-3.04.html#Features>
[34] [CITE@en[Web Applications 1.0 r8603 Make this <noscript> content model algorithm mildly simpler]]
( ([TIME[2014-05-06 06:26:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8602&to=8603>
[35] [CITE@en[Web Applications 1.0 r8733 Make noscript work in ATs when scripting is disabled]]
( ([TIME[2014-08-30 04:26:00 +09:00]] 版))
<http://html5.org/r/8733>
[19] [CITE@en[Define <noscript>'s rendering in terms of the `scripting` CSS media f… · whatwg/html@0a8ae31]]
([TIME[2015-08-29 15:58:21 +09:00]] 版)
<https://github.com/whatwg/html/commit/0a8ae31e9b117725634affa6b9dd8868274aa9cf>
[20] [CITE@en[Simplify last commit per suggestion from @tabatkins · whatwg/html@a59f63d]]
([TIME[2015-08-29 15:58:36 +09:00]] 版)
<https://github.com/whatwg/html/commit/a59f63d7ae5cf44851d2cf87dde506a0e998c090>