{"action":"created","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/3380","repository_url":"https://api.github.com/repos/tinymce/tinymce","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/3380/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/3380/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/3380/events","html_url":"https://github.com/tinymce/tinymce/issues/3380","id":194301701,"number":3380,"title":"Nested <div> tags with attributes removed","user":{"login":"ShivaliTayal","id":24453586,"avatar_url":"https://avatars.githubusercontent.com/u/24453586?v=3","gravatar_id":"","url":"https://api.github.com/users/ShivaliTayal","html_url":"https://github.com/ShivaliTayal","followers_url":"https://api.github.com/users/ShivaliTayal/followers","following_url":"https://api.github.com/users/ShivaliTayal/following{/other_user}","gists_url":"https://api.github.com/users/ShivaliTayal/gists{/gist_id}","starred_url":"https://api.github.com/users/ShivaliTayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShivaliTayal/subscriptions","organizations_url":"https://api.github.com/users/ShivaliTayal/orgs","repos_url":"https://api.github.com/users/ShivaliTayal/repos","events_url":"https://api.github.com/users/ShivaliTayal/events{/privacy}","received_events_url":"https://api.github.com/users/ShivaliTayal/received_events","type":"User","site_admin":false},"labels":[{"id":279311541,"url":"https://api.github.com/repos/tinymce/tinymce/labels/resolution:%20invalid","name":"resolution: invalid","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-08T10:38:58Z","updated_at":"2016-12-28T06:12:57Z","closed_at":null,"body":"I am adding this source code to my editor version-4.1.4:\r\n\r\n```html\r\n<div id=\"example\" class=\"k-content\">\r\n<div id=\"gauge-container\">\r\n<div id=\"gaugePercentPointsCompleted\"></div>\r\n<div id=\"valPercentPointsCompleted\" class=\"gaugeVal\"></div>\r\n<div id=\"statementPercentPointsCompleted\" class=\"gaugeStatement\"></div>\r\n</div>\r\n</div>\r\n```\r\n\r\nbut after saving it if I go back to the editor I get this \r\n \r\n```html\r\n<div id=\"example\" class=\"k-content\">&nbsp;</div>\r\n````\r\n\r\nWith what I have inferred by reading other posts related to this is ,the inside divs are empty because of which the editor considers them to be useless and adds &nbsp. But I have two points here:\r\n\r\n1.My inside divs are empty but have class or Id attr because of which this shouldn't be considered to be useless.\r\n2.I tried overriding the existing rules by using extended_valid_elements : '#div[*]' which will again add space to my div\r\n3.I also changed default option to verify_html: false , but this is seemingly a dangerous thing to do.\r\n\r\nCan you please suggest something to rectify this or tell if this is by design & cann't be fixed\r\n\r\nThanks,\r\nShivali"},"comment":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/comments/269431333","html_url":"https://github.com/tinymce/tinymce/issues/3380#issuecomment-269431333","issue_url":"https://api.github.com/repos/tinymce/tinymce/issues/3380","id":269431333,"user":{"login":"ShivaliTayal","id":24453586,"avatar_url":"https://avatars.githubusercontent.com/u/24453586?v=3","gravatar_id":"","url":"https://api.github.com/users/ShivaliTayal","html_url":"https://github.com/ShivaliTayal","followers_url":"https://api.github.com/users/ShivaliTayal/followers","following_url":"https://api.github.com/users/ShivaliTayal/following{/other_user}","gists_url":"https://api.github.com/users/ShivaliTayal/gists{/gist_id}","starred_url":"https://api.github.com/users/ShivaliTayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShivaliTayal/subscriptions","organizations_url":"https://api.github.com/users/ShivaliTayal/orgs","repos_url":"https://api.github.com/users/ShivaliTayal/repos","events_url":"https://api.github.com/users/ShivaliTayal/events{/privacy}","received_events_url":"https://api.github.com/users/ShivaliTayal/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T06:12:57Z","updated_at":"2016-12-28T06:12:57Z","body":"And what about the font awesome icons `<i></i>`  those are stripped off. We can't use them."}}
{"actor":{"display_login":"ShivaliTayal"}}