Description
This issue was originally filed by localvoi...@gmail.com
Can we get access to DomTokenList Element.get.classList
?
When working on a library that implements its own abstraction to manipulate DOM, I would prefer to use api that is close to native DOM api as possible. I understand why it was implemented this way long time ago when dart supported browsers that didn't have classList implementation, but now all dart supported browsers have classList implementation.
Simple benchmark using Dart Element.get.classes and Javascript Element.get.classList: http://localvoid.github.io/dart-classlist-benchmark/
DBMonster Benchmark implementations using uix library:
Element.get.classes: http://localvoid.github.io/uix_dbmon/
Element.get.classList (patched dart-sdk with exported classList): http://localvoid.github.io/uix_dbmon/classlist/