Skip to content

wrong example code in the doc to Window::close() #16893

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


https://api.dartlang.org/apidocs/channels/stable/#dart-dom-html.Window@id_onChange reads:

var other = window.open('http://www.example.com', 'foo');
// Closes other window, as it is script-closeable.
other.close();
print(other.closed()); // 'true'

First, closed() should be closed, without parenthesis.

Second, this example prints "false" (Chromium 31.0.1650.48)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmltype-documentationA request to add or improve documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions