From 8e723ffa2d99293fd9cdce22630d7f4977b94dda Mon Sep 17 00:00:00 2001 From: Vladimir Levin Date: Wed, 29 Jul 2020 16:36:40 -0400 Subject: [PATCH 1/5] Added find-in-page definitions --- source | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/source b/source index f964516455a..7ecc9d86196 100644 --- a/source +++ b/source @@ -74575,6 +74575,40 @@ body { display:none } +

Find-in-Page

+ + + +

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.

+ +

Definitions

+ + + + +

Drag and drop

-

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.

- -

Definitions

- - +

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 Date: Mon, 10 Aug 2020 14:43:52 -0400 Subject: [PATCH 3/5] Updated based on domenic's feedback --- source | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/source b/source index 2ebf74ca87d..5350f9bb813 100644 --- a/source +++ b/source @@ -74577,19 +74577,19 @@ body { display:none }

Find-in-Page

- +

Introduction

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.

+ 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 - 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).

@@ -74600,7 +74600,18 @@ body { display:none }

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.

+ +

Interaction with Selection

+ +

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.

+ From b581596c900ec14d32bbdd5bf17015f20716c095 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 10 Aug 2020 16:27:41 -0400 Subject: [PATCH 4/5] Editorial tweaks --- source | 90 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/source b/source index 5350f9bb813..822bb20e388 100644 --- a/source +++ b/source @@ -3083,9 +3083,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • outerHTML
  • -

    The Selection - interface is defined in the Selection API specification.

    +

    The following features are defined in Selection API:

    + +

    User agents are encouraged to implement the features described in execCommand.

    @@ -71828,10 +71831,9 @@ END:VCARD

    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.

    + targeting user interaction events, may ignore the node for the purposes of + 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.

    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 } -

    Find-in-Page

    +

    Find-in-page

    Introduction

    -

    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.

    - -

    Interaction with Selection

    - -

    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.

    + +

    Interaction with selection

    + +

    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.

    + +

    Drag and drop

    From c225ac151201bd8d5448afbfa4e78020e885eaba Mon Sep 17 00:00:00 2001 From: Vladimir Levin Date: Mon, 10 Aug 2020 17:44:50 -0400 Subject: [PATCH 5/5] Further review updates --- source | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/source b/source index 822bb20e388..fe5fa1cc9a3 100644 --- a/source +++ b/source @@ -74603,19 +74603,18 @@ body { display:none } can navigate through the matches by advancing the active match using the find-in-page interface.

    -

    Issue #4500 tracks +

    Issue #3539 tracks standardizing how find-in-page underlies the currently-unspecified window.find() API.

    Interaction with selection

    -

    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).