ACTION-3549: Forward <svg> event handler attributes to Window
authorErik Dahlstrom <ed@opera.com>
Mon, 18 Nov 2013 15:28:14 +0100
changeset 554 e6728ebbe0ca
parent 553 55fc4522a9ba
child 555 fc6f8c112a39
child 557 2e94d1cf7f52
ACTION-3549: Forward <svg> event handler attributes to Window

This make <svg> behave similarly to <body>, forwarding to Window
for some of its event handler attributes.

Ref: http://www.w3.org/2013/11/15-svg-minutes.html#item07
master/definitions.xml
master/struct.html
--- a/master/definitions.xml	Mon Nov 18 14:47:44 2013 +0100
+++ b/master/definitions.xml	Mon Nov 18 15:28:14 2013 +0100
@@ -1400,6 +1400,9 @@
   <interface name='EventListener' href='http://www.w3.org/TR/2012/WD-dom-20120405/#eventlistener'/>
   <interface name='EventTarget' href='http://www.w3.org/TR/2012/WD-dom-20120405/#eventtarget'/>
   <interface name='Event' href='http://www.w3.org/TR/2012/WD-dom-20120405/#event'/>
+  <interface name='event handler content attributes' href='http://www.w3.org/TR/2013/CR-html5-20130806/webappapis.html#event-handler-content-attributes'/>
+  <interface name='event handler IDL attributes' href='http://www.w3.org/TR/2013/CR-html5-20130806/webappapis.html#event-handler-idl-attributes'/>
+  <interface name='event handlers' href='http://www.w3.org/TR/2013/CR-html5-20130806/webappapis.html#event-handlers'/>
   <interface name='Document' href='http://www.w3.org/TR/2012/WD-dom-20120405/#interface-document'/>
   <interface name='CharacterData' href='http://www.w3.org/TR/2012/WD-dom-20120405/#interface-characterdata'/>
   <interface name='Comment' href='http://www.w3.org/TR/2012/WD-dom-20120405/#comment'/>
@@ -1415,7 +1418,8 @@
   <interface name='RGBColor' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-RGBColor'/>
   <interface name='AbstractView' href='http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-AbstractView'/>
   <interface name='EmbeddingElement' href='http://www.w3.org/TR/Window/#embeddingelt'/>
-  <interface name='Window' href='http://www.w3.org/TR/2012/WD-html5-20120329/browsers.html#the-window-object'/>
+  <interface name='Window' href='http://www.w3.org/TR/2013/CR-html5-20130806/browsers.html#the-window-object'/>
+  <interface name='WindowEventHandlers' href='http://www.w3.org/TR/2013/CR-html5-20130806/webappapis.html#windoweventhandlers'/>
 
   <!-- ... terms .......................................................... -->
   <term name='compound selector' href='http://dev.w3.org/csswg/selectors4/#compound'/>
--- a/master/struct.html	Mon Nov 18 14:47:44 2013 +0100
+++ b/master/struct.html	Mon Nov 18 15:28:14 2013 +0100
@@ -540,7 +540,12 @@
 referenced document. This attribute provides a convenient way to design
 SVG documents to scale-to-fit into an arbitrary viewport.</p>
 
-<p class="issue">This paragraph feels out of place just after the list
+<p>The <a>'svg'</a> element exposes as <a>event handler content attributes</a> a number of the <a>event handlers</a> of the <a>Window</a> object. It also mirrors their <a>event handler IDL attributes</a>.</p>
+
+<p>The <a>onblur</a>, <a>onerror</a>, <a>onfocus</a>, <a>onload</a>, and <a>onscroll</a> <a>event handlers</a> of the <a>Window</a> object, exposed on the <a>'svg'</a> element,
+replace the generic <a>event handlers</a> with the same names normally supported by <a>SVG elements</a>.</p>
+
+<p class="issue">The above paragraphs feel out of place just after the list
 of attributes specific to <a>'svg'</a>.</p>
 
 </edit:with>
@@ -2305,7 +2310,8 @@
 <a>SVGSVGElement</a> implements <a>ViewCSS</a>;
 <a>SVGSVGElement</a> implements <a>DocumentCSS</a>;
 <a>SVGSVGElement</a> implements <a>SVGFitToViewBox</a>;
-<a>SVGSVGElement</a> implements <a>SVGZoomAndPan</a>;</pre>
+<a>SVGSVGElement</a> implements <a>SVGZoomAndPan</a>;
+<a>SVGSVGElement</a> implements <a>WindowEventHandlers</a>;</pre>
 
 <dl class="interface">
 <dt class="attributes-header">Attributes:</dt>