{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/120","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/120/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/120/events","html_url":"https://github.com/asciidoctor/asciidoctor.js/issues/120","id":98604500,"number":120,"title":"Setting document attribute after loading document","user":{"login":"rahmanusta","id":1158804,"avatar_url":"https://avatars.githubusercontent.com/u/1158804?v=3","gravatar_id":"","url":"https://api.github.com/users/rahmanusta","html_url":"https://github.com/rahmanusta","followers_url":"https://api.github.com/users/rahmanusta/followers","following_url":"https://api.github.com/users/rahmanusta/following{/other_user}","gists_url":"https://api.github.com/users/rahmanusta/gists{/gist_id}","starred_url":"https://api.github.com/users/rahmanusta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahmanusta/subscriptions","organizations_url":"https://api.github.com/users/rahmanusta/orgs","repos_url":"https://api.github.com/users/rahmanusta/repos","events_url":"https://api.github.com/users/rahmanusta/events{/privacy}","received_events_url":"https://api.github.com/users/rahmanusta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/labels/upstream","name":"upstream","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/milestones/5","html_url":"https://github.com/asciidoctor/asciidoctor.js/milestones/v1.5.3","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/milestones/5/labels","id":913303,"number":5,"title":"v1.5.3","description":"","creator":{"login":"Mogztter","id":333276,"avatar_url":"https://avatars.githubusercontent.com/u/333276?v=3","gravatar_id":"","url":"https://api.github.com/users/Mogztter","html_url":"https://github.com/Mogztter","followers_url":"https://api.github.com/users/Mogztter/followers","following_url":"https://api.github.com/users/Mogztter/following{/other_user}","gists_url":"https://api.github.com/users/Mogztter/gists{/gist_id}","starred_url":"https://api.github.com/users/Mogztter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mogztter/subscriptions","organizations_url":"https://api.github.com/users/Mogztter/orgs","repos_url":"https://api.github.com/users/Mogztter/repos","events_url":"https://api.github.com/users/Mogztter/events{/privacy}","received_events_url":"https://api.github.com/users/Mogztter/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":8,"state":"open","created_at":"2014-12-23T14:15:56Z","updated_at":"2015-12-14T14:05:43Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2015-08-02T11:44:38Z","updated_at":"2015-12-19T20:05:11Z","closed_at":"2015-12-14T14:05:43Z","body":"I want to change document lang after if document content has not lang attribute set. I followed this way;\r\n\r\n```javascript\r\nvar doc = Opal.Asciidoctor.$load(content, Opal.hash2(Object.keys(options), options));\r\n\r\nif (doc.$attr('lang')['$nil?']()) {\r\n   var isSet = doc.$set_attribute('lang', defaultLanguage); \r\n}\r\n\r\nvar rendered = doc.$render();\r\n```\r\n\r\nisSet prints true, but when I examine doc.$attr('lang') it's value is nil. Also, I examined attributes object in firebug, it see that has no lang attribute."},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/comments/166020757","html_url":"https://github.com/asciidoctor/asciidoctor.js/issues/120#issuecomment-166020757","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/120","id":166020757,"user":{"login":"rahmanusta","id":1158804,"avatar_url":"https://avatars.githubusercontent.com/u/1158804?v=3","gravatar_id":"","url":"https://api.github.com/users/rahmanusta","html_url":"https://github.com/rahmanusta","followers_url":"https://api.github.com/users/rahmanusta/followers","following_url":"https://api.github.com/users/rahmanusta/following{/other_user}","gists_url":"https://api.github.com/users/rahmanusta/gists{/gist_id}","starred_url":"https://api.github.com/users/rahmanusta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahmanusta/subscriptions","organizations_url":"https://api.github.com/users/rahmanusta/orgs","repos_url":"https://api.github.com/users/rahmanusta/repos","events_url":"https://api.github.com/users/rahmanusta/events{/privacy}","received_events_url":"https://api.github.com/users/rahmanusta/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T20:05:11Z","updated_at":"2015-12-19T20:05:11Z","body":"Thank you @Mogztter , it is honor for me :)"}}