- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 06 Mar 2018 17:00:37 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 March 2018 01:01:11 UTC
What's interesting here is that, unlike div or span, adding a template inside your svg element does not close the svg element and put the template element after it in the DOM. You have to use foreignObject to embed HTML elements in SVG usually, and this gets enforced by "punishing" you by closing your SVG element and pushing the would-be-nested HTML element outside the SVG element. But for template that "punishment" isn't happening, and instead you just get a SVG template element, which behaves the same as a SVG asdf element. -- 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/744#issuecomment-370984988
Received on Wednesday, 7 March 2018 01:01:11 UTC