{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/169","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/169/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/169/events","html_url":"https://github.com/htacg/tidy-html5/issues/169","id":59834560,"number":169,"title":"<p> moved out of <a>","user":{"login":"ralfjunker","id":1552416,"avatar_url":"https://avatars.githubusercontent.com/u/1552416?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfjunker","html_url":"https://github.com/ralfjunker","followers_url":"https://api.github.com/users/ralfjunker/followers","following_url":"https://api.github.com/users/ralfjunker/following{/other_user}","gists_url":"https://api.github.com/users/ralfjunker/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfjunker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfjunker/subscriptions","organizations_url":"https://api.github.com/users/ralfjunker/orgs","repos_url":"https://api.github.com/users/ralfjunker/repos","events_url":"https://api.github.com/users/ralfjunker/events{/privacy}","received_events_url":"https://api.github.com/users/ralfjunker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Bug%20Confirmed","name":"Bug Confirmed","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/5","html_url":"https://github.com/htacg/tidy-html5/milestones/5.0.0","labels_url":"https://api.github.com/repos/htacg/tidy-html5/milestones/5/labels","id":959565,"number":5,"title":"5.0.0","description":"Tidy’s first stable release in several years. Now with HTML5 support, bug fixes, and a new management team.","creator":{"login":"balthisar","id":3053246,"avatar_url":"https://avatars.githubusercontent.com/u/3053246?v=3","gravatar_id":"","url":"https://api.github.com/users/balthisar","html_url":"https://github.com/balthisar","followers_url":"https://api.github.com/users/balthisar/followers","following_url":"https://api.github.com/users/balthisar/following{/other_user}","gists_url":"https://api.github.com/users/balthisar/gists{/gist_id}","starred_url":"https://api.github.com/users/balthisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balthisar/subscriptions","organizations_url":"https://api.github.com/users/balthisar/orgs","repos_url":"https://api.github.com/users/balthisar/repos","events_url":"https://api.github.com/users/balthisar/events{/privacy}","received_events_url":"https://api.github.com/users/balthisar/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":13,"state":"open","created_at":"2015-01-31T17:11:36Z","updated_at":"2015-03-05T12:42:19Z","due_on":"2015-03-13T16:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-04T17:49:27Z","updated_at":"2015-03-05T13:26:55Z","closed_at":null,"body":"Revision: 2e383c6\r\nDate: 28.02.2015 20:32:38\r\n\r\nTidy moves a &lt;p&gt; tag out of an &lt;a&gt; tag.\r\n\r\nExample:\r\n```html\r\n<a href=\"l1\"><p>one</p></a>\r\n```\r\nTidy processes this to:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<title></title>\r\n</head>\r\n<body>\r\n<a href=\"l1\"></a>\r\n<p>one</p>\r\n</body>\r\n</html>\r\n```\r\nTesting with FireFox 36, the &lt;p&gt; tag stays within the &lt;a&gt; tag.\r\n\r\nShould not Tidy behave the same?"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/77362962","html_url":"https://github.com/htacg/tidy-html5/issues/169#issuecomment-77362962","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/169","id":77362962,"user":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T13:26:55Z","updated_at":"2015-03-05T13:26:55Z","body":"@balthisar You make a very good point about having **TWO** libraries is just another way of **FORCING** the user to choose. And if [s]he has to choose, then why not as a --doctype, or some other new parameter, on a **single** tidy?\r\n\r\nAnd after your comments I am beginning to think the other way around on the html5 mode. It IS 2015, and html5 is getting lots of support, so tidy should default to html5 mode. That is if it finds NO doctype, like when given just a snippet of html, or finds one of the 2 declaration you mentioned, it STAYS in html5 mode.\r\n\r\nSo **ONLY** if given another --doctype, or some new parameter, by the user, OR it detects other than a html5 doctype, will it exit html5 mode, and try to correctly handle the legacy documents with appropriate warnings and fixing.\r\n\r\nYes, I have raised this issue a few times, from a long way back. It needs a resolution, to establish the code path for tidy to follow, and agree it should be placed everywhere, and anywhere that will get peoples attention...\r\n\r\nWe really **NEED** lots of **FEEDBACK** on this **TOUGH** issue.\r\n"}}