dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
181 stars 33 forks source link

Come up with a proper solution for removing `unresolved` attribute. #611

Open jakemac53 opened 8 years ago

jakemac53 commented 8 years ago

Today its just getting removed at the end of initPolymer. This might actually be ok but needs to be verified, especially in polyfilled browsers where element upgrading happens async.

A possible solution might be creating a useless element which we append to the end of the body and in its ready method we remove the unresolved attribute on the body and also remove the element itself. This assumes that since its at the end of the body it will be upgraded last, which would need to be verified.