/
124.txt
149 lines (109 loc) · 6.06 KB
/
124.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
[19] 近年の多くの [[Webブラウザー]]には、[[Webページ]]の開発者向けのツールが標準で組み込まれています。
[18] [[HTML Standard]] は[DFN[[RUBYB[開発者コンソール]@en[development console]]]]や[DFN[[RUBYB[開発コンソール]@en[development console]]]]という呼称で[[エラーの報告]]などで言及していますが、
その詳細を規定しているわけではありません。
* 報告
[21] 次の場面で、[[開発者コンソール]]へ[[エラー]]などを報告することができると[[仕様書]]により明示されています。
[FIG(middle list)[
- [[例外の報告]]
- [[イベントハンドラーの現在値を取得]]
- [CODE(HTMLa)@en[[[pattern]]]] [[属性値]]の[[コンパイル]]失敗
]FIG]
[23] 他に次の場面で報告する実装があります。
[FIG(middle list)[
- [[同期モード]]の [[XHR]]
- [[fetch]] 失敗、例えば:
-- [[混合内容]]制約違反
-- [[同一起源ポリシー]]違反
-- [[HTTP]] エラー
-- [[TLS]] エラー
-- その他[[ネットワークエラー]]
- [[WebSocket]] のエラー
]FIG]
* 歴史
[1]
[CITE[Safari Developer FAQ]] ([TIME[2006-12-31 11:40:00 +09:00]] 版) <http://developer.apple.com/jp/internet/safari/faq.html#anchor14>
[2] [CITE@en[Console]]
( ([TIME[2011-02-17 00:57:17 +09:00]] 版))
<http://sideshowbarker.github.com/console-spec/>
[3] [[Chrome]] と [[Firefox]] は [CODE(DOMi)@en[[[Console]]]] [[インターフェイスオブジェクト]]が
[CODE(JS)@en[[[window.Console]]]] でアクセスできませんが、
[[WinIE10]] はアクセスできるようです。
[4] [CITE[DeveloperToolsWG/console-object]]
( ([TIME[2014-05-22 04:08:57 +09:00]] 版))
<https://github.com/DeveloperToolsWG/console-object>
[5] [CITE[IRC logs: freenode / #whatwg / 20140902]]
( ([TIME[2014-09-03 02:49:15 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140902#l-633>
[6] [CITE@en-US[Console - Web API Interfaces | MDN]]
( ([TIME[2014-05-28 11:54:03 +09:00]] 版))
<https://developer.mozilla.org/en-US/docs/Web/API/console>
[7] [CITE@en[console-object/api.md at master · DeveloperToolsWG/console-object]]
( ([TIME[2014-09-03 03:11:35 +09:00]] 版))
<https://github.com/DeveloperToolsWG/console-object/blob/master/api.md>
[8] [CITE@en[terinjokes/console-spec]]
( ([TIME[2014-09-19 00:06:52 +09:00]] 版))
<https://github.com/terinjokes/console-spec>
[9] [CITE[IRC logs: freenode / #whatwg / 20140918]]
( ([TIME[2014-09-19 00:10:12 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140918#l-697>
[10] [CITE@en[Console Standard]]
([TIME[2014-10-14 17:43:04 +09:00]] 版)
<http://terinjokes.github.io/console-spec/>
[11] [CITE@en[Console API - FirebugWiki]]
([TIME[2015-10-01 12:03:27 +09:00]] 版)
<http://getfirebug.com/wiki/index.php/Console_API>
[FIG(quote)[
[FIGCAPTION[
[12] [CITE[Command Line API Reference | Web Tools - Google Developers]]
([TIME[2015-10-22 02:51:16 +09:00]] 版)
<https://developers.google.com/web/tools/chrome-devtools/debug/command-line/command-line-reference>
]FIGCAPTION]
> The Command Line API contains a collection of convenience functions for performing common tasks: selecting and inspecting DOM elements, displaying data in readable format, stopping and starting the profiler, and monitoring DOM events.
> Note
> This API is only available from within the console itself. You cannot access the Command Line API from scripts on the page.
]FIG]
[FIG(quote)[
[FIGCAPTION[
[13] [CITE@en[The Console]]
([TIME[2015-10-23 13:35:23 +09:00]] 版)
<https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html#//apple_ref/doc/uid/TP40007874-CH6-SW1>
]FIGCAPTION]
> You can inspect HTML nodes and JavaScript objects in more detail by using the console commands listed in Table 5-1. Type the command-line APIs interactively within the console.
> If your scripts share the same function name as a Command-Line API function, the function in your scripts takes precedence.
]FIG]
[14] [CITE@en-US[The command line interpreter - Firefox Developer Tools | MDN]]
([TIME[2015-10-01 05:31:01 +09:00]] 版)
<https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter>
[15] [CITE@en[Using the Console to view errors and debug (Windows)]]
([TIME[2015-10-23 13:36:25 +09:00]] 版)
<https://msdn.microsoft.com/en-us//library/dn255006%28v=vs.85%29.aspx>
[16] [CITE@en[Console Debugging API (Internet Explorer)]]
([TIME[2015-10-23 13:36:38 +09:00]] 版)
<https://msdn.microsoft.com/en-us/library/hh772173(v=vs.85).aspx>
[FIG(quote)[
[FIGCAPTION[
[17] [CITE@en[Safari 4.0]]
([TIME[2015-11-04 22:47:26 +09:00]] 版)
<https://developer.apple.com/library/safari/releasenotes/General/WhatsNewInSafari/Articles/Safari_4_0.html#//apple_ref/doc/uid/TP40014305-CH4-SW19>
]FIGCAPTION]
> WebKit has some new and changed console methods that improve functionality and compatibility.
> Note: All of the console methods are compatible with Firebug.
>
]FIG]
[20] [CITE@en[Report errors to developer consoles, not users · whatwg/html@a6d04ea]]
([TIME[2015-12-25 11:47:46 +09:00]] 版)
<https://github.com/whatwg/html/commit/a6d04ea7652f5ad1b61e4ab95de490f51511bffe>
[22] [CITE@en[Encourage logging pattern="" compilation failures · whatwg/html@d2a0cbd]]
([TIME[2016-01-02 11:13:47 +09:00]] 版)
<https://github.com/whatwg/html/commit/d2a0cbdec345ffe5cc803683b30971b5786a5188>
[24] [CITE[''''''[''''''*JavaScript*'''''']'''''' consoleメソッドの使用可否をブラウザごとに調べる - Qiita]]
([TIME[2016-01-27 12:30:01 +09:00]] 版)
<https://qiita.com/cigalecigales/items/44a9b1c72eb0ef9e3968>
[25] [CITE@en[whatwg/console]]
([TIME[2016-02-01 18:40:11 +09:00]] 版)
<https://github.com/whatwg/console>
[26] ([TIME[2016-01-31 06:52:46 +09:00]] 版)
<https://console.spec.whatwg.org/>
[27] [CITE@en[Tweaks for the move to WHATWG · whatwg/console@72187bb]]
([TIME[2016-02-01 18:41:26 +09:00]] 版)
<https://github.com/whatwg/console/commit/72187bb9f021a33a98a3c6af9ebc1fea5d24041a>