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

Safari Error when dynamic src ends up being null #64

Open
hereiam133 opened this issue Feb 1, 2016 · 3 comments
Open

Safari Error when dynamic src ends up being null #64

hereiam133 opened this issue Feb 1, 2016 · 3 comments

Comments

@hereiam133
Copy link

Seems safari blows up when the src for the iron-image is null.

@patrinhani-ciandt
Copy link

👍

@Legioth
Copy link

Legioth commented Aug 16, 2017

With src being null or undefined, <iron-image> behaves as though the src would be "null" or "undefined" respectively, thus causing a request to an URL that most likely doesn't return an image. This happens in all browsers.

@davidmaxwaterman
Copy link

Is there a workaround for this? I keep seeing references to '/undefined' in devtools network panel, and while it doesn't seem to cause any problems, it does ring alarm bells when I see it...and it makes it look like there's an error in my code, when it's actually iron-image. I tried setting src to '#', but then it simply references 'localhost' (since I'm running on localhost using polymer serve).

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

5 participants