{"action":"closed","issue":{"url":"https://api.github.com/repos/WebReflection/hyperHTML/issues/283","repository_url":"https://api.github.com/repos/WebReflection/hyperHTML","labels_url":"https://api.github.com/repos/WebReflection/hyperHTML/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/WebReflection/hyperHTML/issues/283/comments","events_url":"https://api.github.com/repos/WebReflection/hyperHTML/issues/283/events","html_url":"https://github.com/WebReflection/hyperHTML/issues/283","id":374908186,"node_id":"MDU6SXNzdWUzNzQ5MDgxODY=","number":283,"title":"read only attributes crash","user":{"login":"atirip","id":1042164,"node_id":"MDQ6VXNlcjEwNDIxNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1042164?v=4","gravatar_id":"","url":"https://api.github.com/users/atirip","html_url":"https://github.com/atirip","followers_url":"https://api.github.com/users/atirip/followers","following_url":"https://api.github.com/users/atirip/following{/other_user}","gists_url":"https://api.github.com/users/atirip/gists{/gist_id}","starred_url":"https://api.github.com/users/atirip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atirip/subscriptions","organizations_url":"https://api.github.com/users/atirip/orgs","repos_url":"https://api.github.com/users/atirip/repos","events_url":"https://api.github.com/users/atirip/events{/privacy}","received_events_url":"https://api.github.com/users/atirip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-29T08:37:31Z","updated_at":"2018-10-29T09:21:46Z","closed_at":"2018-10-29T09:21:46Z","author_association":"NONE","body":" `<input form=foo>`\r\nwill crash with: \r\n`Cannot assign to read only property 'form' of object <HTMLInputElement>`\r\n\r\nThe reason, likely, is that form attribute is special, always pointing to form the input belongs, even when not set in HTML. The quick and dirty workaround that works for me as of now, was just exclude form from direct access like this:\r\n\r\n`else if (name === 'data' || !isSVG && (name in node && name != 'form') ) {  `\r\n\r\nand directing setting form attribute with `setAttribute()`\r\n\r\nBut I am sure there is more and proper solution, of course, would be to exclude all such attributes."}}
{"actor":{"display_login":"WebReflection"}}