- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Mon, 18 Nov 2013 06:32:04 -0800
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/e6728ebbe0ca
branches:
changeset: 554:e6728ebbe0ca
user: Erik Dahlstrom <ed@opera.com>
date: Mon Nov 18 15:28:14 2013 +0100
description:
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
diffstat:
master/definitions.xml | 6 +++++-
master/struct.html | 10 ++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diffs (88 lines):
diff --git a/master/definitions.xml b/master/definitions.xml
--- a/master/definitions.xml
+++ b/master/definitions.xml
@@ -1395,32 +1395,36 @@
<!-- === defined in other specifications ================================ -->
<!-- ... interfaces ..................................................... -->
<interface name='DocumentCSS' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-DocumentCSS'/>
<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'/>
<interface name='Element' href='http://www.w3.org/TR/2012/WD-dom-20120405/#element'/>
<interface name='Node' href='http://www.w3.org/TR/2012/WD-dom-20120405/#node'/>
<interface name='NodeList' href='http://www.w3.org/TR/2012/WD-dom-20120405/#nodelist'/>
<interface name='DOMImplementation' href='http://www.w3.org/TR/2012/WD-dom-20120405/#domimplementation'/>
<interface name='DOMException' href='http://www.w3.org/TR/2012/WD-dom-20120405/#exception-domexception'/>
<interface name='CSSStyleDeclaration' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleDeclaration'/>
<interface name='CSSPrimitiveValue' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSPrimitiveValue'/>
<interface name='CSSRule' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSRule'/>
<interface name='ViewCSS' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-ViewCSS'/>
<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'/>
<term name='compound selectors' href='http://dev.w3.org/csswg/selectors4/#compound'/>
<term name='tree order' href='http://www.w3.org/TR/2012/WD-dom-20120405/#concept-tree-order'/>
<term name='InvalidAccessError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#invalidaccesserror'/>
<term name='InvalidStateError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#invalidstateerror'/>
<term name='SyntaxError' href='http://www.w3.org/TR/2012/WD-dom-20120405/#syntaxerror'/>
diff --git a/master/struct.html b/master/struct.html
--- a/master/struct.html
+++ b/master/struct.html
@@ -535,17 +535,22 @@ create SVG fragments.</p>
</dl>
<p>If an SVG document is likely to be referenced as a component
of another document, the author will often want to include a
<a>'viewBox'</a> attribute on the <a>outermost svg element</a> of the
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>
<h2 id="Groups">Grouping: the <span class='element-name'>'g'</span> element</h2>
<h3 id="GroupsOverview">Overview</h3>
@@ -2300,17 +2305,18 @@ Shouldn't the former be on Window and th
<a class="idlinterface" href="coords.html#InterfaceSVGTransform">SVGTransform</a> <a href="struct.html#__svg__SVGSVGElement__createSVGTransformFromMatrix">createSVGTransformFromMatrix</a>(<a class="idlinterface" href="coords.html#InterfaceSVGMatrix">SVGMatrix</a> matrix);
<a class="idlinterface"
href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-745549614">Element</a> <a href="struct.html#__svg__SVGSVGElement__getElementById">getElementById</a>(DOMString elementId);
};
<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>
<dd>
<dl class="attributes">
<dt id="__svg__SVGSVGElement__x" class="attribute first-child"><b>x</b><span class="idl-type-parenthetical"> (readonly <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLength">SVGAnimatedLength</a>)</span></dt>
<dd class="attribute">
Received on Monday, 18 November 2013 14:32:31 UTC