Open GeoffreyPlitt opened 9 years ago
I'm getting the same coming at through inlineContent. It looks like document.querySelectorAll(sel) is having the problem. Stopped just before the error, I can perform document.querySelector(sel) and it returns a result, but document.querySelectorAll(sel) consistently returns the "Uncaught TypeError: Cannot set property length of [object Object] which only has a getter".
My guess is that it is a problem with "jsdom" which blesses your document (or fragment) with DOM properties and functions. It must be an error with the implementation of document.querySelectorAll
I have the same issue. It doesn't work on node 0.12, maybe because of the outdated version of jsdom
. It's currently at v4.0 now.
Getting this error as well, halp :disappointed:
Well, I suck. Tests failed..
I had originally chosen this because it had the applyLinksToStyleTags
option. But I ended up digging into the original https://github.com/Automattic/juice repo and realized that by using its juiceFile
method, it will fetch remote resources.
I would recommend using the original repo as the maintainers are actively patching it, while it seems that this fork is no longer maintained, and is becoming problematic with jsdom
advancing so rapidly and its current versions only working with iojs. Meanwhile, the original repo is using cheerio
and doesn't seem to be having any major dependency issues.
I'm getting the following error.
My invocation looks like:
And the HTML has a stylesheet with href pointing to a relative path with parent folder using double-dots ("../styles/style.css")
I get: