lazysizes icon indicating copy to clipboard operation
lazysizes copied to clipboard

When element's nodetype is 9 return empty string instead of throwing error.

Open 8ivek opened this issue 2 years ago • 2 comments

I was constantly getting following error: Failed to execute 'getComputedStyle' on 'Window': parameter is not of type 'Element'

and I solved it using this solution.

8ivek avatar May 06 '22 03:05 8ivek

Thank you very much. Could you give me a test case where this problem is happening?

aFarkas avatar May 06 '22 12:05 aFarkas

I am getting this error in one of our private project where we are including a lot of js files, I haven't been able to isolate whats the exact case when this error is happening but I doubt this is happening when we use lazysizes.js with jquery-migrate.min.js. If i'm able to isolate i'll post it here. Thank you!

8ivek avatar May 06 '22 14:05 8ivek