Skip to content

Inconsistency between DDC and dart2js the Selection class did not implement the toString method to return the selected text #47942

@GMChristo

Description

@GMChristo

Inconsistency between DDC and dart2js the Selection class did not implement the toString method to return the selected text, at the moment toString returns the selected text only in DDC and in Dart2JS it returns "Instance of 'Selection'"
Dart version 2.12.4

var sel = window.getSelection();
      var textSel = sel.toString();
      print('seleção $textSel');

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsweb-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