Files
ladybird/Tests/LibWeb/Text/expected/HTML/Window-find.txt
Tim Ledbetter c4d5ae28ea LibWeb: Implement a minimal version of Window.find()
This is a non-standard API that other browsers implement, which
highlights matching text in the current window.

This is just a thin wrapper around our find in page functionality, the
main motivation for adding this API is that it allows us to write tests
for our find in page implementation.
2024-06-27 10:09:39 +02:00

8 lines
269 B
Plaintext

window.find(): false
window.find("this"): true, selection from: 0 to 4
window.find("this"): false
window.find("A"): true, selection from: 8 to 9
window.find("t"): true, selection from: 10 to 11
window.find("t"): true, selection from: 13 to 14
window.find("t"): false