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
Dummy documentElement.clientTop and clientLeft #980
Comments
Are they always zero in browsers? |
No, in my experience they always equal to the width of the border on the |
In that case I don't think we should do this. undefined converts to zero, and I don't really think #689 was a good idea in retrospect anyway. |
I actually make use of #689. I think you need to decide on a general rule - what does jsdom do when asked for unsupported functionality. Throw, return |
We could just get the computed border width and use that. There's no reason to get a dummy value if we can get the real values instead. |
In light of #689, perhaps we could add dummy
clientTop
andclientLeft
on thedocument.documentElement
?For example, jQuery
.offset
uses thoses.Could we just hardcode those to zeros for now?
The text was updated successfully, but these errors were encountered: