Skip to content
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

Infer Defaults For Some Combinators? #56

Open
dyoder opened this issue Aug 16, 2024 · 0 comments
Open

Infer Defaults For Some Combinators? #56

dyoder opened this issue Aug 16, 2024 · 0 comments

Comments

@dyoder
Copy link
Contributor

dyoder commented Aug 16, 2024

Ex: for attributes, we could assume that, if the top item on the stack isn't an HTMLElement subtype, we should use the handle DOM node instead. Or we could check for the handle of the stack.

Generics would work well here. We could have a generic for a subtype of HTMLElement, a generic for a handle, and a fallback that explains that the given combinator was expecting one or the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant