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

xilem_html: Experiment with Strong typed attributes/event-listeners owned by the concrete element type #119

Conversation

Philipp-M
Copy link
Contributor

@Philipp-M Philipp-M commented Aug 3, 2023

Prototype of how strong typing attributes of HTML elements could look like, when all kinds of attributes and event listeners are directly owned by an HTML element type, instead of using composition types (see #131 for a different approach).

For more information see the discussion in the relevant zulip thread.

This will very likely never be merged (main reason is necessary 'static bounds for T and A for View<T, A>), but it may be interesting anyway.

@Philipp-M Philipp-M changed the title Started with strong typing elements and their attributes xilem_html: Strong typed attributes Aug 3, 2023
@Philipp-M Philipp-M force-pushed the xilem_html-strong-typing-attrs-elements branch from 9889977 to c4d978b Compare August 9, 2023 19:57
…he untyped `Element::attr` method for more convenient use with untyped attrs
…ibute methods yet)

* Macro refactor
* Disabled/Deleted previous generated elements
* Disabled/Commented out event views, (implemented some of them on the Element DOM interface trait
* Lots of smaller fixes
@Philipp-M Philipp-M changed the title xilem_html: Strong typed attributes xilem_html: Experiment with Strong typed attributes/event-listeners owned by the concrete element type Aug 21, 2023
@Philipp-M Philipp-M force-pushed the xilem_html-strong-typing-attrs-elements branch from c4d978b to 39e7a3f Compare August 24, 2023 14:45
@Philipp-M
Copy link
Contributor Author

Closing in favor of #141

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

Successfully merging this pull request may close these issues.

1 participant