Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants