{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/567","labels_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/567/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/567/comments","events_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/567/events","html_url":"https://github.com/dart-lang/polymer-dart/issues/567","id":105162240,"number":567,"title":"Div Attribute with bigint value is rounded","user":{"login":"neurofoo","id":1616544,"avatar_url":"https://avatars.githubusercontent.com/u/1616544?v=3","gravatar_id":"","url":"https://api.github.com/users/neurofoo","html_url":"https://github.com/neurofoo","followers_url":"https://api.github.com/users/neurofoo/followers","following_url":"https://api.github.com/users/neurofoo/following{/other_user}","gists_url":"https://api.github.com/users/neurofoo/gists{/gist_id}","starred_url":"https://api.github.com/users/neurofoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neurofoo/subscriptions","organizations_url":"https://api.github.com/users/neurofoo/orgs","repos_url":"https://api.github.com/users/neurofoo/repos","events_url":"https://api.github.com/users/neurofoo/events{/privacy}","received_events_url":"https://api.github.com/users/neurofoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-07T07:34:10Z","updated_at":"2015-09-10T22:55:00Z","closed_at":"2015-09-08T14:35:53Z","body":"Hello,\r\n\r\nPolymerDart appears to round a div attribute bigint value when the value is inserted with data binding, but not when added as div.setAttribute from within a .dart file.\r\n\r\nFor an example polymer app made in WebStorm,\r\n\r\nIn main_app.html\r\n````\r\n<div id=\"div1\" bigint1=\"{{myBigInt1}}\"></div>\r\n````\r\n\r\nIn main_app.dart\r\n````\r\n...\r\n\r\n@observable int myBigInt1 = 121824329561278175;\r\nint myBigint2 = 121824329561278175;\r\n\r\nattached() {\r\n    super.attached();\r\n    $['div1'].setAttribute('bigint2', myBigInt2.toString());\r\n    $['div1'].setAttribute('bigint3', myBigInt1.toString()); //check to see if an @observable issue\r\n}\r\n\r\n...\r\n````\r\n\r\nThe result, as seen in the Dartium inspector\r\n````\r\n<div id=\"div1\" bigint1=\"121824329561278180\" bigint2=\"121824329561278175\" bigint3=\"121824329561278175\"> </div>\r\n````\r\n\r\nWhen one builds to javascript, the number is always rounded and, therefore, incorrect. Additionally, when one builds to javascript, the following is also rounded:\r\n\r\n````\r\n<div>myBigInt1 = {{myBigInt1}}</div>\r\n```\r\n\r\nproduces:\r\n````\r\nmyBigInt1 = 121824329561278180\r\n````\r\n\r\n\r\n\r\n\r\nI've made a full example of the issue here: https://github.com/neurofoo/dart_bigint_error\r\n\r\n\r\nMany thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/comments/139405040","html_url":"https://github.com/dart-lang/polymer-dart/issues/567#issuecomment-139405040","issue_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/567","id":139405040,"user":{"login":"neurofoo","id":1616544,"avatar_url":"https://avatars.githubusercontent.com/u/1616544?v=3","gravatar_id":"","url":"https://api.github.com/users/neurofoo","html_url":"https://github.com/neurofoo","followers_url":"https://api.github.com/users/neurofoo/followers","following_url":"https://api.github.com/users/neurofoo/following{/other_user}","gists_url":"https://api.github.com/users/neurofoo/gists{/gist_id}","starred_url":"https://api.github.com/users/neurofoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neurofoo/subscriptions","organizations_url":"https://api.github.com/users/neurofoo/orgs","repos_url":"https://api.github.com/users/neurofoo/repos","events_url":"https://api.github.com/users/neurofoo/events{/privacy}","received_events_url":"https://api.github.com/users/neurofoo/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T22:55:00Z","updated_at":"2015-09-10T22:55:00Z","body":"Thanks!"}}