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 element.onEndTag js binding #263

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Conversation

taina0407
Copy link
Contributor

This PR is to support onEndTag for JS API.
This is the first time I'm working on a Rust project so feel free to suggest any changes

@kornelski
Copy link
Contributor

There's only one EndTag type, so the macro for defining mutation methods seems unnecessary?

@taina0407
Copy link
Contributor Author

There's only one EndTag type, so the macro for defining mutation methods seems unnecessary?

You are right. The problem here is EndTag seems missing removed property, so I changed the PR to adding this so we can re-use existing impl_mutations macro instead.

@kornelski
Copy link
Contributor

Looks good. Small nit: the comment for removed is a copypaste error

@taina0407
Copy link
Contributor Author

@kornelski thankyou, amend the commit to change "comment" to "end tag" :)

@kornelski kornelski enabled auto-merge (rebase) March 7, 2025 12:31
@kornelski kornelski merged commit e95998e into cloudflare:master Mar 7, 2025
3 checks passed
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.

2 participants