{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/142","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/142/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/142/events","html_url":"https://github.com/htacg/tidy-html5/issues/142","id":54648348,"number":142,"title":"Tidy treats boolean attributes inconsistently","user":{"login":"jyasskin","id":83420,"avatar_url":"https://avatars.githubusercontent.com/u/83420?v=3","gravatar_id":"","url":"https://api.github.com/users/jyasskin","html_url":"https://github.com/jyasskin","followers_url":"https://api.github.com/users/jyasskin/followers","following_url":"https://api.github.com/users/jyasskin/following{/other_user}","gists_url":"https://api.github.com/users/jyasskin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyasskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyasskin/subscriptions","organizations_url":"https://api.github.com/users/jyasskin/orgs","repos_url":"https://api.github.com/users/jyasskin/repos","events_url":"https://api.github.com/users/jyasskin/events{/privacy}","received_events_url":"https://api.github.com/users/jyasskin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Bug+Report","name":"Bug Report","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T02:57:32Z","updated_at":"2015-01-20T01:06:29Z","closed_at":null,"body":"Given `test.html`:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <title>Title</title>\r\n    <script src=\"https://example.com/\" async></script>\r\n  </head>\r\n\r\n  <body>\r\n    <label><input type=checkbox checked name=cheese disabled> Cheese</label>\r\n  </body>\r\n</html>\r\n```\r\n`tidy --tidy-mark no --indent auto test.html` produces:\r\n```html\r\n<!DOCTYPE html>\r\n\r\n<html>\r\n<head>\r\n  <title>Title</title>\r\n  <script src=\"https://example.com/\" async=\"\">\r\n</script>\r\n</head>\r\n\r\n<body>\r\n  <label><input type=\"checkbox\" checked name=\"cheese\" disabled>\r\n  Cheese</label>\r\n</body>\r\n</html>\r\n```\r\n\r\nThe `<input>` element is formatted as I'd expect from the [boolean attributes](https://html.spec.whatwg.org/multipage/infrastructure.html#boolean-attributes) spec, but the [async](https://html.spec.whatwg.org/multipage/scripting.html#attr-script-async) attribute gets changed to include `=\"\"`, which is unexpected."},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/70588226","html_url":"https://github.com/htacg/tidy-html5/issues/142#issuecomment-70588226","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/142","id":70588226,"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-01-20T01:06:29Z","updated_at":"2015-01-20T01:06:29Z","body":"Hi Jeffrey (alias=jyasskin),\n\nYes, you are right...\n\nThis was a 'bug' introduced when adding\nhtml5 support... it can be fixed by\nchanging one value in the source...\n\nBut I do not /YET/ have commit permission\non this repo, so can only fix it in my\nown 'fork'... and in the past PRs have\nbeen ignored... there are at least 14\noutstanding... so have not done this...\n\nSo clone -\nhttps://github.com/geoffmcl/tidy-fork\n\nAnd then change to branch geoffmcl-restart...\n\n$ git checkout geoffmcl-restart\n\nAnd you should find it 'fixed'... and a LOT\nof other features added, AND many other bug\nfixes... I hope we soon get all this\ntogether, for Tidy's sake... but it takes\ntime...\n\nBe aware, my 'fork' only uses the cmake\ngenerator build system... all others have\nbeen removed...\n\nRegard,\nGeoff."}}