Conversation
28edf1a to
8075537
Compare
|
Looks like there’s some weird circular dependency issues. One way to fix it would be to change WebIDL2JS to generate |
|
Oh, awesome. Note that the spec changes for this were pretty involved. I'm unsure what that translates to in terms of jsdom changes, exactly, but we should probably at least pass any of the web platform tests that got updated.... although it looks like maybe the spec changed before we had a tests-required policy in WHATWG :-/. |
Are they the same issues as #1247 (comment) ? Could we merge attributes.js and Attr-impl.js to fix them? |
I’d rather fix WebIDL2JS to generate code that doesn’t completely break on circular |
|
I'd rather avoid the circular requires; they're a sign of bad architecture, and I'm not willing to change our tools to make them easier. |
0f411ab to
1987d33
Compare
1987d33 to
a852742
Compare
341f636 to
e07359e
Compare
|
review?(@domenic): The tests are now passing. |
|
As stated previously I want us to remove the circular dependency before making any changes in this area. |
|
That will just create another circular dependency, this time between This is because jsdom/lib/jsdom/living/nodes/Node-impl.js Line 10 in 39c70a2 Since the methods and properties inherited from |
|
It seems very doable, you just have to not keep all the functions together. E.g. move |
|
|
4e36c8a to
d9570ad
Compare
|
This is looking pretty good. Do you have any thoughts on the compareDocumentPosition changes I linked to? |
|
@domenic Where can I find the |
|
The three commits linked in #2770 (comment) |
|
Ping; any thoughts about |
|
In fact, using madge to measure dependency cycles, I’ve determined that moving |
|
I am confident that the circular dependencies can be detangled. If you cannot do it, that just means we'll have to wait on someone who can. |
|
I’ve managed to get the number of circular dependencies down by 1, when compared to
I did it by exposing |
TimothyGu
left a comment
There was a problem hiding this comment.
Almost there, but with some final issues. Also please revert the last bits of export style changes. Happy to see that we can continue using attributes.js!
Co-Authored-By: Timothy Gu <timothygu99@gmail.com>
d3117c2 to
7bdecbb
Compare
`Element‑impl.js` is no longer affected by this PR, so this reverts `exports` changes made to it. Co-Authored-By: Timothy Gu <timothygu99@gmail.com>
Co-Authored-By: Timothy Gu <timothygu99@gmail.com>
e07b2f5 to
2af3a32
Compare
Co-Authored-By: Timothy Gu <timothygu99@gmail.com>
|
Regardless of my frustration about the process of working with you on this, I do want to say thank you for taking it on, and that I am happy with the end result. It's a pretty good improvement that solves a ~3 year old bug report. Thanks as well to @TimothyGu for stepping in when I was burning out on the process. |
Resolves #1641
Supersedes and closes #1822