It’s tedious to generate unique identifiers currently. See the source of D3 Treemap for example, which uses Math.random.
The introduction of a base URL to fix anchor links (forum post) broke local IRIs in Safari. (Firefox and Chrome seem to treat local IRIs as local-to-the-SVG regardless of a base URL.) By using absolute IRIs, we avoid this problem.
For example:
Fixes two pain points:
It’s tedious to generate unique identifiers currently. See the source of D3 Treemap for example, which uses Math.random.
The introduction of a base URL to fix anchor links (forum post) broke local IRIs in Safari. (Firefox and Chrome seem to treat local IRIs as local-to-the-SVG regardless of a base URL.) By using absolute IRIs, we avoid this problem.