{"action":"closed","issue":{"url":"https://api.github.com/repos/w3c/html/issues/192","repository_url":"https://api.github.com/repos/w3c/html","labels_url":"https://api.github.com/repos/w3c/html/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/w3c/html/issues/192/comments","events_url":"https://api.github.com/repos/w3c/html/issues/192/events","html_url":"https://github.com/w3c/html/issues/192","id":147582261,"number":192,"title":"In the HTML5.1 spec, there is a typo in the code example for \"The algorithm for deleting names\".","user":{"login":"elliottregan","id":950202,"avatar_url":"https://avatars.githubusercontent.com/u/950202?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottregan","html_url":"https://github.com/elliottregan","followers_url":"https://api.github.com/users/elliottregan/followers","following_url":"https://api.github.com/users/elliottregan/following{/other_user}","gists_url":"https://api.github.com/users/elliottregan/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottregan/subscriptions","organizations_url":"https://api.github.com/users/elliottregan/orgs","repos_url":"https://api.github.com/users/elliottregan/repos","events_url":"https://api.github.com/users/elliottregan/events{/privacy}","received_events_url":"https://api.github.com/users/elliottregan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T23:14:19Z","updated_at":"2016-04-11T23:22:45Z","closed_at":"2016-04-11T23:22:45Z","body":"It looks like this code example has a typo:\r\n\r\n```html\r\n<div class=\"spaceship\">x=\"30\">\r\n  <button class=\"fire\" onclick=\"spaceships[this.parentNode.dataset.shipId].fire()\">\r\n    Fire\r\n  </button>\r\n</div>\r\n```\r\nshould be:\r\n```html\r\n<div class=\"spaceship\" data-ship-id=\"30\">\r\n  <button class=\"fire\" onclick=\"spaceships[this.parentNode.dataset.shipId].fire()\">\r\n    Fire\r\n  </button>\r\n</div>\r\n```\r\nhttps://w3c.github.io/html/dom.html#embedding-custom-non-visible-data-with-the-data-attributes"}}