{"action":"opened","issue":{"url":"https://api.github.com/repos/dfilatov/vidom/issues/32","labels_url":"https://api.github.com/repos/dfilatov/vidom/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/dfilatov/vidom/issues/32/comments","events_url":"https://api.github.com/repos/dfilatov/vidom/issues/32/events","html_url":"https://github.com/dfilatov/vidom/issues/32","id":98147573,"number":32,"title":"className forced to be class and vice versa","user":{"login":"rickardjanson","id":12602758,"avatar_url":"https://avatars.githubusercontent.com/u/12602758?v=3","gravatar_id":"","url":"https://api.github.com/users/rickardjanson","html_url":"https://github.com/rickardjanson","followers_url":"https://api.github.com/users/rickardjanson/followers","following_url":"https://api.github.com/users/rickardjanson/following{/other_user}","gists_url":"https://api.github.com/users/rickardjanson/gists{/gist_id}","starred_url":"https://api.github.com/users/rickardjanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickardjanson/subscriptions","organizations_url":"https://api.github.com/users/rickardjanson/orgs","repos_url":"https://api.github.com/users/rickardjanson/repos","events_url":"https://api.github.com/users/rickardjanson/events{/privacy}","received_events_url":"https://api.github.com/users/rickardjanson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T11:43:20Z","updated_at":"2015-07-30T11:43:20Z","closed_at":null,"body":"In default DOM standards, there are differences between attributes and properties. Some attributes can be set as properties and the other way around.\r\n\r\nYou are only focusing on setting `className`, but what about `class`? `class` are the only working attribute in `svg`.\r\n\r\nIt should be up to end-devs to decide whatever to set an attribute or a property as in a normal DOM way. But I agree you should keep you attribute whitelist, and also create a whitelist for properties.\r\n\r\nTherefor I suggested a separated `property object` as I see that citoJS now also want to support that.\r\n\r\nReference: https://github.com/joelrich/citojs/issues/8#issuecomment-98472610"}}