allow `{% attrs %}` to render hyphenated attributes ( `aria-label`, `data-script` etc)
See original GitHub issuefrom htmx.org
htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext
htmx attributes are represented in templates tags like other attributes.
potential caveat : they are defined with a hyphen hx-get
, hx-target
, hx-swap
…
this enhancement could also increase compatibility with alpine, hyperscript and other frameworks that make use of custom HTML attributes, and attrs that are defined with hyphens such as aria-label
Happy to contribute to implementation
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Allow hyphenated properties to be defined in a component
I receive a warning that data-tooltip has not been declared as a property on the Icon component. However, there is no way to...
Read more >attrs by Example - attrs 22.2.0 documentation
Keyword-only attributes allow subclasses to add attributes without default values, even if the base class defines attributes with default values:.
Read more >Hyphenated html attributes with asp.net mvc - Stack Overflow
When using HTML helpers in ASP.NET MVC such as <%= Html.TextBox("name", value, new { attribute = attributeValue }) %> the anonymous object is...
Read more >Diff - 56612bfb38..640d842b5c - chromium/src - Git at Google
-138,8 +138,7 @@ property_converter, properties); const bool provide_non_client_frame ... Allow windows with no maximum width or height to be snapped.
Read more >Falcon Sandbox v8.30 © Hybrid Analysis
Please note that by continuing to use this site you consent to the terms of our Data Protection Policy. ACCEPT. Toggle navigation
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve released version
0.5.0a0
which makes this case “just work” without any workarounds.awesome, thank you !