{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-magic/issues/79","repository_url":"https://api.github.com/repos/reactjs/react-magic","labels_url":"https://api.github.com/repos/reactjs/react-magic/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-magic/issues/79/comments","events_url":"https://api.github.com/repos/reactjs/react-magic/issues/79/events","html_url":"https://github.com/reactjs/react-magic/issues/79","id":174251760,"number":79,"title":"Self-closing tags and custom components","user":{"login":"ischenkodv","id":21929,"avatar_url":"https://avatars.githubusercontent.com/u/21929?v=3","gravatar_id":"","url":"https://api.github.com/users/ischenkodv","html_url":"https://github.com/ischenkodv","followers_url":"https://api.github.com/users/ischenkodv/followers","following_url":"https://api.github.com/users/ischenkodv/following{/other_user}","gists_url":"https://api.github.com/users/ischenkodv/gists{/gist_id}","starred_url":"https://api.github.com/users/ischenkodv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ischenkodv/subscriptions","organizations_url":"https://api.github.com/users/ischenkodv/orgs","repos_url":"https://api.github.com/users/ischenkodv/repos","events_url":"https://api.github.com/users/ischenkodv/events{/privacy}","received_events_url":"https://api.github.com/users/ischenkodv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-31T11:43:06Z","updated_at":"2016-12-19T07:17:27Z","closed_at":null,"body":"I'm trying to convert HTML with my custom component named \"Data\". It looks like this:\n\n``` html\n<div>\n  <br/>\n  <Data name=\"foo\"/>\n  <p>After</p>\n</div>\n```\n\nAs I result I get the following JSX in which the paragraph becomes the child of a Data tag and the tag itself is lowercased:\n\n``` javascript\nvar MyTemplate = React.createClass({\n  render: function() {\n    return (\n\n      <div>\n        <br />\n        <data name=\"foo\">\n          <p>After</p>\n        </data></div>\n    );\n  }\n});\n```\n\nIs this an expected behaviour?\n"},"comment":{"url":"https://api.github.com/repos/reactjs/react-magic/issues/comments/267897525","html_url":"https://github.com/reactjs/react-magic/issues/79#issuecomment-267897525","issue_url":"https://api.github.com/repos/reactjs/react-magic/issues/79","id":267897525,"user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T07:17:27Z","updated_at":"2016-12-19T07:17:27Z","body":"> couldn't we just leave the casing of tags alone?\r\n\r\nIt's using the browser's HTML parser, which tends to convert tags to lowercase (as regular HTML tags are not case sensitive). This library was designed only for use as a HTML to JSX converter, not a HTML+JSX to JSX converter, and thus it does not support the use case of a chunk of HTML that has existing JSX elements in it."}}
{"actor":{"display_login":"Daniel15"}}