ACTION-3568: Remove svg prefix on svgresize and svgscroll events.
authorErik Dahlström <ed@opera.com>
Fri, 31 Jan 2014 17:00:41 -0800
changeset 583 f05eb7f745b2
parent 582 2f812635b8e7
child 584 2f5842f8a1e0
child 585 9a1b0b253f81
ACTION-3568: Remove svg prefix on svgresize and svgscroll events.

Changes bubbling and cancellation of these events to align with what DOM 3 Events says.
master/changes.html
master/definitions.xml
master/interact.html
master/svgdom.html
--- a/master/changes.html	Mon Jan 27 12:52:45 2014 -0600
+++ b/master/changes.html	Fri Jan 31 17:00:41 2014 -0800
@@ -236,6 +236,7 @@
   <li>Added the <span class="prop-value">bounding-box</span> keyword to <a>'pointer-events'</a>.</li>
   <li>Replaced SVGLoad, SVGAbort, SVGError and SVGUnload with load, abort, error and unload respectively.</li>
   <li>Only <a>structurally external elements</a> and the rootmost svg element must fire load events.</li>
+  <li class="added-since-last-wd">Replaced SVGResize and SVGScroll with resize and scroll respectively.</li>
 </ul>
 
 <h3 id="linking">Linking chapter</h3>
--- a/master/definitions.xml	Mon Jan 27 12:52:45 2014 -0600
+++ b/master/definitions.xml	Fri Jan 31 17:00:41 2014 -0800
@@ -1474,6 +1474,7 @@
   <term name='SVG user agent' href='intro.html#TermUserAgent'/>
   <term name='SVG user agents' href='intro.html#TermUserAgent'/>
   <term name='SVG viewport' href='intro.html#TermSVGViewport'/>
+  <term name='structurally external element' href='intro.html#TermStructurallyExternalElement'/>
   <term name='structurally external elements' href='intro.html#TermStructurallyExternalElement'/>
   <term name='transformation' href='intro.html#TermTransformation'/>
   <term name='transformations' href='intro.html#TermTransformation'/>
--- a/master/interact.html	Mon Jan 27 12:52:45 2014 -0600
+++ b/master/interact.html	Fri Jan 31 17:00:41 2014 -0800
@@ -389,7 +389,8 @@
       </tr>
       <tr>
         <td id="ErrorEvent"><p class="event-name"><strong>error</strong></p>
-          <p>The error event occurs when an element does not load
+          <p>The error event occurs when a 
+          <a>structurally external element</a> does not load
           properly or when an error occurs during script
           execution.</p>
           <p>error events bubble but are not cancelable.</p>
@@ -400,12 +401,12 @@
         href="script.html#OnErrorEventAttribute">onerror</a></td>
       </tr>
       <tr>
-        <td id="ResizeEvent"><p class="event-name"><strong>SVGResize</strong></p>
+        <td id="ResizeEvent"><p class="event-name"><strong>resize</strong></p>
           <p>Occurs when a document view is being resized. This
           event is only applicable to <a>outermost svg elements</a> and is
           dispatched after the resize operation has taken place. The
           target of the event is the <a>'svg'</a> element.</p>
-          <p>SVGResize events bubble but are not cancelable.</p>
+          <p>resize events do not bubble and are not cancelable.</p>
         </td>
         <td>(same)</td>
         <td>none</td>
@@ -413,7 +414,7 @@
         href="script.html#OnResizeEventAttribute">onresize</a></td>
       </tr>
       <tr>
-        <td id="ScrollEvent"><p class="event-name"><strong>SVGScroll</strong></p>
+        <td id="ScrollEvent"><p class="event-name"><strong>scroll</strong></p>
           <p>Occurs when a document view is being shifted along the
           X or Y or both axis, either through a direct user
           interaction or any change on the <a>SVGSVGElement::currentTranslate</a> property
@@ -421,7 +422,7 @@
           applicable to <a>outermost svg elements</a> and is
           dispatched after the shift modification has taken place.
           The target of the event is the <a>'svg'</a> element.</p>
-          <p>SVGScroll events bubble but are not cancelable.</p>
+          <p>scroll events bubble only when dispatched to the document, and are not cancelable.</p>
         </td>
         <td>(same)</td>
         <td>none</td>
--- a/master/svgdom.html	Mon Jan 27 12:52:45 2014 -0600
+++ b/master/svgdom.html	Fri Jan 31 17:00:41 2014 -0800
@@ -285,8 +285,8 @@
       <li><a href="interact.html#UnloadEvent">unload</a></li>
       <li><a href="interact.html#AbortEvent">abort</a></li>
       <li><a href="interact.html#ErrorEvent">error</a></li>
-      <li><a href="interact.html#ResizeEvent">SVGResize</a></li>
-      <li><a href="interact.html#ScrollEvent">SVGScroll</a>
+      <li><a href="interact.html#ResizeEvent">resize</a></li>
+      <li><a href="interact.html#ScrollEvent">scroll</a>
       (triggered by either scroll or pan user actions)</li>
     </ul>
   </li>