W3C home > Mailing lists > Public > www-svg@w3.org > January 2014

Removing the SVG instance tree (SVG2 issue 51)

From: Philip Rogers <pdr@google.com>
Date: Tue, 7 Jan 2014 20:24:28 -0500
Message-ID: <CAJgFLLvfwgmZy3ewxJQwSetakpD1sAqyHv1aiJNdWC8tkDVuOA@mail.gmail.com>
To: "www-svg@w3.org" <www-svg@w3.org>
Cc: Tab Atkins <tabatkins@google.com>, Florin Malita <fmalita@google.com>, Stephen Chenney <schenney@google.com>, Erik Dahlstrom <ed@opera.com>
www-svg,

Can we remove the instance tree in SVG2?

Over the holidays I implemented SVG's <use> in terms of pure web
components. This works well and <use>+web components will vastly simplify
the SVG2 spec. Unfortunately, the instance tree is incompatible with shadow
dom and I'd like to propose removing the instance tree.

For users, the instance tree has not been popular. I added a counter to
Chrome's usage statistics in http://crbug.com/313438 and found zero users
of instanceRoot. I searched all of github and found only 9
non-layouttest<https://github.com/search?l=javascript&p=1&q=correspondingElement&ref=cmdform&type=Code>uses
of correspondingElement.

For implementors, the instance tree is slow and riddled with tricky
security concerns (we call it the <use-after-free> element in Chrome). It
does not look like Gecko will implement the instance tree (
https://bugzilla.mozilla.org/show_bug.cgi?id=508561).

Can we unify on the event model used by shadow dom and drop the instance
tree?
http://www.w3.org/TR/components-intro/#events

Philip
Received on Wednesday, 8 January 2014 01:25:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:35 UTC