-
Notifications
You must be signed in to change notification settings - Fork 77
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
Failed to execute 'getComputedStyle' on 'Window' #69
Comments
I see two issues.
1) You should not use the body tag, please insert a div and use that div. Just put that div inside body.
2) Because you are using Codepen, which is https you will need to use https URLs in the Javascript.
I updated these are it formats.
https://codepen.io/anon/pen/mMPwew
Kevin Brown
From: Luiza.Bentivoglio [mailto:[email protected]]
Sent: Monday, July 31, 2017 8:02 AM
To: Xportability/css-to-pdf <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [Xportability/css-to-pdf] Failed to execute 'getComputedStyle' on 'Window' (#69)
I have this error:
pen.js:270 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Object.getRealStyle (pen.js:270)
at Object.copyComputedStyle (pen.js:280)
at Object.flattenStyle (pen.js:134)
at String. (pen.js:761)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at Object.__format (pen.js:748)
at Object.Format (pen.js:855)
at HTMLButtonElement.onclick (index.html:320)
this is my pen https://codepen.io/anon/pen/GvZjrz
I don't understand because offline everything is working but when i try on my server i have this error...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#69> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AAsJo8Iyv_9YoZdCyIAJ-jKzadgGuP6pks5sTexugaJpZM4Oog-y> . <https://github.com/notifications/beacon/AAsJoxukswAe1uYV9llo3o8Sejoq7lveks5sTexugaJpZM4Oog-y.gif>
|
Thank you so much Kevin!!!!!!!! :D |
Kevin, how i can fix float-left/float-right instructions for Internet Explorer? i have to use position absolute or something else? Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this error:
pen.js:270 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Object.getRealStyle (pen.js:270)
at Object.copyComputedStyle (pen.js:280)
at Object.flattenStyle (pen.js:134)
at String. (pen.js:761)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at Object.__format (pen.js:748)
at Object.Format (pen.js:855)
at HTMLButtonElement.onclick (index.html:320)
this is my pen https://codepen.io/anon/pen/GvZjrz
I don't understand because offline everything is working but when i try on my server i have this error...
The text was updated successfully, but these errors were encountered: