-
Notifications
You must be signed in to change notification settings - Fork 4
/
261.txt
432 lines (325 loc) · 22.1 KB
/
261.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
[36] [DFN[[CODE(URI)@en[[[javascript:]]]] [[URL]]]] は、 [[Webブラウザー]]によって
[[JavaScript]] として解釈され、実行される [[URL]] です。
* 仕様書
[REFS[
- [67] [CITE@en[URL schemes - WHATWG Wiki]] ([TIME[2014-10-12 01:44:12 +09:00]] 版) <https://wiki.whatwg.org/wiki/URL_schemes#javascript:_URLs>
- [35] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2015-03-05 09:33:40 +09:00]] 版) <https://html.spec.whatwg.org/#javascript-protocol>
]REFS]
* 構文
[60] [CODE(URI)@en[[[javascript:]]]] [[URL]] は、 [[URL scheme]]
である [CODE(URI)@en[[[javascript]]]] と区切りの [CODE[[[:]]]]
の後に [[JavaScript]] の[[ソースコード]]を指定するものです。
ただし、[[ソースコード]]の部分は[[パーセント符号化]]を使うことができます。
[FIG(railroad)[
= [CODE(URL)@en[[[javascript:]]]]
= [[パーセント符号化]]された [[JavaScript]] コード
]FIG]
[61] [[URL query]] や[[素片識別子]]は使うことができず、 [CODE[[[?]]]] や
[CODE[#]] も含めてすべて [[JavaScript]] の一部と解釈されます [SRC[>>67]]。
[68] [[JavaScript]] コードの先頭の [[U+FEFF]] は、 [[BOM]] とみなされます [SRC[>>67]]。
;; [69] [[HTML]] の [[navigate]] にはこれに対応する規定がありません。
[[JavaScript]] としては [[BOM]] でなくても [[U+FEFF]] は無視されるため、結果同じとなります。
* navigate 演算
[21] [[URL scheme]] が [CODE(URI)@en[[[javascript:]]]] な [[URL]]
への [[navigate]] は、 [VAR[[[navigate]] される[[閲覧文脈]]]]の[F[[[活性文書]]]]に関して次のような手順を実行する[[DOM操作タスク源]]の[[タスク]]を[[タスクキュー]]に入れなければ[['''なりません''']] [SRC[>>35]]。
;; [66] この手順は、 [[navigate]] アルゴリズム本体の変数である[VAR[[[資源]]]]、
[VAR[[[原始閲覧文脈]]]]を参照します。
また[VAR[[[上書きURL]]]]に書き込みます。
[FIG(steps)[
= [78] [VAR[文書]]を、[VAR[[[navigate]] される[[閲覧文脈]]]]の[F[[[活性文書]]]]に設定します。
= [82] [VAR[番地]]を、[VAR[文書]]の[F[[[文書の番地]]]]に設定します。
= [85] [VAR[設定群]]を、[VAR[文書]]の
[F[[CODE(DOMi)@en[Window]]]]の[F[環境設定群オブジェクト]]に設定します。
= [24] [VAR[[[原始閲覧文脈]]]]の[F[活性文書]]の[F[起源]]と[VAR[文書]]の[F[起源]]が[[同じ起源]]でないなら、
== [79] [VAR[結果]]を、 [CODE(JS)@en[undefined]] に設定します。
= [52] それ以外なら、
== [53] [VAR[スクリプト]]を、[[古典スクリプトを作成]]した結果に設定します。
[FIG(list members)[
: [VAR[[[スクリプト]]ソース]] :
[VAR[資源]]の [F[URL]] に[[URL直列化器]]を適用した結果の先頭の
[CODE(URI)@en[javascript:]] を除去し、[[パーセント復号]]を適用した結果
: [VAR[[[環境設定群オブジェクト]]]] : [VAR[設定群]]
: [VAR[[[エラーミュート]]]]フラグ : 未設定
]FIG]
== [54] [VAR[結果]]を、[VAR[スクリプト]]について[[古典スクリプトを実行]]した結果に設定します。
ただし[[例外]]が投げられた場合は、[VAR[結果]]を [CODE(JS)@en[undefined]] に設定します。
= [55] [CODE[[[Type]]([VAR[結果]])]] が [CODE(JS)@en[String]] ''以外''なら、
== [80] [VAR[応答]]を、新しい [CODE(HTTP)[[[204]]]] [[応答]]に設定します。
[FIG(list members)[
[FIGCAPTION[
[[応答]]
]FIGCAPTION]
:[F[[[状態]]]]:[CODE(HTTP)[[[204]]]]
]FIG]
= [56] それ以外なら、
== [81] [VAR[応答]]を、新しい[[応答]]に設定します。
[FIG(list members)[
[FIGCAPTION[
[[応答]]
]FIGCAPTION]
:[F[[[状態]]]]:[CODE(HTTP)[[[200]]]]
:[F[[[ヘッダーリスト]]]]:
[FIG(list members)[
:[CODE(HTTP)@en[[[Content-Type]]]]:[CODE(MIME)@en[[[text/html]]]]
: [CODE(HTTP)@en[Referrer-Policy]] : [VAR[設定群]]の[F[参照元ポリシー]]
]FIG]
:[F[本体][応答本体]]: [VAR[結果]]
: [F[HTTPS状態]] : [VAR[設定群]]の[F[HTTPS状態]]
]FIG]
= [65] [VAR[[[上書きURL]]]]を、[VAR[番地]]に設定します。
= [57] [VAR[応答]]と[VAR[[[navigate]]される閲覧文脈]]について[[navigate応答の処理]]を実行します。
]FIG]
[EG[
[58] [CODE(HTML)@en[<[[a]] [[href]]>]] に指定された時はその[[閲覧文脈]]で評価されますし、
[CODE(HTML)@en[<[[iframe]] [[src]]>]] に指定された時はその [CODE(HTMLe)@en[[[iframe]]]]
の[[入れ子閲覧文脈]]で評価されます [SRC[>>35]]。
]EG]
[EG[
[59] 多くの [[Bookmarklet]] は、 [[navigate]] により他のページに遷移することを防ぐため、
最後に [CODE(JS)@en[[[void]]()]] を実行するなどして [[void]] を返すようにしています。
]EG]
;; [63] この手順は、他の [[URL scheme]] なら [[fetch]] に相当するものです。
[[スクリプト]]を実行するという特別な性質から、 [CODE(URI)@en[[[javascript:]]]]
[[URL]] から [[HTTP応答]]を取得する処理は [[fetch]] ではなく [[navigate]]
の一部として規定されています。このため [[fetch]] が直接呼び出される場面
(例えば [CODE(HTML)@en[<[[img]] [[src]]>]]) では [CODE(URI)@en[[[javascript:]]]]
[[URL]] を使うことができません。歴史的にはそのような場面でも [[JavaScript]]
を実行していた [[Webブラウザー]]も存在していました。
* 歴史
[REFS[
- [34] [CITE@en[draft-hoehrmann-javascript-scheme - The 'javascript' resource identifier scheme]]
<http://tools.ietf.org/html/draft-hoehrmann-javascript-scheme>
- [27] [CITE@en-GB-x-Hixie[Web Forms 2.0]] ([TIME[2009-01-05 20:07:15 +09:00]] 版) <http://www.whatwg.org/specs/web-forms/current-work/#for-javascript>
]REFS]
[1]
''不思議な指定? javascript:'css〜'について'' <http://www.parkcity.ne.jp/~chaichan/qanda/qa5032.htm>
[CODE(URI)[javascript:]] scheme を
[CODE(URI)[[[data]]:]] や [CODE(URI)[[[about]]:]] のように使うという話です。 (このスレ自体はレベルが低くて参考にはなりません。)
[[Gecko]] も [[WinIE 6]] も、
ブラウザのアドレス欄に
<javascript:"<p>abcdefg</p>"> のように入れてみると、評価結果を [[HTML]] として処理することが分かります。 (がおそらくその辺は適宜判断で、件の掲示板のスレのように [[CSS]] として解釈させることもできるのでしょう。)
これ、使い方によっては security hole になりかねないので注意する必要がありそうです・・って、 [CODE(URI)[javascript:]]
scheme 自体 security hole だから問題は変わっていませんか。
([[名無しさん]] [WEAK[2004-05-09 03:54:16 +00:00]])
[2]
そういえば [CODE(URI)[javascript:]] scheme の仕様はやっぱり存在していないのか? Netscape の仕様書くらいはあるのか?
[3] >>2 [[JavaScript 1.3]] のマニュアルより:
[4] ''Additional Topics — Using JavaScript URLs'' <http://devedge.netscape.com/library/manuals/2000/javascript/1.3/guide/advtopic.html#1004952>
- [CODE(HTMLa)[[[href]]]] 値として [CODE(URI)[javascript:]]
URI を使うことができる。
- [CODE(URI)[javascript:]] の後には、どんな[[文]]や[[関数呼出]]でも書くことができる。
- 評価結果が未定義 (undefined) なら、新しい文書は読込まれない。
- 評価結果が定義された型なら、[[文字列]]に変換され、
読込む文書の source とする。
[5] ''JavaScript Security'' <http://devedge.netscape.com/library/manuals/2000/javascript/1.3/guide/sec.html>
- [CODE(URI)[javascript:]] URI は未署名と見なす。
署名する方法はない。
[6] <http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/location.html#1203002>
URI scheme の説明。得られる情報は >>4 の subset。
[7] ''Displaying Errors with the JavaScript Console — Opening the JavaScript Console'' <http://devedge.netscape.com/library/manuals/2000/javascript/1.3/guide/console.html#1044393>
- [CODE(URI)[javascript:]] だけだと、 JavaScript Console を開く。
- JavaScript Console は JavaScript 1.3+ の機能である。
[[JavaScript 1.5]] のマニュアルには [CODE(URI)[javascript:]]
URI についての言及はありませんでした。
[8] ''javascript Protocol (Internet Explorer - Asynchronous Pluggable Protocols)'' <http://msdn.microsoft.com/workshop/networking/predefined/javascript.asp>
- [CODE(URI)[javascript:]] の後には、一つ以上の JavaScript
文を記述します。
- [[WinIE 3.0]]+ で実装されています。
[9]
[[Web Forms 2.0]] が >>3-7 の JavaScript 1.3 の説明書を [CODE(URI)[javascript:]] の出典に選んでいます ([[DevEdge]] はなくなっちゃったけど)。
だから JS1.3 が一番まともな原典なのかも。
[[WHAT]] WG がいずれ [CODE(URI)[javascript:]] の仕様も作ってくれると期待するのも一つの手(?)かも。
([[名無しさん]])
[10]
関連する [[URI scheme]]: [CODE(URI)[[[ecmascript]]:]],
[CODE(URI)[[[livescript]]:]],
[CODE(URI)[[[mocha]]:]],
[CODE(URI)[[[data]]:]]
([[名無しさん]] [sage])
[11]
[[VRML]] における [CODE(URI)@en[javascript:]] [[URI scheme]]
の定義:
= [CITE[VRML97, ISO/IEC 14772-1:1997 -- Annex C, ECMAScript Scripting Reference]] <http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/javascript.html#Access>
= [CITE[VRML97, ISO/IEC 14772-1:1997 -- 4 Concepts]] <http://www.web3d.org/x3d/specifications/vrml/ISO-IEC-14772-IS-VRML97WithAmendment1/part1/concepts.html#4.5.4>
([[名無しさん]] [sage])
[12]
[CITE@en[Extensible 3D (X3D), ISO/IEC 19775-1:200x, Part 1 -- 9 Networking component]]
<http://www.web3d.org/x3d/specifications/ISO-IEC-19775-IS-X3DAbstractSpecification/Part01/components/networking.html#ScriptingLanguageProtocols>
>>11 [[X3D]] における定義。 [CODE(URI)@en[javascript:]]
は非推奨になり、代わりに [CODE(URI)@en[[[ecmascript]]:]]
が用意されています。
([[名無しさん]] [sage])
[13]
>>12
[CITE@en[X3D Specification, ISO/IEC 19775-2:200x, Part 2, Annex A VRML97 Scripting Backwards Compatibility]]
<http://www.web3d.org/x3d/specifications/ISO-IEC-19775-IS-X3DAbstractSpecification/Part02/vrml97.html#InlineScriptDefinition>
([[名無しさん]] [sage])
[14]
[CITE[JavaScript in CSS files]] <http://www.quirksmode.org/css/javascript.html>
([[名無しさん]])
[15]
[CITE@en[The 'javascript' resource identifier scheme]]
<urn:ietf:id:draft-hoehrmann-javascript-ri-00>
<http://www.websitedev.de/ietf/draft-hoehrmann-javascript-ri-00.txt>
<http://ietfreport.isoc.org/idref/draft-hoehrmann-javascript-ri/>
([[名無しさん]] [WEAK[2006-10-28 15:11:00 +00:00]])
[16]
[CITE[The 'javascript' scheme from Bjoern Hoehrmann on 2006-10-28 (uri@w3.org from October 2006)]] <http://www.w3.org/mid/nb66k29fqd915t8u7f3lsn6oj2ctj5og5t@hive.bjoern.hoehrmann.de>
([[名無しさん]] [WEAK[2006-10-28 15:19:14 +00:00]])
[17]
[CITE[The 'javascript' scheme from Bjoern Hoehrmann on 2006-10-28 (uri@w3.org from October 2006)]] <http://www.w3.org/mid/nb66k29fqd915t8u7f3lsn6oj2ctj5og5t@hive.bjoern.hoehrmann.de>
([[名無しさん]] [WEAK[2006-10-28 15:19:32 +00:00]])
[18]
[CITE[crisp’s blog » Blog Archive » The useless javascript: pseudo-protocol]] <http://therealcrisp.xs4all.nl/blog/2006/12/05/the-useless-javascript-pseudo-protocol/>
([[名無しさん]] [WEAK[2006-12-18 23:05:31 +00:00]])
[19]
[CITE@ja[Firefox 1.5 の怪しい [CODE(HTML)@en[href="javascript:"]] 処理]] ([[わかば]] 著, [CODE[2007-04-26 22:07:50 +09:00]] 版) <http://suika.fam.cx/~wakaba/d/d200704#d7-1>
([[名無しさん]] [WEAK[2007-06-03 14:38:45 +00:00]])
[20]
[CITE@ja[Firefox 1.5 の怪しい [CODE(HTML)@en[href="javascript:"]] 処理]] ([[わかば]] 著, [CODE[2007-04-26 22:07:50 +09:00]] 版) <http://suika.fam.cx/~wakaba/d/d200704#d7-1>
([[名無しさん]] [TIME[2007-06-03 14:39:15 +00:00]])
[22]
[CODE(URI)@en[[[javascript]]:]] [[URI]] が[[文字列]]を返した場合、
[[Firefox]] 1.5 は ([CODE(HTMLe)@en[[[a]]]] や [[URI]]
の直接指定なら) [CODE(MIME)@en[[[text/html]]]]
と解釈しますが、
[[Opera]] 9 は現在の[[文書]]と同じ[[媒体型]]とみなすようです。
例えば、 [CODE(MIME)@en[[[text/xml]]]] [[文書]]:
[PRE(HTML example code)[
...
<a href="javascript:'a'">link</a>
...
]PRE]
... のリンクをたどると、 [[Firefox]] は [Q[a]]
と表示しますが、 [[Opera]] は[[整形式]]でないといってきます。
;; <http://suika.fam.cx/~wakaba/-temp/test/html/link/href/javascript/>
の data-*
([[名無しさん]])
[23]
[CITE[seamonkey mozilla/dom/src/jsurl/]] ([TIME[2007-07-25 20:12:42 +09:00]] 版) <http://mxr.mozilla.org/seamonkey/source/dom/src/jsurl/>
[25]
[CITE[hoshikuzu | star_dust の書斎 - 2007-09-18]] ([CODE[2007-09-21 11:56:34 +09:00]] 版) <http://d.hatena.ne.jp/hoshikuzu/20070918#p1>
([[名無しさん]])
[26]
[CITE@en[javascript: URIs]] ([TIME[2008-06-27 21:14:33 +09:00]] 版) <http://suika.fam.cx/~wakaba/-temp/test/uri/javascript/test.cgi#>
([[名無しさん]])
[28] [CITE[JavaScriptを記述、実行を促す動画について‐ニコニコニュース]]
([TIME[2009-09-12 02:40:15 +09:00]] 版)
<http://blog.nicovideo.jp/niconews/2009/09/004642.html>
[29] [CITE['''['''whatwg''']''' Javascript: URLs as element attributes]]
([TIME[2010-11-16 10:22:12 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-November/029042.html>
[30] [CITE[Inline Images on Web Pages]]
( ([TIME[2005-10-31 14:52:43 +09:00]] 版))
<http://elf.org/essay/inline-image.html>
[31] [CITE[The whatwg December 2010 Archive by thread]]
( ([TIME[2010-12-02 22:51:02 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-December/thread.html>
[32] [CITE['''['''whatwg''']''' Javascript: URLs as element attributes]]
([TIME[2011-02-10 12:23:16 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-February/030360.html>
[33] [CITE@en[Web Applications 1.0 r6139 Drop javascript: support from <img src>, <object data>, CSS, etc, etc, etc.]]
( ([TIME[2011-05-14 07:34:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=6138&to=6139>
[37] [CITE[Results for javascript: URL canonicalization (See <http://suika.fam.cx/www/url/perl-weburl/t/browsers/decomps.html?decomps-javascript.dat;compat>)]]
( ([TIME[2011-06-04 22:28:19 +09:00]] 版))
<http://suika.fam.cx/gate/test-results/list/url-canon-javascript-20110604/all>
[38] [CITE['''['''whatwg''']''' Javascript: URLs as element attributes]]
([TIME[2011-06-07 09:15:22 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-June/031940.html>
[39] [CITE[''''''[''''''whatwg'''''']'''''' URL: javascript URLs]]
( ([TIME[2012-09-28 11:45:50 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-September/037465.html>
[40] [CITE@en[URL schemes - WHATWG Wiki]]
( ([TIME[2012-12-03 10:54:13 +09:00]] 版))
<http://wiki.whatwg.org/wiki/URL_schemes>
[41] [CITE[Client-Side JavaScript Reference]]
( ([TIME[2011-02-10 00:16:32 +09:00]] 版))
<http://docs.oracle.com/cd/E19957-01/816-6408-10/location.htm#1193137>
[42] [CITE@en[Web Applications 1.0 r5865 Use 'javascript: scheme' instead of 'javascript: protocol'.]]
( ([TIME[2011-02-09 10:09:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5864&to=5865>
[43] [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>
[44] [CITE@en[Web Applications 1.0 r2683 Prevent cross-origin javascript: navigation of browsing contexts. Define the base URL and document's address of pages generated by javascript: URLs. Minor editorial tweaks.]]
( ([TIME[2009-01-21 09:58:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=2682&to=2683>
[45] [CITE@en[URL schemes - WHATWG Wiki]]
( ([TIME[2013-02-21 17:06:55 +09:00]] 版))
<http://wiki.whatwg.org/wiki/URL_schemes>
[46] [CITE@en[Bug 13720 – Define javascript: processing entirely inline, and make it only happen in the navigation algorithm; then, remove special-casing elsewhere, and make it non-conforming in those places]]
( ([TIME[2013-10-26 10:51:26 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=13720>
[70] [CODE(URI)@en[[[javascript:]]]] [[URL]] の処理は [[HTML Standard]]
で規定されるようになりました。しかし処理方法だけで、意味と構文の規定は行われていません。
[71] [[WHATWG Wiki]] のページ (>>45) は、 [CODE(URI)@en[[[javascript:]]]]
[[URL]] の意味を規定する、実質的な仕様書となっています。 [[I-D]] (>>15)
を[[廃止]]するものである [SRC[>>45]] と述べられています。
[47] [CITE[IRC logs: freenode / #whatwg / 20131107]]
( ([TIME[2013-11-09 12:27:06 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20131107#l-781>
[48] [CITE@en[Web Applications 1.0 r8285 Define the task settings for the javascript: task]]
( ([TIME[2013-11-16 01:18:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8284&to=8285>
[49] [CITE@en[Web Applications 1.0 r8284 Move javascript: processing entirely into HTML, and fix its definitions to match reality better at the same time.]]
( ([TIME[2013-11-16 00:56:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8283&to=8284>
[50] [CITE[IRC logs: freenode / #whatwg / 20131115]]
( ([TIME[2013-11-17 11:47:01 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20131115>
[51] [CITE@en[Web Applications 1.0 r2046 Require that <script src=javascript:...></script> result in no script execution, for any value of '...', for compatibility with most UAs.]]
([TIME[2008-08-11 19:14:00 +09:00]] 版)
<https://html5.org/r/2046>
* 関連
[62] かつて [[IE]] 向けに[[イベントハンドラー内容属性]]の先頭に
[CODE[javascript:]] と書くことで [[JavaScript]] であると明示する構文がありましたが、
これは [[URL]] ではありません。
[64] [CITE[Part2 - browsersec - Browser Security Handbook, part 2 - Browser Security Handbook - Google Project Hosting]]
([TIME[2015-03-31 16:42:55 +09:00]] 版)
<https://code.google.com/p/browsersec/wiki/Part2#URL_scheme_access_rules>
[72] [CITE@en[Location Hack does not work · Issue #2232 · greasemonkey/greasemonkey]]
([TIME[2015-08-15 11:40:28 +09:00]] 版)
<https://github.com/greasemonkey/greasemonkey/issues/2232>
[73] [CITE@en[1192821 – Regression: 39.0.3: Greasemonkey's "Location hack" no longer works]]
([TIME[2015-08-15 11:40:55 +09:00]] 版)
<https://bugzilla.mozilla.org/show_bug.cgi?id=1192821>
[74] [CITE@en[Location hack - GreaseSpot Wiki]]
([TIME[2014-11-29 08:19:01 +09:00]] 版)
<http://wiki.greasespot.net/Location_hack>
[75] [CITE@en[Integrate Fetch into HTML · whatwg/html@7c5555a]]
([TIME[2015-09-18 19:20:09 +09:00]] 版)
<https://github.com/whatwg/html/commit/7c5555a16f2920c02244c10756bb2f1a11e87a22>
[76] [CITE@en[Rewrite script execution on top of ES · whatwg/html@4891d18]]
([TIME[2015-12-22 18:58:20 +09:00]] 版)
<https://github.com/whatwg/html/commit/4891d18aaf2df1d40aa61f467a5a10cfc19dd85d>
[77] [CITE@en[Add <script type="module"> and module resolution/fetching/evaluation · whatwg/html@cd1a9fb]]
([TIME[2016-01-21 22:26:21 +09:00]] 版)
<https://github.com/whatwg/html/commit/cd1a9fb1e83f7d0bc30be8b34ecdaf444a0b19a4>
[83] [CITE@en[Fix javascript: URL script execution · whatwg/html@6412172]]
([TIME[2016-04-16 15:27:25 +09:00]] 版)
<https://github.com/whatwg/html/commit/64121722be80ca4e0ea426a085b5fb1a971303cb>
[84] [CITE@en[Detail how javascript: return values become response bodies · whatwg/html@9997cd9]]
([TIME[2016-04-27 16:24:42 +09:00]] 版)
<https://github.com/whatwg/html/commit/9997cd93c65a9f4a640a593c02f01c2c58924457>
[86] [CITE@en[Integrate with the Referrer Policy spec, part 2 of n]]
( ([[domenic]]著, [TIME[2016-05-18 01:52:35 +09:00]]))
<https://github.com/whatwg/html/commit/176e74243c649b709b9959b7d08b327290c2f403>
[87] [CITE@en[Get origin from a browsing context's active document]]
( ([[annevk]]著, [TIME[2016-05-30 21:04:25 +09:00]]))
<https://github.com/whatwg/html/commit/d727bf9335f32ab87109658d8e83b0ee3c2866bf>
[88] [CITE@en[Extract bits out of a javascript URL through serialization]]
( ([[annevk]]著, [TIME[2016-06-01 16:41:51 +09:00]]))
<https://github.com/whatwg/html/commit/4113965994bb5d0c650bae13f28883d525a34002>
[89] [CITE@en[Fix javascript: URL example explanation]]
( ([[domenic]]著, [TIME[2016-06-16 15:05:37 +09:00]]))
<https://github.com/whatwg/html/commit/cdf82d5def226004bb90479c284c22e329a4edbd>
[90] [CITE@en[Navigate: remove "gone async" and define redirect handling]]
([[annevk]]著, [TIME[2016-07-04 17:38:20 +09:00]])
<https://github.com/whatwg/html/commit/8b630f5e4fa2ec8b0999470d09490bffe6e9a1e3>
[91] [CITE@en[Navigate: minor javascript URL fixup]]
([[annevk]]著, [TIME[2016-07-08 02:02:03 +09:00]])
<https://github.com/whatwg/html/commit/8f34fc491631f5e940d50950567a4cecee104eec>
[92] [CITE@en[Handle navigation to `javascript:` URLs as inline script. (#142)]]
([[@bzbarsky]]著, [TIME[2016-11-10 17:07:39 +09:00]])
<https://github.com/w3c/webappsec-csp/commit/479bf6c6e891db0bb1cd7f71be764f3aff6a1a33>