Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg中foreignObject元素内的svg内部子元素不显示 #7330

Closed
zhengsk opened this issue Dec 27, 2017 · 0 comments · Fixed by #7350, annict/annict#1034, annict/annict#1035, owncloud/web#46 or OSM-Browser/osm-browser#56
Labels

Comments

@zhengsk
Copy link

zhengsk commented Dec 27, 2017

Version

2.5.13

Reproduction link

https://codepen.io/zsk/pen/XVpxaR

Steps to reproduce

v1.0.28 is ok: https://codepen.io/zsk/pen/bagmYb

v2.5.13 has bug: https://codepen.io/zsk/pen/XVpxaR

What is expected?

foreignObject再嵌套svg元素,这个svg元素的子元素(如:rect)不能显示。

What is actually happening?

foreignObject再嵌套svg元素,这个svg元素的子元素(如:rect)能显示。


在svg的foreignObject的元素内再嵌套svg元素,被嵌套的svg元素的子元素(如:rect)不能显示,不过text元素可以显示。

@yyx990803 yyx990803 added the bug label Dec 28, 2017
yyx990803 pushed a commit that referenced this issue Jan 5, 2018
…amespace (fix #7330) (#7350)

* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
lovelope pushed a commit to lovelope/vue that referenced this issue Feb 1, 2018
…amespace (fix vuejs#7330) (vuejs#7350)

* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
…amespace (fix vuejs#7330) (vuejs#7350)

* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
aJean pushed a commit to aJean/vue that referenced this issue Aug 19, 2020
…amespace (fix vuejs#7330) (vuejs#7350)

* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment