/[suikacvs]/markup/html/html5/spec-ja/data/scripting.dat
Suika

Diff of /markup/html/html5/spec-ja/data/scripting.dat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by apache, Fri Jul 11 11:38:19 2008 UTC revision 1.6 by apache, Fri Jul 11 11:59:09 2008 UTC
# Line 131  Must be invoked whenever an * event is t Line 131  Must be invoked whenever an * event is t
131  #ja  #ja
132  $1 事象が当該要素を対象とするか、泡立ち当該要素を通過する時には常に呼び出されなければ[[MUST:なりません]]。  $1 事象が当該要素を対象とするか、泡立ち当該要素を通過する時には常に呼び出されなければ[[MUST:なりません]]。
133    
134    #pattern
135    Must be invoked whenever a * event is targeted at or bubbles through
136         the element.
137    #ja
138    $1 事象が当該要素を対象とするか、泡立ち当該要素を通過する時には常に呼び出されなければ[[MUST:なりません]]。
139    
140    #en
141    The <code title=handler-onerror><a
142         href="#onerror">onerror</a></code> handler is also used for <a
143         href="#runtime-script-errors">reporting script errors</a>.
144    #ja
145    <code title=handler-onerror><a
146         href="#onerror">onerror</a></code> 取扱器は<a
147         href="#runtime-script-errors">スクリプト誤りの報告</a>にも使われます。
148    
149    #en
150    When an event handler attribute is invoked, its argument must be set to
151       the <code>Event</code> object of the event in question. If the function
152       returns the exact boolean value false, the event's
153       <code>preventDefault()</code> method must then invoked. Exception: for
154       historical reasons, for the HTML <code>mouseover</code> event, the
155       <code>preventDefault()</code> method must be called when the function
156       returns true instead.
157    #ja
158    事象取扱器属性が呼び出される時、その引数には当該事象の <code>Event</code>
159    オブジェクトを設定しなければ[[MUST:なりません]]。関数がブール値偽そのものを返した場合には、
160    事象の <code>preventDefault()</code> メソッドを呼び出さなければ[[MUST:なりません]]。
161    例外: 歴史的理由により、 HTML <code>mouseover</code>
162    事象に関しては、 <code>preventDefault()</code> メソッドは、
163    代わりに関数が真を返した時に呼び出されなければ[[MUST:なりません]]。
164    
165    #en
166    All event handler attributes on an element, whether set to null or to a
167       function, must be registered as event listeners on the element, as if the
168       <code title=dom-EventTarget-addEventListenerNS>addEventListenerNS()</code>
169       method on the <code>Element</code> object's <code>EventTarget</code>
170       interface had been invoked when the element was created, with the event
171       type (<var title=dom-event-type>type</var> argument) equal to the type
172       described for the event handler attribute in the list above, the namespace
173       (<var title=dom-event-namespaceURI>namespaceURI</var> argument) set to
174       null, the listener set to be a target and bubbling phase listener (<var
175       title=dom-event-useCapture>useCapture</var> argument set to false), the
176       event group set to the default group (<var
177       title=dom-event-evtGroup>evtGroup</var> argument set to null), and the
178       event listener itself (<var title=dom-event-listener>listener</var>
179       argument) set to do nothing while the event handler attribute is null, and
180       set to invoke the function associated with the event handler attribute
181       otherwise. (The <var title=dom-event-listener>listener</var> argument is
182       emphatically <em>not</em> the event handler attribute itself.)
183    #ja
184    要素のすべての事象取扱器属性は、 null に設定されている場合も関数が設定されている場合も、
185    要素が作成された時に <code>Element</code> オブジェクトの <code>EventTarget</code>
186    界面の
187    <code title=dom-EventTarget-addEventListenerNS>addEventListenerNS()</code>
188    メソッドが事象型 (<var title=dom-event-type>type</var> 引数) は前述の並び中で当該事象取扱属性について示した型、
189    名前空間 (<var title=dom-event-namespaceURI>namespaceURI</var> 引数) は
190    null、聴取器は対象位相と泡立ち位相の聴取器として (<var
191       title=dom-event-useCapture>useCapture</var> 引数は偽)、
192    事象群は既定群として (<var
193       title=dom-event-evtGroup>evtGroup</var> 引数は null)、
194    事象聴取器自体 (<var title=dom-event-listener>listener</var> 引数) は事象取扱器属性が
195    null の場合はなにもしないとして、それ以外の場合は事象取扱器属性に関連付けられた関数を呼び出すとして
196    (<var title=dom-event-listener>listener</var> 引数は事象取扱器属性自体では<em>ない</em>と強調しておきます。)
197    呼び出した場合のように要素の事象取扱器として登録されなければ[[MUST:なりません]]。

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24