Let's kill window.find()
Categories
(Core :: DOM: Core & HTML, task, P3)
Tracking
()
People
(Reporter: ian, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: dev-doc-needed, site-compat)
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
![]() |
||
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
![]() |
||
Comment 7•14 years ago
|
||
![]() |
||
Comment 10•14 years ago
|
||
![]() |
||
Comment 12•14 years ago
|
||
Reporter | ||
Comment 13•14 years ago
|
||
![]() |
||
Comment 14•14 years ago
|
||
Comment 15•14 years ago
|
||
Comment 16•14 years ago
|
||
Comment 17•14 years ago
|
||
Comment 18•14 years ago
|
||
Comment 19•14 years ago
|
||
Comment 20•14 years ago
|
||
Comment 21•13 years ago
|
||
Comment 22•13 years ago
|
||
Comment 24•13 years ago
|
||
![]() |
||
Comment 25•13 years ago
|
||
Comment 26•12 years ago
|
||
Comment 27•12 years ago
|
||
Comment 28•12 years ago
|
||
Comment 29•12 years ago
|
||
Comment 30•12 years ago
|
||
Comment 31•11 years ago
|
||
Comment 32•10 years ago
|
||
Comment 33•10 years ago
|
||
Comment 34•10 years ago
|
||
Comment 35•10 years ago
|
||
Updated•9 years ago
|
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Comment 38•8 years ago
|
||
Comment 39•7 years ago
|
||
Comment 40•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 41•5 years ago
|
||
Since it hasn't been mentioned previously, apart from the websites and widgets mentioned above, popular addons like Vimium use window.find() to implement their 'find in page' feature (and hence also suffer from the bugs mentioned in the original post). AIUI, such usage would not be visible to the Blink use counter linked above.
Comment 42•5 years ago
|
||
For additional context, here are a few issues in Vimium and the source of them on window.find()
's side:
-
https://github.com/philc/vimium/issues/2674 stems from
aWrapAround
being ignored -
https://github.com/philc/vimium/issues/3632 stems from
aWholeWord
being ignored -
https://github.com/philc/vimium/issues/2162 would benefit from an option to find/highlight all matches
-
https://github.com/philc/vimium/issues/3270 stems from a lack of a localecompare-like search option
The full list of related issues is here, which may be useful when fixing/replacing window.find()
.
Comment 43•4 years ago
|
||
Please don't kill this unless replaced by something better. We use it in our XML editor.
Also Window.find() should allow searching while normalizing spaces (to search in a pretty printed documents), if this is not currently the case.
Not clear what the behaviour should be today when searching a string with spaces in the middle (such as "increase for 2010"). Should it match the same text found in the DOM but with many whites spaces (including newlines, tabulations, etc. thus) between the words?
Updated•3 years ago
|
Comment 44•2 years ago
|
||
I just found myself in a situation where I need the features window.find provides but it not being standard make a pain to test it against the 3 browsers to check it correctly works.
I do not know if this is the correct channel, but I would really appreciate a standardized way of search across nodes, that works equal or almost equal in all browsers.
Description
•