Repository metrics
- Stars
- (1,317 stars)
- PR merge metrics
- (PR metrics pending)
説明
Unfortunately, all the DOM's I've generated thus far (via https://github.com/matthewmueller/joy/blob/master/internal/_dom/main.go) all kind of suck. That's not to say it's impossible to generate a good DOM, just quite difficult.
The problem is that they're way too verbose and the files are huge. I think the solution is to handwrite the DOM, copy and pasting most of the logic from the generated output and just making modifications to improve the API and clean stuff up. For what should be included in this DOM, you can refer to this: https://developer.mozilla.org/en-US/docs/Web/Reference/API
I'd like to have as little cognitive overhead as possible going from the JS DOM API to the Go DOM API, so hopefully we can make it look like this: document.Body.QuerySelector(".test")
You'll also have to be aware of this Go bug: https://github.com/golang/go/issues/22866, so for the circular interfaces, it's a good idea to expand all the interfaces manually until this is fixed.