diff --git a/source b/source index f964516455a..fe5fa1cc9a3 100644 --- a/source +++ b/source @@ -3083,9 +3083,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
outerHTMLThe Selection
- interface is defined in the Selection API specification.
The following features are defined in Selection API:
+ +SelectionUser agents are encouraged to implement the features described in execCommand.
@@ -71828,10 +71831,9 @@ END:VCARDA 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,6 +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.
+ +Issue #3539 tracks
+ standardizing how find-in-page underlies the currently-unspecified window.find() API.
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). + + +