feat(attribute): Add HasAccept, HasAutocomplete traits and accept(), autocomplete() methods to manage accept and autocomplete attributes for HTML elements.#67
Conversation
…t()`, `autocomplete()` methods to manage `accept` and `autocomplete` attributes for HTML elements.
📝 WalkthroughWalkthroughThe PR introduces two new traits (HasAccept, HasAutocomplete) for immutably managing HTML accept and autocomplete attributes on form elements. Each trait provides a fluent method delegating to addAttribute(). Comprehensive tests and data providers validate attribute rendering and immutability behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…e an empty string as default value for better handling of autocomplete attribute.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Pull Request
Summary by CodeRabbit
Release Notes
New Features
Tests