Skip to content

Import html_element #772

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

Merged
merged 1 commit into from
Jun 10, 2025
Merged

Import html_element #772

merged 1 commit into from
Jun 10, 2025

Conversation

sjorsdonkers
Copy link
Contributor

@sjorsdonkers sjorsdonkers commented Jun 6, 2025

Turns HtmlElement from an opaque type to an extern struct, this also bring in some others most notable Node and HtmlDocument are now also no longer opaque.

This change allows us to embed these DOM objects directly into zig structs.

@sjorsdonkers sjorsdonkers force-pushed the extern-struct-html_element branch from 2ecb925 to d00084d Compare June 6, 2025 15:58
Comment on lines +29 to +30
@cInclude("html/html_element.h");
@cInclude("html/html_document.h");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change

@sjorsdonkers sjorsdonkers merged commit d9ce89a into main Jun 10, 2025
11 checks passed
@sjorsdonkers sjorsdonkers deleted the extern-struct-html_element branch June 10, 2025 09:28
@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant