-
Notifications
You must be signed in to change notification settings - Fork 448
fix(worker-image): Add attribute functions for worker-image #681
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
fix(worker-image): Add attribute functions for worker-image #681
Conversation
🦋 Changeset detectedLatest commit: 4d83e27 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help @mws19901118
I think we should have the complete implementation here. Can you add this missing piece please?
Hey, yep, sure. A full set of attribute functions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please. These methods will prevent other issues I guess.
- Add getAttribute(), hasAttribute(), removeAttribute(), toggleAttribute() - Enhance setAttribute() to handle src attribute properly - Add attributes Map to store element attributes - Create comprehensive unit tests covering all attribute methods 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
6c20972
to
f471d49
Compare
Hi @gioboa, just updated the functions with the help of Claude, if that is okay in this repo. Please take a look, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great to me 👏
Kudos for your first PR in the project 🎉
Thank you so much!!! |
What is it?
Description
This PR adds
setAttribute()
,getAttribute()
,hasAttribute()
,removeAttribute()
,toggleAttribute()
functions toHTMLImageElement
class. with unit tests.Use cases and why
Checklist: