Re: SVG12: A.7.18 example vs useCapture

Hi Björn,
The example is now changed to have useCapture=false instead as you suggest. You're talking about "all the other errors", could you please clarify this to show us what you mean? I've included the example below for clarity.
Thanks
/ola
 

Given the following SVG file: 

<svg xmlns:svg="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 500">
<script type="application/java-archive" xlink:href="myclasses.jar"/>
<rect id="therect" x="0" y="0" width="100" height="100"/>
</svg>

Given that the SVGHandler implementation available in the 'myclasses.jar' jar file is the following: 

package org.sample;
 
import org.w3c.dom.*;
import org.w3c.dom.svg.*;
 
public class SVGHandler implements EventListenerInitializer2 {
public void initializeEventListeners (Element scriptElement) {
Document document = scriptElement.getOwnerDocument();
EventTarget rect = (EventTarget) document.getElementById("therect");
rect.addEventListenerNS("http://www.w3.org/2001/xml-events", "click", new MyListener(), null, false);
}
 
public EventListener createEventListener (Element handlerElement) {}
}
 
 
 
 
From: Bjoern Hoehrmann <derhoermi@gmx.net <mailto:derhoermi@gmx.net?Subject=Re:%20SVG12:%20A.7.18%20example%20vs%20useCapture&In-Reply-To=%3C43199e59.483142562@smtp.bjoern.hoehrmann.de%3E&References=%3C43199e59.483142562@smtp.bjoern.hoehrmann.de%3E> > 
Date: Mon, 04 Jul 2005 04:26:35 +0200
To: www-svg@w3.org <mailto:www-svg@w3.org?Subject=Re:%20SVG12:%20A.7.18%20example%20vs%20useCapture&In-Reply-To=%3C43199e59.483142562@smtp.bjoern.hoehrmann.de%3E&References=%3C43199e59.483142562@smtp.bjoern.hoehrmann.de%3E>  
Message-ID: <43199e59.483142562@smtp.bjoern.hoehrmann.de> 
 
Dear Scalable Vector Graphics Working Group,
 
  http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html
appendix A.7.18 example #1 can't work as expected (even if all the
other errors are fixed) as the use of true for the useCapture para-
meter will cause the method to throw an exception. Please change the
example to work as intended.
 
regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de <http://bjoern.hoehrmann.de> 
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de <http://www.bjoernsworld.de> 
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ <http://www.websitedev.de/>  

 

Received on Friday, 9 September 2005 14:40:49 UTC