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

Disappeared SVG tags use in IE10 - IE11. #85

Open
zazagag opened this issue Nov 30, 2016 · 2 comments
Open

Disappeared SVG tags use in IE10 - IE11. #85

zazagag opened this issue Nov 30, 2016 · 2 comments

Comments

@zazagag
Copy link

zazagag commented Nov 30, 2016

I am using svg through tag use and IE10 - IE11 have removed all of them([email protected]).

Got from server:
<svg class="icon-twitter" width="16px" height="16px" data-reactid="8"><use xlink:href="#twitter" /></svg>.

Got after react-lite applying:
<svg class="icon-twitter" width="16px" height="16px" data-reactid="8"></svg>.

In the same time [email protected] has no this problem, all my SVG were displayed correctly.

@Lucifier129
Copy link
Owner

Lucifier129 commented Nov 30, 2016

thx feedback, I will check this problem and try to fix it as soon.

@Lucifier129
Copy link
Owner

Lucifier129 commented Nov 30, 2016

I found it just work the same as react.

import React, { Component } from 'react-lite'
import ReactDOM from 'react-lite'

function Test() {
	return (
		<svg className="icon-twitter" width="16px" height="16px">
			<use xlinkHref="#twitter" />
		</svg>
	)
}

ReactDOM.render(
	<Test />,
	document.getElementById('root')
)

In fact, react-lite will replace the whole dom tree from server-side with new dom tree, and data-reactid="8" will not appeare, so I think maybe something else cause this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants