Re: [w3c/webcomponents] [Shadow] How should various document internal references work when SVG is being used in shadow DOM (bugzilla: 27380) (#179)

> My concern right now is that the Safari/Webkit team claims that the SVG spec is not even clear enough about local fragments inside the same shadow tree dom. Please correct me (and them) if I'm wrong, but IMHO at least this should work, or shouldn't it:

You keep saying that this is a *claim* but it's not a claim. It's a *fact* that there is no spec at W3C that either defines or mandates the behavior you're describing. The fact Blink behaves in the way you'd like is almost a coincidence.

> anywhere on the page (be it inside a closed, or open shadow dom tree or at the top-level) this must work

I'm not at all certain that everyone would agree to that proposition. `xml:href` in SVG `use` element uses an URL and an URL has a very well defined semantics. To make the behavior you're describing work, we'd have to override its semantics so that `#foo` references another node within the same shadow tree with the ID value of `foo`. If we're making this change for all fragment URLs then that would have serious implications on anchor elements and any other SVG and HTML elements that use `href` and `xml:href` attributes. On the other hand, introducing an arbitrary inconsistency like making this semantics change only to SVG `use` element is also bad for the Web platform as the whole.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/179#issuecomment-321172490

Received on Wednesday, 9 August 2017 07:09:20 UTC