Skip to content

method html:Window.find is poorly documented #16930

Open
@DartBot

Description

This issue was originally filed by alexe.kaigorodov@gmail.com


What is the sense of parameter "backwards"? Its existence make me think that the searching starts from some point inside the window, not always from the very beginning. If it is so, it should be clearly stated.

The following code

  var text = 'text';
  document.body.append(new Text(text));
  bool res1=window.find(text, false, false, false, false, false, false);
  bool res2=window.find(text, false, false, false, false, false, false);
  print("res1=$res1 res2=$res2");

prints "res1=true res2=false"

which supports this hypothesis. If so, then if we change second search with backward search:

  bool res2=window.find(text, false, false, false, false, false, false);

res2 should be true, but its is not.

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-htmltype-documentationA request to add or improve documentationweb-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