Skip to content

Dartium: need a way to turn on checked mode from the HTML page #3092

Closed
@jmesserly

Description

@jmesserly

To turn on checked mode in Dartium, you have to set an environment variable. This means the checked mode setting applies globally to all web pages and apps, and has to be specified by the end user not the developer.

Something is not right with this picture :)

I'd like to be able to configure this in the HTML page. For now it'd be nice to have something simple like this:
  navigator.webkitStartDart({ checked: true });

Ultimately it might make more sense to be specified per script tag. That's kind of tricky but here are some ideas:

... with a new attribute:
  <script type="application/dart" src="list_example.dart" flags="checked">

... abusing mime-type:
  <script type="application/dart+checked" src="list_example.dart">

... or have a way to declare the mode in the Dart source with a # directive.
  <script type="application/dart">
    #option checked
    #import ...

Metadata

Metadata

Assignees

Labels

closed-duplicateClosed in favor of an existing report

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions