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

Review attribute casing #1864

Open
gadenbuie opened this issue Feb 24, 2025 · 0 comments
Open

Review attribute casing #1864

gadenbuie opened this issue Feb 24, 2025 · 0 comments

Comments

@gadenbuie
Copy link
Collaborator

Would it make sense to you if createElement() inside of js/utils/_utils.ts replaced _ with - (similar to what htmltools in Python does)?

Originally posted by @cpsievert in #1853 (comment)

Relatedly, we should review and enforce:

  • Snake case in R/Python, i.e. Tag("shiny-chat-message", content_type="html")
  • Kebab-case in HTML, i.e. <shiny-chat-message content-type="html">
  • camelCase in TS/JS, i.e. this.contentType.
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

No branches or pull requests

1 participant