W3C home > Mailing lists > Public > www-svg@w3.org > October 2016

[Bug 29809] Accessing the offset of inner SVG elements

From: <bugzilla@jessica.w3.org>
Date: Sun, 16 Oct 2016 08:33:43 +0000
To: www-svg@w3.org
Message-ID: <bug-29809-2017-Pu6euXeGEh@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29809

--- Comment #8 from Robert Longson <longsonr@gmail.com> ---
In reply to Arun from comment #7)
> The SVG objects placed on the HTML will be in the order of hundreds. If I
> use the contentDocument method I'll have to generate hundreds of IDs.
> Scalability seems to be a problem with this approach.

Maybe, or alternatively you could use CSS selectors to pick them out.(

> 
> For example, assume that there are 5 SVG objects with 8 inner components
> each then I'll have to create  40 IDs to uniquely access each inner
> component.

use classes and select by class. Or just select by tag name.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 16 October 2016 08:33:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:06 UTC