From 8e723ffa2d99293fd9cdce22630d7f4977b94dda Mon Sep 17 00:00:00 2001
From: Vladimir Levin This section defines find-in-page -- a common user-agent mechanism which allows users to search
+ through the contents of the page for a presence of a particular piece of text. This section defines find-in-page -- a common user-agent mechanism which allows users to search
- through the contents of the page for a presence of a particular piece of text. This section defines find-in-page -- a common user-agent
+ mechanism which allows users to search through the contents of the page for
+ particular information. Access to find-in-page feature is provided via a
+ find-in-page dialog. This is a user-agent provided user interface,
+ which allows the user to specify input and the parameters of the search. This
+ dialog can appear as a result of a shortcut or a menu selection. A combination of text input and settings in the find-in-page
+ dialog represents the user query. This typically includes
+ the text that the user wants to search for, as well as optional settings
+ (e.g. the ability to restrict the search to whole words only). The user-agent processes page contents for a given query, and
+ identifies zero or more matches, which are content ranges that
+ satisfy the user query. One of the matches is identified to the user as the
+ active match. It is highlighted and scrolled into view. The user
+ can navigate through the matches by advancing the active
+ match using the find-in-page dialog.
From 602c9100b0091864313ae0cbfc7f36430269f9bf Mon Sep 17 00:00:00 2001
From: Vladimir Levin This section defines find-in-page -- a common user-agent
mechanism which allows users to search through the contents of the page for
particular information. Access to find-in-page feature is provided via a
- find-in-page dialog. This is a user-agent provided user interface,
+ find-in-page interface. This is a user-agent provided user interface,
which allows the user to specify input and the parameters of the search. This
- dialog can appear as a result of a shortcut or a menu selection. A combination of text input and settings in the find-in-page
- dialog represents the user query. This typically includes
+ interface represents the user query. This typically includes
the text that the user wants to search for, as well as optional settings
(e.g. the ability to restrict the search to whole words only). One of the matches is identified to the user as the
active match. It is highlighted and scrolled into view. The user
can navigate through the matches by advancing the active
- match using the find-in-page dialog.
+ match using the find-in-page interface. The find-in-page process has an effect on selection.
+ Specifically, when the find-in-page interface is dismissed, the
+ last active match is selected. Note that this
+ selection may either be updated as the active match
+ changes or only when the find-in-page interface is
+ dismissed. The The following features are defined in Selection API: User agents are encouraged to implement the features described in
execCommand. A node (in particular elements and text nodes) can be marked as inert. When a node
is inert, then the user agent must act as if the node was absent for the purposes of
- targeting user interaction events, may ignore the node for the purposes of text search user
- interfaces (commonly known as "find in page"), and may prevent the user from selecting text in
- that node. User agents should allow the user to override the restrictions on search and text
- selection, however.Find-in-Page
+
+
+
+ Definitions
+
+
+
+
+
+
Drag and drop
- Definitions
-
-
-
+ Find-in-Page
-
+ Introduction
Interaction with Selection
+
+ outerHTMLSelection
- interface is defined in the Selection API specification.
+
Selection
For example, consider a page that consists of just a single inert
paragraph positioned in the middle of a body. If a user moves their pointing device
@@ -74575,45 +74577,47 @@ body { display:none }
-
This section defines find-in-page -- a common user-agent - mechanism which allows users to search through the contents of the page for - particular information.
- -Access to find-in-page feature is provided via a - find-in-page interface. This is a user-agent provided user interface, - which allows the user to specify input and the parameters of the search. This - interface can appear as a result of a shortcut or a menu selection.
- -A combination of text input and settings in the find-in-page - interface represents the user query. This typically includes - the text that the user wants to search for, as well as optional settings - (e.g. the ability to restrict the search to whole words only).
- -The user-agent processes page contents for a given query, and - identifies zero or more matches, which are content ranges that - satisfy the user query.
- -One of the matches is identified to the user as the - active match. It is highlighted and scrolled into view. The user - can navigate through the matches by advancing the active - match using the find-in-page interface.
- -The find-in-page process has an effect on selection. - Specifically, when the find-in-page interface is dismissed, the - last active match is selected. Note that this - selection may either be updated as the active match - changes or only when the find-in-page interface is - dismissed.
- - - +This section defines find-in-page — a common user-agent mechanism which allows users + to search through the contents of the page for particular information.
+ +Access to find-in-page feature is provided via a find-in-page + interface. This is a user-agent provided user interface, which allows the user to specify + input and the parameters of the search. This interface can appear as a result of a shortcut or a + menu selection.
+ +A combination of text input and settings in the find-in-page interface represents + the user query. This typically includes the text that the user wants + to search for, as well as optional settings (e.g., the ability to restrict the search to whole + words only).
+ +The user-agent processes page contents for a given query, and + identifies zero or more matches, which are content ranges that + satisfy the user query.
+ +One of the matches is identified to the user as the active match. It is highlighted and scrolled into view. The user + can navigate through the matches by advancing the active match using the find-in-page interface.
+ +Issue #4500 tracks
+ standardizing how find-in-page underlies the currently-unspecified window.find() API.
The find-in-page process may have an effect on the selection of the document that the find-in-page + interface was invoked in the context of. Specifically, when the find-in-page + interface is dismissed, the last active match is + selected. The selection may either be updated as the + active match changes or only when the find-in-page + interface is dismissed.
+ +Issue #4500 tracks +
Issue #3539 tracks
standardizing how find-in-page underlies the currently-unspecified window.find() API.
The find-in-page process may have an effect on the selection of the document that the find-in-page - interface was invoked in the context of. Specifically, when the find-in-page - interface is dismissed, the last active match is - selected. The selection may either be updated as the - active match changes or only when the find-in-page - interface is dismissed.
+The find-in-page process is invoked in the context of a document, and may have an effect on + the selection of that document. Specifically, the range + that defines the active match can dictate the current + selection. These selection updates, however, can happen at different times during the + find-in-page process (e.g. upon the find-in-page interface dismissal or upon a change + in the active match range).