Open ebidel opened 9 years ago
Please close this issue.
I created this issue over in Polymer/polymer (sorry). After further review, it has been learned any templates containing svg, must themselves be contained within an <svg/>
element, which makes since as svg is in a different namespace than html.
For example (note, original html was missing the <link href='polymer.html' ...
)
<template is="auto-binding">
<svg>
<template id='svg1'>
<text y='40'>More SVG</text>
</template>
</svg>
<svg width="100" height="100">
<template id='svg2'>
<text y='60'>Some SVG</text>
</template>
<text y='20'>It Works!</text>
<template bind ref='svg1'></template>
<template bind ref='svg2'></template>
</svg>
</template>
You can also use <svg template ...>
as a workaround, I believe. See https://github.com/Polymer/polymer/issues/681
From @phestermcs on December 31, 2014 8:34
The following shows
Some HTML
, which should be followed byAnd some SVG
, but onlyAnd some
is seen. In Chrome 39.0.2171.95 with Polymer 0.5.2, the DOM node for<template ref="svg"...
does not contain a#document-fragment
; it is empty.Copied from original issue: Polymer/polymer#1061