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

HTML style attribute with multiple properties isn't deparsed correctly inside a JSXTag #17

Open
cpsievert opened this issue Feb 11, 2022 · 0 comments

Comments

@cpsievert
Copy link
Collaborator

cpsievert commented Feb 11, 2022

For example

from htmltools import *
JSXTag("Foo", div(style = "foo:bar; baz:bum"))

The leading whitespace on " baz" needs to be striped

<script type="text/javascript">
(function() {
  var container = new DocumentFragment();
  ReactDOM.render(
    React.createElement(
      Foo, {},
      React.createElement(
        'div', {"style": {"foo": "bar", " baz": "bum"}})
    )
  , container);
  document.currentScript.after(container);
})();
</script>
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