| 90 |
title=dom-MessageEvent-source><code>source</code></dfn> 属性は、 |
title=dom-MessageEvent-source><code>source</code></dfn> 属性は、 |
| 91 |
<a href="#cross-document">文書間メッセージ交換</a>において、 |
<a href="#cross-document">文書間メッセージ交換</a>において、 |
| 92 |
メッセージが送られて来た元の |
メッセージが送られて来た元の |
|
<code><a href="#window">Window</a></code> を表します。 |
|
| 93 |
|
<code><a href="#window">Window</a></code> を表します。 |
| 94 |
|
|
| 95 |
|
#en |
| 96 |
|
The <dfn id=messageport |
| 97 |
|
title=dom-MessageEvent-messagePort><code>messagePort</code></dfn> |
| 98 |
|
attribute represents, in <a href="#cross-document">cross-document |
| 99 |
|
messaging</a> and <a href="#channel0">channel messaging</a> the <code><a |
| 100 |
|
href="#messageport0">MessagePort</a></code> being sent, if any. |
| 101 |
|
#ja |
| 102 |
|
<dfn id=messageport |
| 103 |
|
title=dom-MessageEvent-messagePort><code>messagePort</code></dfn> |
| 104 |
|
属性は、<a href="#cross-document">文書間メッセージ交換</a>と<a href="#channel0">通信路メッセージ交換</a>において、 |
| 105 |
|
送信された <code><a |
| 106 |
|
href="#messageport0">MessagePort</a></code> があれば、 |
| 107 |
|
それを表します。 |
| 108 |
|
|
| 109 |
|
|
| 110 |
|
#en |
| 111 |
|
Unless otherwise specified, when the user agent creates and dispatches a |
| 112 |
|
<code title=event-message><a href="#message2">message</a></code> event in |
| 113 |
|
the algorithms described in the following sections, the <code |
| 114 |
|
title=dom-MessageEvent-lastEventId><a |
| 115 |
|
href="#lasteventid">lastEventId</a></code> attribute must be the empty |
| 116 |
|
string, the <code title=dom-MessageEvent-origin><a |
| 117 |
|
href="#origin1">origin</a></code> attribute must be the empty string, the |
| 118 |
|
<code title=dom-MessageEvent-source><a href="#source3">source</a></code> |
| 119 |
|
attribute must be null, and the <code |
| 120 |
|
title=dom-MessageEvent-messagePort><a |
| 121 |
|
href="#messageport">messagePort</a></code> attribute must be null. |
| 122 |
|
#ja |
| 123 |
|
特に規定がない場合、利用者エージェントが以後の節で説明する算法の中で |
| 124 |
|
<code title=event-message><a href="#message2">message</a></code> |
| 125 |
|
事象を作成して発送する時に、 <code |
| 126 |
|
title=dom-MessageEvent-lastEventId><a |
| 127 |
|
href="#lasteventid">lastEventId</a></code> 属性は空文字列でなければ[[MUST:ならず]]、 |
| 128 |
|
<code title=dom-MessageEvent-origin><a |
| 129 |
|
href="#origin1">origin</a></code> 属性は空文字列でなければ[[MUST:ならず]]、 |
| 130 |
|
<code title=dom-MessageEvent-source><a href="#source3">source</a></code> |
| 131 |
|
属性は null でなければ[[MUST:ならず]]、 <code |
| 132 |
|
title=dom-MessageEvent-messagePort><a |
| 133 |
|
href="#messageport">messagePort</a></code> |
| 134 |
|
属性は null でなければ[[MUST:なりません]]。 |
| 135 |
|
|
| 136 |
|
|
| 137 |
|
#pattern |
| 138 |
|
<span class=secno>* </span><dfn |
| 139 |
|
id=server-sent>Server-sent events</dfn> |
| 140 |
|
#ja |
| 141 |
|
<span class=secno>$1 </span><dfn |
| 142 |
|
id=server-sent>鯖送信事象</dfn> |
| 143 |
|
|
| 144 |
|
#en |
| 145 |
|
This section describes a mechanism for allowing servers to dispatch DOM |
| 146 |
|
events into documents that expect it. The <code><a |
| 147 |
|
href="#eventsource">eventsource</a></code> element provides a simple |
| 148 |
|
interface to this mechanism. |
| 149 |
|
#ja |
| 150 |
|
この節は、鯖が事象を待ち受けている文書の中に DOM |
| 151 |
|
事象を発送できるようにする仕組みを説明します。 |
| 152 |
|
<code><a |
| 153 |
|
href="#eventsource">eventsource</a></code> |
| 154 |
|
要素はこの仕組みに対する単純な界面を提供しています。 |