Skip to content

Commit be19393

Browse files
andreasttAutomatedTester
authored andcommitted
activation trigger: improve prose and mark isTrusted correctly
The isTrusted reference should be marked with a <code> tag, but this patch also improves the language in the note associated with it.
1 parent 7cf5fcc commit be19393

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

index.html

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6928,29 +6928,30 @@ <h3>Ticks</h3>
69286928
<!-- todo: define generating DOM events from an input somewhere -->
69296929

69306930
<aside class=note>
6931-
<p>An <a>activation trigger</a>
6932-
generated by the WebDriver API user
6933-
needs to be indistinguishable from those generated
6934-
by a real user interacting with the browser.
6935-
In particular, the dispatched events will have
6936-
the <a>isTrusted</a> attribute set to true.
6937-
The most robust way to dispatch these events
6938-
is by creating them in the browser implementation itself.
6939-
Sending OS-specific input messages to the browser's window
6940-
has the disadvantage that the browser being automated
6941-
may not be properly isolated from a user
6942-
accidentally modifying <a>input source state</a>.
6943-
Use of an OS-level accessibility API has the disadvantage
6944-
that the browser's window must be focused,
6945-
and as a result, multiple WebDriver instances cannot run in parallel.
6946-
6947-
<p>An advantage of an OS-level accessibility API
6948-
is that it guarantees that inputs correctly mirror user input,
6949-
and allows interaction with the host OS if necessary.
6950-
This might, however, have performance penalties
6951-
from a machine utilisation perspective.
6952-
</aside>
6931+
<p>
6932+
An <a>activation trigger</a> generated by WebDriver
6933+
needs to be indistinguishable from those generated by a real user interacting with the browser.
6934+
In particular, the dispatched events
6935+
will have the <a><code>isTrusted</code></a> attribute set to true.
6936+
6937+
<p>
6938+
The most robust way to despatch these events
6939+
is by creating them in the browser implementation itself.
6940+
Sending operating system specific input messages to the browser’s window
6941+
has the disadvantage that the browser being automated
6942+
may not be properly isolated from a user
6943+
accidentally modifying <a>input source state</a>.
6944+
Use of an operating system level accessibility API
6945+
has the disadvantage that the browser’s window must be focused,
6946+
and as a result, multiple WebDriver instances cannot run in parallel.
69536947

6948+
<p>
6949+
The advantage of an operating system level accessibility API
6950+
is that it guarantees that inputs correctly mirror user input,
6951+
and allows interaction with the host system if necessary.
6952+
This might, however, have performance penalties
6953+
from a machine utilisation perspective.
6954+
</aside>
69546955
</section> <!-- /Ticks -->
69556956

69566957

@@ -9145,7 +9146,7 @@ <h2>Index</h2>
91459146
<!-- hasAttribute --> <li><dfn data-lt="has the attribute"><a href=https://dom.spec.whatwg.org/#dom-element-hasattribute>hasAttribute</a></dfn>
91469147
<!-- HTMLCollection --> <li><dfn><a href=https://dom.spec.whatwg.org/#htmlcollection><code>HTMLCollection</code></a></dfn>
91479148
<!-- Inclusive descendant --> <li><dfn><a href=https://dom.spec.whatwg.org/#concept-tree-inclusive-descendant>Inclusive descendant</a></dfn>
9148-
<!-- isTrusted --> <li><dfn data-lt='is trusted'><a href="https://dom.spec.whatwg.org/#dom-event-istrusted">isTrusted</a></dfn>
9149+
<!-- isTrusted --> <li><dfn data-lt='is trusted'><a href="https://dom.spec.whatwg.org/#dom-event-istrusted"><code>isTrusted</code></a></dfn>
91499150
<!-- Node document --> <li><dfn><a href=https://dom.spec.whatwg.org/#concept-node-document>Node document</a></dfn>
91509151
<!-- Node length --> <li><dfn><a href="https://dom.spec.whatwg.org/#concept-node-length">Node Length</a></dfn>
91519152
<!-- Node --> <li><dfn><a href=https://dom.spec.whatwg.org/#concept-node>Node</a></dfn>

0 commit comments

Comments
 (0)