ssorallen / turbo-react

A JavaScript library that transitions between static HTML pages on navigation; no app server required.
https://turbo-react.herokuapp.com/
Apache License 2.0
274 stars 16 forks source link

HTML <input> tags will fail in JSXTransformer.transform #7

Closed hallgren closed 9 years ago

hallgren commented 9 years ago

JSXTransformer.transform expect all tags to end with a slash </> or a closing tag <></> but the element.innerHTML will transform a input tag to a single <input> tag with no ending / that will fail in the transform method. => Expected corresponding XJS closing tag for input

I don´t know if the issue is in the .innerHTML method or that JSXTransformer.transform should handle the <input> tag?

hallgren commented 9 years ago

The pull-request https://github.com/ssorallen/turbo-react/pull/9 will also fix this issue.

ssorallen commented 9 years ago

I confirmed this was fixed by integrating react-magic's HTML to JSX converter.