v-text cannot render in svg tspan #4296
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
Version
3.2.1
Reproduction link
https://jsfiddle.net/robedgenius/oky8r140/19/
Steps to reproduce
This piece code render differently for
<tspan>
and<div>
code:The
<tspan>
becomes<tspan textContent="hello"></tspan>
and second div is working as expected:<div>hello</div>
However, it works in these scenarios for tspan:
<svg>
tagWhat is expected?
<tspan>
should render variable text to tag textContent. same with<div>
What is actually happening?
<tspan>
cannot render v-text to textContent, but a textContent attribute.The text was updated successfully, but these errors were encountered: