-
Notifications
You must be signed in to change notification settings - Fork 16
Use the new "retargeting algorighm" in the DOM spec. #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@hayatoito PTAL |
@@ -384,7 +384,7 @@ | |||
<dfn title="pointerLockElement"></dfn> | |||
|
|||
<p>While the pointer is locked, returns the result of the | |||
<a href="https://w3c.github.io/webcomponents/spec/shadow/#dfn-retargeting-algorithm">retargeting algorithm</a> | |||
<a href="https://dom.spec.whatwg.org/#retarget">retargeting algorithm</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use the similar wording as DOM standard uses?
Let relatedTarget be the result of invoking retargeting event’s relatedTarget against target if event’s relatedTarget is non-null, and null otherwise.
You can use this sentense as a reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed and updated.
e30a107
to
530a90a
Compare
@@ -410,8 +411,8 @@ | |||
<code>document.pointerLockElement</code> returns <code>#host1</code>, and | |||
<code>root1.pointerLockElement</code> returns <code>#canvas1</code>. | |||
The result of | |||
<a href="https://w3c.github.io/webcomponents/spec/shadow/#dfn-retargeting-algorithm">retargeting algorithm</a> | |||
with <code>#root2</code> and <code>#canvas1</code> as input is | |||
<a href="https://dom.spec.whatwg.org/#retarget">retargeting</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result of "invoking"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
530a90a
to
1bfe731
Compare
LGTM. |
@scheib Could you take a look? |
DOM spec has unnatural English grammar, Example from that spec that make sense: "Run the retargeting steps with event" But this doesn't: "Let relatedTarget be the result of invoking retargeting event’s It would make sense as: "Let relatedTarget be the result of retargeting event’s relatedTarget "Let relatedTarget be the result of invoking retarget on event’s "Let relatedTarget be the result of invoking retarget against target with So, for Pointer Lock I would suggest: "returns the result of retargeting with the context object..." On Mon, Aug 29, 2016 at 7:14 PM, Takayoshi Kochi notifications@github.com
|
d2bfb51
to
8dec8ee
Compare
Now the DOM spec version is the canonical link for "retargeting", refer to it and adjust wording around the term.
8dec8ee
to
c93718f
Compare
I picked your first example (~ the result of retargeting ~ against ~) rather than "returns the result of retargeting with the context object" (your suggestion at the bottom) as it fits more with the current sentence, IMO. Does this look okay? |
LGTM, will wait for Hayato On Mon, Aug 29, 2016 at 8:52 PM, Takayoshi Kochi notifications@github.com
|
@hayatoito does this look good to you? |
Yeah, LGTM. |
This was pointed out during pointerLock spec change review: w3c/pointerlock#8
FYI I made a PR for DOM: whatwg/dom#318 for the same wording. |
This was pointed out during Pointer Lock change review: w3c/pointerlock#8. PR: #318
Now the DOM spec version is the canonical link for "retargeting algorighm".
This change is in response for #4 (comment).