Closed larsrh closed 3 years ago
For the first one: Attr.cloneNode()
is deprecated. See https://developer.mozilla.org/en-US/docs/Web/API/Attr#Deprecated_properties_and_methods
I expect it therefore has not been implemented in jsdom
. The test is therefore obsolete and should probably be removed.
cloneNode() You shouldn't have been using this in the first place, so you probably don't care that this is going away.
lulz :P
I did not investigate the other two failures, but I wouldn't be surprised if they have a similar cause. I would expect jsdom to be much stricter wrt. deprecated DOM APIs than browsers (the latter have to stay backward compatible for loong time).
@sjrd Thanks for the investigation. Unfortunately I can't really do much about this, because my knowledge about Scala.js is approximately zero. I'm just trying to help @lihaoyi to get some 2.12 builds out the door, because many things depend on it :smile:
FWIW, I'd say "works on PhantomJS" is good enough for me and you can go ahead with publishing if the tests pass there. We can sort out the deprecated tests and stuff later
Happens only with the default JSEnv, but not with
jsEnv := PhantomJSEnv().value
.