{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react/issues/5479","labels_url":"https://api.github.com/repos/facebook/react/issues/5479/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/5479/comments","events_url":"https://api.github.com/repos/facebook/react/issues/5479/events","html_url":"https://github.com/facebook/react/issues/5479","id":117057435,"number":5479,"title":"dangerouslySetInnerHTML not reconciling for P tags","user":{"login":"Surreal9","id":4522149,"avatar_url":"https://avatars.githubusercontent.com/u/4522149?v=3","gravatar_id":"","url":"https://api.github.com/users/Surreal9","html_url":"https://github.com/Surreal9","followers_url":"https://api.github.com/users/Surreal9/followers","following_url":"https://api.github.com/users/Surreal9/following{/other_user}","gists_url":"https://api.github.com/users/Surreal9/gists{/gist_id}","starred_url":"https://api.github.com/users/Surreal9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Surreal9/subscriptions","organizations_url":"https://api.github.com/users/Surreal9/orgs","repos_url":"https://api.github.com/users/Surreal9/repos","events_url":"https://api.github.com/users/Surreal9/events{/privacy}","received_events_url":"https://api.github.com/users/Surreal9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T06:05:17Z","updated_at":"2015-11-16T06:05:17Z","closed_at":null,"body":"I noticed when trying to use dangerouslySetInnerHTML for a P tag in a tutorial app I am building, it was having weird behaviour when the contents was being changed. I am able to get the desired behaviour by using a div or span instead. I am using React 0.14.2.\r\n\r\nThis might be similar to https://github.com/facebook/react/issues/377\r\n\r\nTo view, check out this branch:\r\nhttps://github.com/Surreal9/react-tutorial-journal-app/tree/bug/broken-edit-with-marked-and-p-tag\r\n\r\nSteps to repro:\r\n\r\n- Run the app, add a post\r\n- Click the 'edit' icon next to the new post\r\n- Edit the text, and hit 'Update Post'\r\n- You should see the old post text still displayed, along with the newly updated text."}}