/
303.txt
183 lines (129 loc) · 9.95 KB
/
303.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
* 既定動作
[30] 多くの[[視覚的利用者エージェント]]では、[[viewport]] に[[ファイル]]や[[ハイパーリンク]]、
[[URL]] や[[ホスト]]の[[テキスト]]が[[ドロップ]]された場合で[[イベントリスナー]]によって処理されない場合、
あるいは[[アドレスバー]]、[[スクロールバー]]、[[タブ]]その他[[利用者エージェント]]定義の場所に[[ドロップ]]された場合に、
その[[ファイル]]や[[ハイパーリンク]]や[[テキスト]]の表す [[URL]]
や[[ホスト]]への [[navigate]] が[[利用者]]に指示されたものとみなして動作します。
[34] [[Chrome]] は [[viewport]] の[[スクロールバー]]への[[ドロップ]]を[[著者]]の[[スクリプト]]に渡さず、
[[著者]]の[[スクリプト]]が無い場合の [[DnD]] 同様に扱っていましたが (例えば[[リンク]]を[[ドロップ]]した場合必ずその[[リンク先]]に [[navigate]] していましたが)、
最近、[[著者]]の[[スクリプト]]に渡されるように変わったようです。
[TIME[2017-07-14T04:25:00.00Z]]
;; [35] [[利用者]]の意図に反して[[ドロップ]]を無効にしている [[Webサイト]]があるので、
不便です。なお[[アドレスバー]]への[[ドロップ]]はこれまで通り[[スクリプト]]に引き渡されません。
* メモ
[1] [CITE[Drag-and-drop feedback]] ([[Ian Hickson <ian@...>]] 著, [TIME[2008-11-26 01:52:51 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/16823>
[2] [CITE@en-us[Firefox 3.1 for developers - MDC]] ([TIME[2009-02-08 18:25:06 +09:00]] 版) <https://developer.mozilla.org/ja/Firefox_3.1_for_developers#.E6.96.B0.E3.81.97.E3.81.8F.E3.82.B5.E3.83.9D.E3.83.BC.E3.83.88.E3.81.95.E3.82.8C.E3.81.9F.E6.A9.9F.E8.83.BD_2>
>HTML 5 Drag and Drop API は Web サイト内、 Web サイト間のドラッグアンドドロップを可能にします。加えて、XUL 拡張とアプリケーションのためのより単純な API を提供します。 ( bug 356295 )
[3] [CITE@en[(X)HTML5 Tracking]]
([TIME[2010-02-04 23:32:59 +09:00]] 版)
<http://html5.org/tools/web-apps-tracker?from=4643&to=4644>
[4] [CITE['''['''whatwg''']''' Limitations of the DnD API]]
([TIME[2010-04-20 19:49:51 +09:00]] 版)
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-April/025894.html>
[5] [CITE['''['''whatwg''']''' Limitations of the DnD API]]
([TIME[2010-04-20 19:49:51 +09:00]] 版)
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-April/025894.html>
[6] [CITE[IRC logs: freenode / #whatwg / 20101008]]
( ([TIME[2010-10-22 22:12:03 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20101008>
[7] [CITE@en[Web Applications 1.0 r5645 dropzone 0/4: placeholderFixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-23 09:36:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5644&to=5645>
[8] [CITE@en[Web Applications 1.0 r5646 dropzone 1/5: the new modelFixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-26 07:32:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5645&to=5646>
[9] [CITE@en[Web Applications 1.0 r5646 dropzone 1/5: the new modelFixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-26 07:32:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5645&to=5646>
[10] [CITE@en[Web Applications 1.0 r5646 dropzone 1/5: the new modelFixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-26 07:32:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5645&to=5646>
[11] [CITE@en[Web Applications 1.0 r5647 dropzone 2/5 and 3/5: Update the spec to use the new DND model. In theory, this makes no normative difference, but I'm sure I made some mistakes... let me know if you spot any.Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-28 08:01:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5646&to=5647>
[12] [CITE@en[Web Applications 1.0 r5650 dropzone 4/5, part 1: DataTransferItems (WIP); also contains some WebIDL terminology fixes.Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-30 03:59:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5649&to=5650>
[13] [CITE@en[Web Applications 1.0 r5651 dropzone 4/5, part 2/2: DataTransferItem.Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-30 07:03:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5650&to=5651>
[14] [CITE@en[Web Applications 1.0 r5652 dropzone 4/5, part, um, 3/2: some bits I somehow missed in the previous checkin. Oops.Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-30 07:57:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5651&to=5652>
[15] [CITE@en[Web Applications 1.0 r5658 dropzone 5/5, part 1: skeleton of dropzone='' section; update DND processing model; enumerate where sections that need updating.Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712]]
( ([TIME[2010-10-30 08:39:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5657&to=5658>
[16] [CITE['''['''whatwg''']''' Drag-and-drop feedback]]
([TIME[2010-11-03 05:04:08 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-November/028934.html>
[17] [CITE[IRC logs: freenode / #whatwg / 20101029]]
( ([TIME[2010-11-08 23:38:21 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20101029>
[18] [CITE[IRC logs: freenode / #whatwg / 20101030]]
( ([TIME[2010-11-09 08:52:50 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20101030>
[19] [CITE[IRC logs: freenode / #whatwg / 20101102]]
( ([TIME[2010-11-13 13:35:22 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20101102>
[20] [CITE@en-us[Drag Operations - MDC Doc Center]]
( ([TIME[2010-12-26 17:05:20 +09:00]] 版))
<https://developer.mozilla.org/En/DragDrop/Drag_Operations>
[21] [CITE['''['''whatwg''']''' Drag-and-drop feedback]]
([TIME[2011-01-07 20:21:12 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-January/029709.html>
[22] [CITE@en[Web Applications 1.0 r5747 Limit the number of text DND entries to one per type.]]
( ([TIME[2011-01-07 12:20:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5746&to=5747>
[23] [CITE[''''''[''''''whatwg'''''']'''''' Rich Paste & DataTransfer / DataTransferItems API]]
( ([TIME[2011-03-23 00:52:32 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-March/030879.html>
[24] [CITE[''''''[''''''whatwg'''''']'''''' Drag and drop feedback]]
( ([TIME[2012-06-29 08:12:33 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-June/036503.html>
[25] [CITE[''''''[''''''whatwg'''''']'''''' Drag-and-drop folders/files support with directory structure using DirectoryEntry]]
( ([TIME[2012-09-14 06:58:46 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-September/037291.html>
[26] [CITE[''''''[''''''whatwg'''''']'''''' Proposal for public data in drag events]]
( ([TIME[2012-12-11 06:18:39 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038293.html>
[27] [CITE[IRC logs: freenode / #whatwg / 20130318]]
( ([TIME[2013-03-27 23:47:41 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130318#l-591>
[28] [CITE@en[Web Applications 1.0 r8697 Make sure places that use UIEvent define .detail and .view]]
( ([TIME[2014-08-02 07:04:00 +09:00]] 版))
<http://html5.org/r/8697>
[29] [CITE@en-US-x-Hixie[HTML5]]
( ([TIME[2014-09-17 00:51:24 +09:00]] 版))
<http://www.w3.org/TR/2014/PR-html5-20140916/>
[31] [CITE@en[Stop overriding UIEvent's detail attribute]]
([[annevk]]著, [TIME[2016-10-25 19:00:16 +09:00]])
<https://github.com/whatwg/html/commit/bd3239b5b38a157a61cb570df5c80ad1dbc2b9d4>
[32] [CITE@en[Editorial: more minor event creation/dispatch cleanup]]
([[domenic]]著, [TIME[2016-10-26 02:20:58 +09:00]])
<https://github.com/whatwg/html/commit/5fafa73c8ad57f2d98e9c978200e11199fb26bdc>
[33] [CITE@en[Remove the dropzone global attribute]]
([[pwnall]]著, [TIME[2017-03-07 05:10:31 +09:00]])
<https://github.com/whatwg/html/commit/3044a7e8517a4488cea811789d19974a8d5a56ae>
[36] [CITE@en[Merge pull request #201 from NavidZ/dnd-vs-capture]]
([[NavidZ]]著, [TIME[2017-07-27 04:55:18 +09:00]])
<https://github.com/w3c/pointerevents/commit/0a7eb7b4c89c97930b18b3318ce220745825b57a>
[37] [CITE@en[Fix broken step reference in “fire a DND event” algorithm]]
([[@rniwa]]著, [TIME[2017-08-19 23:02:25 +09:00]])
<https://github.com/whatwg/html/commit/000489450711bfa4e48e12726fe50f40aa05aba7>
[38] [CITE@en[Fix broken step ref in “fire a DND event” algo by sideshowbarker · Pull Request #2907 · whatwg/html]]
([TIME[2017-08-20 11:19:21 +09:00]])
<https://github.com/whatwg/html/pull/2907>
[39] [CITE@en[Editorial: rename "Plain Unicode string" to "text" for drag data store]]
([[karx]]著, [TIME[2019-08-10 06:06:12 +09:00]])
<https://github.com/whatwg/html/commit/817ee1b69398ea385d639a35450cc218463bff0d>
[40] [CITE@en[Plain Unicode string · Issue #4798 · whatwg/html · GitHub]]
([TIME[2020-07-13 11:55:49 +09:00]])
<https://github.com/whatwg/html/issues/4798>
[41] [CITE@en['''['''Re''']''' Rename "Plain Unicode string" to "text" by karx · Pull Request #4827 · whatwg/html · GitHub]]
([TIME[2020-07-13 11:56:06 +09:00]])
<https://github.com/whatwg/html/pull/4827>
[42]
[[DnD]] 受け取れる機能があるわけでもないのに [[DnD]] イベントをキャンセルする糞サイトは滅びてほしい。
[43]
そして Web ブラウザーはそういう糞サイトの対策のため、意味なく [[DnD]] イベントをキャンセルする糞サイトを検出してそれを無視してちゃんと [[DnD]] された [[URL]]
の [[navigate]] を実行する方法を考えてほしい。使いにくくてたまらん。