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 data URLs with unencoded # characters break in IE11 / Firefox #20956

Closed
fdaunis opened this issue Oct 20, 2016 · 4 comments
Closed

SVG data URLs with unencoded # characters break in IE11 / Firefox #20956

fdaunis opened this issue Oct 20, 2016 · 4 comments

Comments

@fdaunis
Copy link

fdaunis commented Oct 20, 2016

Up-down arrows on custom select control no visible on Firefox and IE11. On Chrome works fine.

on Bootstrap 4 alpha 4 works ok, on alpha 5 you have a error on css.
chome
firefox
ie11

OK alpha4:
data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E

bootstrap_4.0.0-alpha4.css line 3456

ERROR alpha5:
data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='#333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E

bootstrap_4.0.0-alpha5.css line 3521

@fdaunis fdaunis changed the title Firefox custom select Firefox and IE11 custom select Oct 20, 2016
@ghost
Copy link

ghost commented Oct 20, 2016

Same goes for form validation and custom checkboxes/radios.

SVG icons display fine in Chrome 54, but not in Firefox 49.

http://v4-alpha.getbootstrap.com/components/forms/#validation
http://v4-alpha.getbootstrap.com/components/forms/#checkboxes-and-radios-1

@Johann-S
Copy link
Member

Me too for form validation I cannot see SVG Icon on Firefox 48 and 49 but it's fine on Chrome but you should open a new issue IMO @xcartmods

@patrickhlauke patrickhlauke changed the title Firefox and IE11 custom select SVG data URLs with unencoded # characters break in IE11 / Firefox Oct 20, 2016
@patrickhlauke
Copy link
Member

Confirmed that there is an issue with data URLs which in the latest alpha have a clear # rather than an encoded %23, which results in IE11/Firefox crapping out on them.

@patrickhlauke patrickhlauke self-assigned this Oct 20, 2016
@ghost
Copy link

ghost commented Oct 20, 2016

I use a base href="" tag in my site, so inline SVG's don't tend to work for me anyway.
So I use the images instead. Here they are if anyone needs them also...
bs_svg_icons.zip

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

No branches or pull requests

4 participants