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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.8

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24