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

Re: Updated/split test

From: Erik Dahlström <ed@opera.com>
Date: Mon, 27 Oct 2008 16:06:13 +0100
To: "Niklas Hagelroth" <niklas.hagelroth@ikivo.com>, "SVG Working Group WG" <public-svg-wg@w3.org>
Message-ID: <op.ujouwnojgqiacl@gnorps.linkoping.osa>

On Mon, 27 Oct 2008 14:31:24 +0100, Niklas Hagelroth <niklas.hagelroth@ikivo.com> wrote:

>
> Erik Dahlström wrote:
>> <niklas.hagelroth@ikivo.com> wrote:
>>
>> > Hi,
>> >
>> > Yes, Ikivo pass struct-use-205 revision 1.6.
>> >
>> > I'm still not convinced that the 4th subtest that is moved to struct-
>> use-210 is corrected. Can you please point me to the correct section in
>> the specification that proves this test correct?
>>
>> I maintain that the struct-use-210 test is valid (even if it may be a bit
>> tricky), and it was reviewed by a second WG member who also found it valid.
>>
>> > Also, since the test is so complicated and hard to find evidence for in
>> the specification I would like to see links to the tested specification
>> sections in the tests description.
>>
>> The normative definition for SVGElementInstance.correspondingUseElement is
>> in SVG 1.1, which is linked to from the uDOM[1]. Also take note of the SVG
>> 1.1 errata about liveness of DOM properties, which may play a part in this.
>
> Since the chain of EventTargets is determined before the initial dispatch of the event, changing the tree will not affect the event processing. So referring to the liveness of the DOM seems irrelevant in this case.

The EventTarget chain is determined before the Event is dispatched, as per DOM 2 Events. That has nothing to do with SVGElementInstance.correspondingUseElement however (correspondingUseElement is what the test is meant to test). The test does not in any way affect the Event object directly, or the way the event bubbles. The properties on a particular SVGElementInstance (which may be a target/currentTarget in the Event object) are subject to 'live' updates to match the current DOM tree.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Monday, 27 October 2008 15:07:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 October 2008 15:07:08 GMT