Skip to content

Export "DomTokenList Element.get.classList" #23012

Open
@DartBot

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/

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-htmllibrary-web-audiotype-enhancementA request for a change that isn't a bugweb-librariesIssues impacting dart:html, etc., libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions