{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/132","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/132/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/132/events","html_url":"https://github.com/htacg/tidy-html5/issues/132","id":42153392,"number":132,"title":"Omitting optional BODY start tag yields undue warning","user":{"login":"ezequiel-garzon","id":1625162,"avatar_url":"https://avatars.githubusercontent.com/u/1625162?v=3","gravatar_id":"","url":"https://api.github.com/users/ezequiel-garzon","html_url":"https://github.com/ezequiel-garzon","followers_url":"https://api.github.com/users/ezequiel-garzon/followers","following_url":"https://api.github.com/users/ezequiel-garzon/following{/other_user}","gists_url":"https://api.github.com/users/ezequiel-garzon/gists{/gist_id}","starred_url":"https://api.github.com/users/ezequiel-garzon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezequiel-garzon/subscriptions","organizations_url":"https://api.github.com/users/ezequiel-garzon/orgs","repos_url":"https://api.github.com/users/ezequiel-garzon/repos","events_url":"https://api.github.com/users/ezequiel-garzon/events{/privacy}","received_events_url":"https://api.github.com/users/ezequiel-garzon/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":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/5","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":5,"closed_issues":7,"state":"open","created_at":"2015-01-31T17:11:36Z","updated_at":"2015-02-01T21:30:05Z","due_on":"2015-02-06T16:00:00Z","closed_at":null},"comments":10,"created_at":"2014-09-07T21:52:59Z","updated_at":"2015-02-02T11:41:53Z","closed_at":"2015-02-01T21:30:05Z","body":"The W3C standard [indicates](http://www.w3.org/TR/html5/syntax.html#optional-tags) that \"Omitting an element's start tag in the situations described below does not mean the element is not present; it is implied, but it is still there. For example, an HTML document always has a root html element, even if the string <html> doesn't appear anywhere in the markup.\"\r\n\r\nIt is therefore hard to understand why `tidy` yields the warning `inserting implicit <body>` when evaluating the following input:\r\n\r\n    <!doctype html>\r\n    <meta charset=utf-8>\r\n    <title>Sample</title>\r\n    <h1>Sample</h1>\r\n\r\nIf anything, *all* omitted tags are eventually inserted by the parser, so why bring up this particular warning? (Removing whitespace doesn't remove the warning.) The above code is validated by the W3C validator."},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/72443579","html_url":"https://github.com/htacg/tidy-html5/issues/132#issuecomment-72443579","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/132","id":72443579,"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-02-02T11:41:53Z","updated_at":"2015-02-02T11:41:53Z","body":"No appolgy needed for 'edge' cases... subtlety is part of Tidy ;=))\r\n\r\nGiven that I recently argued in #88, that it was ok for Tidy to 'silently' fix-up ```<``` and ```>```, that is no warning issued, perhaps the 3 warnings issued for ```<p>A&E & this && even this</p>``` is excessive!\r\n\r\nI note that the validators only flags the first! And of course the tidied output passes the validators with flying colors...\r\n\r\nHave always been of two minds about 'silent' fix-ups, but given that there are probably a number of other 'silent' fix-ups, so I suppose I'd opt for suppressing these warnings... or not...\r\n\r\nJust do not like the sense that Tidy does things to my file without telling me, and thus in a way helping in my html education and understanding. \r\n\r\nMaybe all these 'silent' actions need to be at a different level that gives notice of change, if say --show-silent-fixes on, but does not raise the error exit level.\r\n\r\nSorry to be so ambiguous ;=))\r\n"}}