/
893.txt
176 lines (133 loc) · 9.36 KB
/
893.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
* 関連
[37] 似た機能に [CODE(DOMi)@en[[[Beacon]]]] があります。
* 歴史
** 誕生
[15] 2005年10月に [[Web Applications 1.0]] に追加されました。
[1]
[CITE[Mozilla Links 日本語版: Firefox のプライバシー問題]]
<http://mozlinks-jp.blogspot.com/2006/01/firefox_21.html>
あれだ、やっぱり[CODE(HTMLa)@en[[[ping]]]]も[Q[[[タグ]]]]なのかよw
([[名無しさん]] [WEAK[2006-01-22 01:27:04 +00:00]])
[2]
[CITE[Bug 319368 - Implement <a ping>]] <https://bugzilla.mozilla.org/show_bug.cgi?id=319368>
([[名無しさん]] [WEAK[2006-01-27 01:03:54 +00:00]])
[3]
本当の問題は安全性よりも (賛成派の主張の通り、少なくても今より危険になるわけではない)、[CODE(HTTP)@en[[[POST]]]]されることではないか。
もちろん[[HTTP]]や[[REST]]的には[CODE(HTTP)@en[[[POST]]]]の方が適当なのだが、
[[tag soup]] application開発者はしばしば
([CODE(HTMLe)@en[[[form]]]]ではなく) [CODE(HTMLe)@en[[[a]]]]で[CODE(HTTP)@en[[[POST]]]]することを望んでいる
[WEAK[(あちこちの掲示板で頻出の質問)]]。
[CODE(HTMLa)@en[[[ping]]]]がそれに濫用される可能性がないだろうか。
ただし[CODE(HTMLa)@en[[[ping]]]]に対する[[応答]]は[[レンダリング]]されないので、彼らの需要を満たせるのかどうかには疑問もあるが。
;;
[CODE(HTMLa)@en[[[ping]]]]を使って[CODE(HTTP)@en[[[POST]]]]して、[[鯖]]側で[[セッション]]管理 (もちろん[[REST]]制約違反)、[CODE(HTMLa)@en[[[href]]]]と[[セッション]]情報
([[Cookie]]) で[CODE(HTTP)@en[[[GET]]]]して結果を得る、ただし[CODE(HTMLa)@en[[[ping]]]]と[CODE(HTMLa)@en[[[href]]]]のどちらが先に処理されるかはわからないので[CODE(HTTP)@en[[[Refresh]]]]でもして待つ、
などという[Q[裏技]]が紹介される日が来る・・・かもしれない。
もはや何をしたかったのかよくわからないがw
([[名無しさん]] [WEAK[2006-01-27 08:07:12 +00:00]])
[REFS[
- [17]
[CITE[Bug 401217 – Issues with support for "ping" attribute]] ([CODE[2007-10-27 11:50:07 +09:00]] 版) <https://bugzilla.mozilla.org/show_bug.cgi?id=401217>
([[名無しさん]] [WEAK[2007-10-27 02:50:26 +00:00]])
- [18]
[CITE[Feedback on the ping="" attribute (ISSUE-1)]] ([[Ian Hickson <ian@...>]] 著, [CODE[2007-11-02 22:05:54 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/12316>
- [19]
[CITE[Re: Referer header sent with <a ping>?]] ([[Ian Hickson <ian@...>]] 著, [CODE[2008-01-30 20:33:36 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/13091>
- [20]
[CITE[Re: Referer header sent with <a ping>?]] ([[Ian Hickson <ian@...>]] 著, [TIME[2008-02-09 01:58:06 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/13187>
- [38] [CITE@en['''['''g''']''' (2) Let's try a new strategy for ping=[SPAN[']]'. · whatwg/html@2b44075]] ([TIME[2016-02-25 14:04:09 +09:00]] 版) <https://github.com/whatwg/html/commit/2b44075877450c7452df882b38c2cc8f8c2dd2db>
- [39] [CITE@en['''['''''']''' (0) Filling in the rendering section: remove hit testing (see www-… · whatwg/html@fceda3f]] ([TIME[2016-02-25 14:06:26 +09:00]] 版) <https://github.com/whatwg/html/commit/fceda3f08e335de7b9f9255a5e27a8cc7f160694>
- [21] [CITE[IRC logs: freenode / #whatwg / 20090811]]
([TIME[2009-10-10 20:07:44 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20090811#l-271>
- [22] [CITE[IRC logs: freenode / #whatwg / 20090908]]
([TIME[2009-10-17 23:05:49 +09:00]] 版)
<http://krijnhoetmer.nl/irc-logs/whatwg/20090908>
]REFS]
** HTML5 からの除外
[16] 2010年3月には、実装状況がよくないため、 [[W3C]] [[HTML5]] から除外されました。
(最新版 [[HTML]] には残されました。)
[23] [CITE@en[HTML5 Revision Tracker]]
[CITE[Move ping=[SPAN[']]' to the next version of HTML (and out of the W3C HTML5 draft)]]
([TIME[2010-03-05 08:09:02 +09:00]] 版)
<http://html5.org/tools/web-apps-tracker?from=4823&to=4824>
** WebKit による実装
[24] [CITE[IRC logs: freenode / #whatwg / 20100823]]
( ([TIME[2010-08-30 23:53:50 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20100823#l-350>
[25] [CITE@en[Ilya Grigorik - Google+ - Google mobile search is getting faster - to be exact,…]]
( ([TIME[2013-11-08 08:51:47 +09:00]] 版))
<https://plus.google.com/+IlyaGrigorik/posts/fPJNzUf76Nx>
[26] [CITE@en[401217 – Issues with support for "ping" attribute]]
( ([TIME[2013-11-08 08:55:55 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=401217>
[27] [CITE[''''''[''''''webkit-dev'''''']'''''' <a ping> landed]]
( ([TIME[2010-10-19 15:42:41 +09:00]] 版))
<https://lists.webkit.org/pipermail/webkit-dev/2010-October/014657.html>
[28] [CITE[''''''[''''''webkit-dev'''''']'''''' <a ping> landed]]
( ([TIME[2010-10-19 15:42:41 +09:00]] 版))
<https://lists.webkit.org/pipermail/webkit-dev/2010-October/014575.html>
[29] [CITE[Issue 21589 - chromium - Implement <a ping> - An open-source project to help move the web forward. - Google Project Hosting]]
( ([TIME[2013-11-08 09:02:07 +09:00]] 版))
<https://code.google.com/p/chromium/issues/detail?id=21589>
[30] [CITE[Bug 50488 – Enable <a ping> for Mac/Windows/WebKit2 builds]]
( ([TIME[2013-11-08 09:04:26 +09:00]] 版))
<https://bugs.webkit.org/show_bug.cgi?id=50488>
[31] [CITE[Issue 257281 - chromium - <a ping> does not issue a ping request when "Open Link in New Tab" - An open-source project to help move the web forward. - Google Project Hosting]]
( ([TIME[2013-11-08 09:07:42 +09:00]] 版))
<https://code.google.com/p/chromium/issues/detail?id=257281>
[32] [CITE@en[951104 – Enable <a ping> by default]]
( ([TIME[2013-12-24 15:05:58 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=951104>
[33] [CITE[IRC logs: freenode / #whatwg / 20131219]]
( ([TIME[2013-12-24 15:03:49 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20131219>
[34] [CITE@en[Web Applications 1.0 r8369 Make a.ping and area.ping use DOMSettableTokenList based on #whatwg feedback. Hopefully no content relies on their existing implementations; if they do let me know and we'll back this out.]]
( ([TIME[2014-01-04 05:03:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8368&to=8369>
[35] [CITE@en[Bug 24238 – Should the tokens in HTMLAnchorElement.ping be resolved?]]
( ([TIME[2014-01-17 23:40:04 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=24238>
[36] [CITE[Add ping context · 2c01edc · whatwg/fetch]]
( ([TIME[2014-05-20 09:04:41 +09:00]] 版))
<https://github.com/whatwg/fetch/commit/2c01edca7a910f333b8ffac9d51d872f0b58e895>
[4] [CITE@en[Due to ''''''[''''''PutForwards'''''']'''''' the ping IDL attribute needs be readonly · whatwg/html@29578b4]]
([TIME[2015-08-28 16:36:01 +09:00]] 版)
<https://github.com/whatwg/html/commit/29578b4cb3f79aaaa3401b5f7e800867edba0ee8>
[5] [CITE@en[Integrate Fetch into HTML · whatwg/html@7c5555a]]
([TIME[2015-09-18 18:49:01 +09:00]] 版)
<https://github.com/whatwg/html/commit/7c5555a16f2920c02244c10756bb2f1a11e87a22>
* 実装
[6] [[Chrome]] が実装しており、標準で有効になっています。
[[Firefox]] は標準で無効にしています。
[TIME[2016-01-05T05:19:25.900Z]]
[7] [[IDL属性]] [CODE(DOMa)@en[[[ping]]]]
を [[Chrome]] も [[Firefox]] も実装しています。 ([[Firefox]] は標準で
[CODE(HTMLa)@en[[[ping]]]] [[属性]]を無効にしていますが、 [[IDL属性]]は存在します。)
[TIME[2016-01-05T05:29:19.100Z]]
[8] [[IDL属性]] [CODE(DOMa)@en[[[ping]]]]
を [[Chrome]] も [[Firefox]] も [CODE(DOMi)@en[[[DOMTokenList]]]] ではなく
[CODE(IDL)@en[[[DOMString]]]] としています。
[TIME[2016-01-05T05:29:47.400Z]]
* メモ
[9] [CITE[Intent to Implement: Replace DOMString with DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping. - Google グループ]]
([TIME[2016-01-05 14:35:44 +09:00]] 版)
<https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Z-RBeFLHRSU>
[10] [CITE[Issue 498219 - chromium - Replace DOMString with DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping. - An open-source project to help move the web forward. - Google Project Hosting]]
([TIME[2016-01-05 14:36:16 +09:00]] 版)
<https://code.google.com/p/chromium/issues/detail?id=498219>
[11] [CITE@en[Handling of url parsing errors in a.ping is undefined · Issue #477 · whatwg/html]]
([TIME[2016-02-03 12:21:16 +09:00]] 版)
<https://github.com/whatwg/html/issues/477>
[12] [CITE@en[URLs are parsed and produce records · whatwg/html@30bc255]]
([TIME[2016-02-14 22:52:25 +09:00]] 版)
<https://github.com/whatwg/html/commit/30bc2557105ad62881ec9670f253febbc9761b44>
[13] [CITE@en[Adding ''''''[''''''SameObject'''''']'''''' to DOMTokenLists · whatwg/html@ec1dc4d]]
([TIME[2016-02-18 11:10:09 +09:00]] 版)
<https://github.com/whatwg/html/commit/ec1dc4d4571c61cf0c0dfe3e562898635886b412>
[14] [CITE@en[Never send a referrer with hyperlink auditing pings · whatwg/html@faec3a5]]
([TIME[2016-02-23 11:01:46 +09:00]] 版)
<https://github.com/whatwg/html/commit/faec3a50ea181f322ab9819975e285ced34a0308>
[40] [CITE@en[Use the HTTPS state concept instead of "encrypted connection" · whatwg/html@1ee3316]]
([TIME[2016-02-25 14:07:21 +09:00]] 版)
<https://github.com/whatwg/html/commit/1ee3316caa1a5754f7bbd29c494842785f9a181b>