| 160 |
#ja |
#ja |
| 161 |
<code>EventTarget</code> 界面を実装するオブジェクトは、 <code><a |
<code>EventTarget</code> 界面を実装するオブジェクトは、 <code><a |
| 162 |
href="#remoteeventtarget">RemoteEventTarget</a></code> |
href="#remoteeventtarget">RemoteEventTarget</a></code> |
|
界面も実装しなければ[[MUST:なりません]]。 |
|
| 163 |
|
界面も実装しなければ[[MUST:なりません]]。 |
| 164 |
|
|
| 165 |
|
#en |
| 166 |
|
When the <dfn id=addeventsource |
| 167 |
|
title=dom-RemoteEventTarget-addEventSource><code>addEventSource(<var |
| 168 |
|
title="">src</var>)</code></dfn> method is invoked, the user agent must <a |
| 169 |
|
href="#resolve" title="resolve a url">resolve</a> the <a |
| 170 |
|
href="#url">URL</a> specified in <var title="">src</var>, and if that |
| 171 |
|
succeeds, add the resulting <a href="#absolute">absolute URL</a> to the <a |
| 172 |
|
href="#list-of3" title=concept-eventsource-list>list of event sources</a> |
| 173 |
|
for that object. The same URL can be registered multiple times. If the URL |
| 174 |
|
fails to resolve, then the user agent must raise a <code>SYNTAX_ERR</code> |
| 175 |
|
exception. |
| 176 |
|
#ja |
| 177 |
|
<dfn id=addeventsource |
| 178 |
|
title=dom-RemoteEventTarget-addEventSource><code>addEventSource(<var |
| 179 |
|
title="">src</var>)</code></dfn> |
| 180 |
|
メソッドが呼び出された時、利用者エージェントは |
| 181 |
|
<var title="">src</var> |
| 182 |
|
に指定された <a |
| 183 |
|
href="#url">URL</a> |
| 184 |
|
を<a |
| 185 |
|
href="#resolve" title="resolve a url">解決</a>し、 |
| 186 |
|
それが成功した場合、得られた<a href="#absolute">絶対 URL</a> をそのオブジェクトの<a |
| 187 |
|
href="#list-of3" title=concept-eventsource-list>事象源のリスト</a>に追加しなければ[[MUST:なりません]]。 |
| 188 |
|
同じ URL を何度も登録することができます。 |
| 189 |
|
URL の解決に失敗した場合は、利用者エージェントは <code>SYNTAX_ERR</code> |
| 190 |
|
例外を発生させなければ[[MUST:なりません]]。 |