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

Add auto-generated types for valid HTML descendants #1

Open
willmartian opened this issue Mar 23, 2022 · 0 comments
Open

Add auto-generated types for valid HTML descendants #1

willmartian opened this issue Mar 23, 2022 · 0 comments
Assignees
Labels
package: hdot type: feature New feature or request

Comments

@willmartian
Copy link
Owner

Currently, hdot does not type-check the content category of children passed to other elements. This feature needs to be added to the element types here.

The following should cause a type error, since <link> is an empty element.

h.link('Hello world'); 

Find more info here: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories

@willmartian willmartian added type: feature New feature or request package: hdot labels Mar 24, 2022
@willmartian willmartian changed the title Todo: generate type for allowed children Add auto-generated types for valid HTML descendants Mar 24, 2022
@willmartian willmartian self-assigned this Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: hdot type: feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant