W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2008

Review of script-handler-201-t.svg and script-handler-202.svg

From: Niklas Hagelroth <niklas.hagelroth@ikivo.com>
Date: Fri, 5 Sep 2008 16:25:06 +0200
Message-ID: <234EB4699C751A4A95DF4FD8D041BBFDEFCB88@SESTHSRV10.zoomon.local>
To: <public-svg-wg@w3.org>
Hello WG,

 

In general I agree that a handler should function in the same way as a
JavaScript function.

Script-handler-202 - Is OK

 

I think there is an error in Script-handler-201. On line 86 the
xlink:href of the handler h2 is changed and the test assumes it to be
executed. According to Cameron's email and the specification, changing
the xlink:href of a script or handler element shall have no effect.

 

Also line 114 in script-handler-201 should say "pass4.textContent =
"pass(4);"" and not "pass4.textContent = "pass4();"".

 

Cheers

/Niklas

 

 

 

We have problems with handler, the first test fails because "this" is
not what it is supposed to be. The second test is erroneous, on line 86
the localName sent into setAttributeNS(...) should be "href", not
"xlink:href", also, there is no requirement to load or run a script if
the xlink:href attribute is altered, see section 15.2.1 in the
spec("Altering the xlink:href on a script element in the DOM tree has no
effect; loading of the referenced resource is not required, it must not
be added to the scripting context and a load event must not be raised,
even if the initial script-content had not been made fully available for
execution."). The third test fails because we seem to have some problems
having both a handler as a child element and an xlink:href. The fourth
test is slightly erroneous, on line 114 it should say "pass(4)", not
"pass4()". We still fail because we seem not to handle the SVGLoad event
correctly and we do not run handlers scripted into the DOM.

 

_______________________________________ 
Niklas Hagelroth 
Ikivo AB 

Ostermalmsgatan 87 A
SE-114 59 Stockholm 
Sweden 

Mobile: +46 704 53 49 22
Office:  +46 8 53 48 11 80 
Fax: +46 8 53 48 11 99 
Email: niklas.hagelroth@ikivo.com 
http://www.ikivo.com <http://www.ikivo.com/>  

The information transmitted in this email and any attachment(s) is
intended solely for the addressee(s) and may contain confidential,
proprietary or privileged material. Any review, retransmission,
dissemination, reproduction, disclosure, reliance upon or any other use
of this information by persons or entities other than the intended
recipient(s) is strictly prohibited. If you received this email in
error, please notify the sender and delete all related material
forthwith.

 
Received on Friday, 5 September 2008 14:26:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC