You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the 'svg' tagged template of lit-element, if the content within it has a 'path' element for which the 'd' attribute is dynamically set, then the 'd' attribute will be missing in IE11/Edge16 with an error: SVG4601: SVG Path data has incorrect format and could not be completely parsed.
Since 'd' determines the path, there is nothing displayed.
From my analysis, it looks like the following could be the culprit in IE11/Edge: template.innerHTML = this.getHTML();
The 'd' attribute with random value like below is considered invalid: <path class="slice extended" d={{lit-7566279216523466}} fill="{{lit-7566279216523466}}" />
deepsnitk
changed the title
IE11/Edge: Dynamic value for 'd' in 'path' element within SVG fails
IE11/Edge: Lit Markers within SVG causes errors.
Oct 8, 2018
This is just a dupe of the upstream lit-html issue you filed: lit/lit#594. Let's just track there. Otherwise we could duplicate every lit-html issue here.
Description
When using the 'svg' tagged template of lit-element, if the content within it has a 'path' element for which the 'd' attribute is dynamically set, then the 'd' attribute will be missing in IE11/Edge16 with an error: SVG4601: SVG Path data has incorrect format and could not be completely parsed.
Since 'd' determines the path, there is nothing displayed.
Live Demo
https://astonishing-purpose.glitch.me/
Steps to Reproduce
Inside 'svg' tagged template literal add 2 elements:
Expected Results
Output should render 2 SVG elements.
Actual Results
Chrome: Both SVGs are visible as expected.
IE11/Edge16: Only one SVG is rendered onto the browser.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: