Closed neurofoo closed 9 years ago
This is unfortunately working as expected. Everything is actually getting converted to a JS number before it is rendered on the page, and thus have all the limitations of numbers in JS http://www.w3schools.com/js/js_numbers.asp.
This is good in the sense that you get consistent behavior across dartium and dart2js though.
Thanks!
Hello,
PolymerDart 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.
For an example polymer app made in WebStorm,
In main_app.html
In main_app.dart
The result, as seen in the Dartium inspector
When one builds to javascript, the number is always rounded and, therefore, incorrect. Additionally, when one builds to javascript, the following is also rounded:
produces:
I've made a full example of the issue here: https://github.com/neurofoo/dart_bigint_error
Many thanks.