method html:Window.find is poorly documented #16930
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
library-html
P3
A lower priority bug or feature request
type-documentation
A request to add or improve documentation
web-libraries
Issues impacting dart:html, etc., libraries
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.
The text was updated successfully, but these errors were encountered: